diff options
author | Liam Girdwood <lrg@ti.com> | 2012-03-07 05:38:25 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-01 06:28:21 -0400 |
commit | 01b9d99a1f45befa604543ead29f44fdb0878844 (patch) | |
tree | e71ae8fc98724700968b18d6756091fb3f54cf3e /include/sound | |
parent | 253322c18830965331e54ee33c5e8064a2f15717 (diff) |
ASoC: core: Add card mutex locking subclasses
This is the first part of a change that is intended to improve
ASoC locking protection for DAPM and PCM operations.
This part of the series adds a mutex class for the soc_card mutex. The
SND_SOC_CARD_CLASS_INIT class is used for card initialisation only whilst the
SND_SOC_CARD_CLASS_PCM class is used for the forth coming Dynamic
PCM operations. The new mutex classes are required otherwise we will see a false
positive mutex deadlock warning between the card initialisation and the PCM
operations (something that would never deadlock in real life).
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 2ebf7877c148..70de2f82e872 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -288,6 +288,11 @@ enum snd_soc_pcm_subclass { | |||
288 | SND_SOC_PCM_CLASS_BE = 1, | 288 | SND_SOC_PCM_CLASS_BE = 1, |
289 | }; | 289 | }; |
290 | 290 | ||
291 | enum snd_soc_card_subclass { | ||
292 | SND_SOC_CARD_CLASS_INIT = 0, | ||
293 | SND_SOC_CARD_CLASS_PCM = 1, | ||
294 | }; | ||
295 | |||
291 | int snd_soc_codec_set_sysclk(struct snd_soc_codec *codec, int clk_id, | 296 | int snd_soc_codec_set_sysclk(struct snd_soc_codec *codec, int clk_id, |
292 | int source, unsigned int freq, int dir); | 297 | int source, unsigned int freq, int dir); |
293 | int snd_soc_codec_set_pll(struct snd_soc_codec *codec, int pll_id, int source, | 298 | int snd_soc_codec_set_pll(struct snd_soc_codec *codec, int pll_id, int source, |