ASoC: wm8974: remove unsupported clock mode
Subsystems (3)
PATCH 2/2 ASoC: wm8974: remove unsupported clock mode
From: Puyou Lu <[email protected]>
In DSP_A mode, BIT7 of IFACE should bit 0 according to datasheet (ie. inverted frame clock is not support in this mode).
Signed-off-by Puyou Lu <[email protected]>
--- sound/soc/codecs/wm8974.c | 4 ++++ 1 file changed, 4 insertions(+)
sound/soc/codecs/wm8974.c +4 -0
@@ -474,6 +474,10 @@ static int wm8974_set_dai_fmt(struct snd_soc_dai *codec_dai, iface |=0x0008 ;break ;case SND_SOC_DAIFMT_DSP_A : +if ((fmt &SND_SOC_DAIFMT_INV_MASK ) ==SND_SOC_DAIFMT_IB_IF || + (fmt &SND_SOC_DAIFMT_INV_MASK ) ==SND_SOC_DAIFMT_NB_IF ) { +return -EINVAL ; + } iface |=0x00018 ;break ;default :
Signature · 1 line
2.7.4
Quoted 7 lines · On Thu, Jul 02, 2020 at 10:30:56AM +0800, [email protected] wrote:
From: Puyou Lu <[email protected]>
In
DSP_Amode, BIT7 of IFACE should bit 0 according to datasheet (ie. inverted frame clock is not support in this mode).Signed-off-by Puyou Lu <[email protected]>---
Acked-by Charles Keepax <[email protected]>
Thanks,
Charles