diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2012-04-04 15:22:11 -0500 |
---|---|---|
committer | Dmytro Kedrovskyi <x0169235@ti.com> | 2012-05-11 16:11:53 +0300 |
commit | fd44464692ee62b97791431cefde651716d874bb (patch) | |
tree | 0fb1d130f41ee689bbdd2195b70432c2701564c4 /sound/soc/omap | |
parent | 2d7b6973fe895322b9a81508aa7f04eaa3e01f6a (diff) | |
download | kernel_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-x | sound/soc/omap/sdp4430.c | 3 |
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(¶ms->masks[SNDRV_PCM_HW_PARAM_FORMAT - SNDRV_PCM_HW_PARAM_FIRST_MASK], |