From 6530305c0ddf2ff8bc3ffddf84918275df024df4 Mon Sep 17 00:00:00 2001 From: Xing Zheng Date: Mon, 23 Apr 2018 21:33:28 +0800 Subject: [PATCH] ASoC: rk3308_codec: add suppot 4ch/6ch recording for codec Change-Id: I4d5dd2c7d0f81966db0faf226b130601dcfcd0cf Signed-off-by: Xing Zheng --- sound/soc/codecs/rk3308_codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/rk3308_codec.c b/sound/soc/codecs/rk3308_codec.c index 328217da3aef..19428b045d8b 100644 --- a/sound/soc/codecs/rk3308_codec.c +++ b/sound/soc/codecs/rk3308_codec.c @@ -617,6 +617,8 @@ static int rk3308_hw_params(struct snd_pcm_substream *substream, cur_grp_max = 0; break; case 2: + case 4: + case 6: case 8: adc_aif1 |= RK3308_ADC_I2S_STEREO; cur_grp_max = (params_channels(params) - 1) / 2;