Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 085f3ec6 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown
Browse files

ASoC: tlv320aic31xx: Correct interface register 2 variable name



Rename iface_reg3 to iface_reg2 since this variable is actually used for
interface register 2.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7d1311b9
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -813,7 +813,7 @@ static int aic31xx_set_dai_fmt(struct snd_soc_dai *codec_dai,
{
{
	struct snd_soc_codec *codec = codec_dai->codec;
	struct snd_soc_codec *codec = codec_dai->codec;
	u8 iface_reg1 = 0;
	u8 iface_reg1 = 0;
	u8 iface_reg3 = 0;
	u8 iface_reg2 = 0;
	u8 dsp_a_val = 0;
	u8 dsp_a_val = 0;


	dev_dbg(codec->dev, "## %s: fmt = 0x%x\n", __func__, fmt);
	dev_dbg(codec->dev, "## %s: fmt = 0x%x\n", __func__, fmt);
@@ -838,7 +838,7 @@ static int aic31xx_set_dai_fmt(struct snd_soc_dai *codec_dai,
		/* NOTE: BCLKINV bit value 1 equas NB and 0 equals IB */
		/* NOTE: BCLKINV bit value 1 equas NB and 0 equals IB */
		switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
		switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
		case SND_SOC_DAIFMT_NB_NF:
		case SND_SOC_DAIFMT_NB_NF:
			iface_reg3 |= AIC31XX_BCLKINV_MASK;
			iface_reg2 |= AIC31XX_BCLKINV_MASK;
			break;
			break;
		case SND_SOC_DAIFMT_IB_NF:
		case SND_SOC_DAIFMT_IB_NF:
			break;
			break;
@@ -870,7 +870,7 @@ static int aic31xx_set_dai_fmt(struct snd_soc_dai *codec_dai,
			    dsp_a_val);
			    dsp_a_val);
	snd_soc_update_bits(codec, AIC31XX_IFACE2,
	snd_soc_update_bits(codec, AIC31XX_IFACE2,
			    AIC31XX_BCLKINV_MASK,
			    AIC31XX_BCLKINV_MASK,
			    iface_reg3);
			    iface_reg2);


	return 0;
	return 0;
}
}