diff options
| -rw-r--r-- | sound/soc/codecs/tlv320aic31xx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c index 0f64c7890eed..9f9d23b94c22 100644 --- a/sound/soc/codecs/tlv320aic31xx.c +++ b/sound/soc/codecs/tlv320aic31xx.c | |||
| @@ -813,7 +813,7 @@ static int aic31xx_set_dai_fmt(struct snd_soc_dai *codec_dai, | |||
| 813 | { | 813 | { |
| 814 | struct snd_soc_codec *codec = codec_dai->codec; | 814 | struct snd_soc_codec *codec = codec_dai->codec; |
| 815 | u8 iface_reg1 = 0; | 815 | u8 iface_reg1 = 0; |
| 816 | u8 iface_reg3 = 0; | 816 | u8 iface_reg2 = 0; |
| 817 | u8 dsp_a_val = 0; | 817 | u8 dsp_a_val = 0; |
| 818 | 818 | ||
| 819 | dev_dbg(codec->dev, "## %s: fmt = 0x%x\n", __func__, fmt); | 819 | 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, | |||
| 838 | /* NOTE: BCLKINV bit value 1 equas NB and 0 equals IB */ | 838 | /* NOTE: BCLKINV bit value 1 equas NB and 0 equals IB */ |
| 839 | switch (fmt & SND_SOC_DAIFMT_INV_MASK) { | 839 | switch (fmt & SND_SOC_DAIFMT_INV_MASK) { |
| 840 | case SND_SOC_DAIFMT_NB_NF: | 840 | case SND_SOC_DAIFMT_NB_NF: |
| 841 | iface_reg3 |= AIC31XX_BCLKINV_MASK; | 841 | iface_reg2 |= AIC31XX_BCLKINV_MASK; |
| 842 | break; | 842 | break; |
| 843 | case SND_SOC_DAIFMT_IB_NF: | 843 | case SND_SOC_DAIFMT_IB_NF: |
| 844 | break; | 844 | break; |
| @@ -870,7 +870,7 @@ static int aic31xx_set_dai_fmt(struct snd_soc_dai *codec_dai, | |||
| 870 | dsp_a_val); | 870 | dsp_a_val); |
| 871 | snd_soc_update_bits(codec, AIC31XX_IFACE2, | 871 | snd_soc_update_bits(codec, AIC31XX_IFACE2, |
| 872 | AIC31XX_BCLKINV_MASK, | 872 | AIC31XX_BCLKINV_MASK, |
| 873 | iface_reg3); | 873 | iface_reg2); |
| 874 | 874 | ||
| 875 | return 0; | 875 | return 0; |
| 876 | } | 876 | } |
