]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00295423-2 ASoC: fsl_ssi: Don't set clock rate in hw_params()
authorNicolin Chen <Guangyu.Chen@freescale.com>
Mon, 6 Jan 2014 08:43:19 +0000 (16:43 +0800)
committerNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 16 Jan 2014 11:27:48 +0000 (19:27 +0800)
commit51eb47421c36dbb4d7542cd79f6f2e63e9e0df4a
tree1240377f7b05b8aebbc01e42fe4a8e1bc78b2df2
parent8e8c6b5c1386f24af7c993916e86f58065ac3036
ENGR00295423-2 ASoC: fsl_ssi: Don't set clock rate in hw_params()

Leaving clk_set_rate() in hw_params() is a bit dangerous when handling two
substreams. So we let set_sysclk() finish the clk_set_rate() directly.

This patch also adds spinlock to protect the baud clock configuration so
that it won't be broken during race.

Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
(cherry picked from commit d3818ba35e4cbb6a3fa769eb83ceb7335b7c19e6)
sound/soc/fsl/fsl_ssi.c