diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-01-18 06:18:23 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-20 08:58:31 -0500 |
commit | 7df6f2551f2255f55adab7338a3a1e6594a12f63 (patch) | |
tree | b5f2fe9aea3ca77e589a39e9f38786f7c20a92b2 /sound/soc/omap/omap-dmic.c | |
parent | 8819f65ceca118561c9d59a04cfd91625c74a262 (diff) |
ASoC: omap-dmic: Use core to set the msbits constraint
Core can set the msbits constraint in behalf of the dai.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/omap-dmic.c')
-rw-r--r-- | sound/soc/omap/omap-dmic.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c index 0855c1cfa7fd..4dcb5a7e40e8 100644 --- a/sound/soc/omap/omap-dmic.c +++ b/sound/soc/omap/omap-dmic.c | |||
@@ -113,12 +113,10 @@ static int omap_dmic_dai_startup(struct snd_pcm_substream *substream, | |||
113 | 113 | ||
114 | mutex_lock(&dmic->mutex); | 114 | mutex_lock(&dmic->mutex); |
115 | 115 | ||
116 | if (!dai->active) { | 116 | if (!dai->active) |
117 | snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24); | ||
118 | dmic->active = 1; | 117 | dmic->active = 1; |
119 | } else { | 118 | else |
120 | ret = -EBUSY; | 119 | ret = -EBUSY; |
121 | } | ||
122 | 120 | ||
123 | mutex_unlock(&dmic->mutex); | 121 | mutex_unlock(&dmic->mutex); |
124 | 122 | ||
@@ -445,6 +443,7 @@ static struct snd_soc_dai_driver omap_dmic_dai = { | |||
445 | .channels_max = 6, | 443 | .channels_max = 6, |
446 | .rates = SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000, | 444 | .rates = SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000, |
447 | .formats = SNDRV_PCM_FMTBIT_S32_LE, | 445 | .formats = SNDRV_PCM_FMTBIT_S32_LE, |
446 | .sig_bits = 24, | ||
448 | }, | 447 | }, |
449 | .ops = &omap_dmic_dai_ops, | 448 | .ops = &omap_dmic_dai_ops, |
450 | }; | 449 | }; |