From 0fb42422c0fbee2f5d98b8b38721d1aa21144cbd Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Fri, 3 Aug 2018 17:01:02 +0800 Subject: [PATCH] ASoC: rk3308_codec: set fmt for all adcs This patch fixup codec slave mode work abnormal, it is because the mode bits have not been set. and whatever, all adcs' fmt should be the same. Change-Id: Ie5ea7cdddc25c41790797fd2b4ef760a1f2ed727 Signed-off-by: Sugar Zhang --- sound/soc/codecs/rk3308_codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rk3308_codec.c b/sound/soc/codecs/rk3308_codec.c index 9894d816b303..fd8be99d9a4c 100644 --- a/sound/soc/codecs/rk3308_codec.c +++ b/sound/soc/codecs/rk3308_codec.c @@ -725,7 +725,7 @@ static int rk3308_set_dai_fmt(struct snd_soc_dai *codec_dai, struct rk3308_codec_priv *rk3308 = snd_soc_codec_get_drvdata(codec); unsigned int adc_aif1 = 0, adc_aif2 = 0, dac_aif1 = 0, dac_aif2 = 0; int idx, grp, is_master; - int type = ADC_TYPE_NORMAL; + int type = ADC_TYPE_ALL; switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { case SND_SOC_DAIFMT_CBS_CFS: