audio: tdm: set tdmin max channals by dts
authorYueguie He <yuegui.he@amlogic.com>
Wed, 10 Jan 2018 05:22:33 +0000 (13:22 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 10 Jan 2018 08:41:14 +0000 (01:41 -0700)
PD#158473: set tdmin max channals by dts

Change-Id: Ia6ff262fec6b3c156ac35f89b72cd690621f12fc
Signed-off-by: Yueguie He <yuegui.he@amlogic.com>
sound/soc/amlogic/auge/tdm.c

index d235a8d..c7546ce 100644 (file)
@@ -691,6 +691,7 @@ static int aml_dai_set_tdm_slot(struct snd_soc_dai *cpu_dai,
        aml_tdm_set_slot(p_tdm->actrl, slots, slot_width, p_tdm->id);
        /* constrains hw channels_max by DTS configs */
        drv->playback.channels_max = slots * lanes_cnt;
+       drv->capture.channels_max = slots * lanes_cnt;
 
        return 0;
 }