aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap
diff options
context:
space:
mode:
authorMisael Lopez Cruz <misael.lopez@ti.com>2012-04-04 15:22:11 -0500
committerDmytro Kedrovskyi <x0169235@ti.com>2012-05-11 16:11:53 +0300
commitfd44464692ee62b97791431cefde651716d874bb (patch)
tree0fb1d130f41ee689bbdd2195b70432c2701564c4 /sound/soc/omap
parent2d7b6973fe895322b9a81508aa7f04eaa3e01f6a (diff)
downloadkernel_samsung_espresso10-fd44464692ee62b97791431cefde651716d874bb.zip
kernel_samsung_espresso10-fd44464692ee62b97791431cefde651716d874bb.tar.gz
kernel_samsung_espresso10-fd44464692ee62b97791431cefde651716d874bb.tar.bz2
ASoC: SDP4430: Fix-up DMIC channels
DMic DAI driver only supports 2 channels in the ABE mode, hence hw_params fixup is required for DMic BEs to decouple it from FE's channel count. Change-Id: I785fab42673f6eb7a6649ef80843a7de3a785688 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'sound/soc/omap')
-rwxr-xr-xsound/soc/omap/sdp4430.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/omap/sdp4430.c b/sound/soc/omap/sdp4430.c
index af665d1..02fe2db 100755
--- a/sound/soc/omap/sdp4430.c
+++ b/sound/soc/omap/sdp4430.c
@@ -328,9 +328,12 @@ static int dmic_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
{
struct snd_interval *rate = hw_param_interval(params,
SNDRV_PCM_HW_PARAM_RATE);
+ struct snd_interval *channels = hw_param_interval(params,
+ SNDRV_PCM_HW_PARAM_CHANNELS);
/* The ABE will covert the FE rate to 96k */
rate->min = rate->max = 96000;
+ channels->min = channels->max = 2;
snd_mask_set(&params->masks[SNDRV_PCM_HW_PARAM_FORMAT -
SNDRV_PCM_HW_PARAM_FIRST_MASK],