[alsa-devel] [PATCH] ASoC: tlv320aic32x4: aic32x4_set_dai_fmt(): drop unneded register access
There's no point in reading the IFACE2 register when the result isn't used, so drop it.
Signed-off-by: Peter Korsgaard peter@korsgaard.com --- sound/soc/codecs/tlv320aic32x4.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c index 89e41d2..630367f 100644 --- a/sound/soc/codecs/tlv320aic32x4.c +++ b/sound/soc/codecs/tlv320aic32x4.c @@ -336,7 +336,6 @@ static int aic32x4_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
iface_reg_1 = snd_soc_read(codec, AIC32X4_IFACE1); iface_reg_1 = iface_reg_1 & ~(3 << 6 | 3 << 2); - iface_reg_2 = snd_soc_read(codec, AIC32X4_IFACE2); iface_reg_2 = 0; iface_reg_3 = snd_soc_read(codec, AIC32X4_IFACE3); iface_reg_3 = iface_reg_3 & ~(1 << 3);
participants (1)
-
Peter Korsgaard