Merge branch 'asoc-5.2' into asoc-linus
[linux-2.6-block.git] / sound / soc / codecs / ad193x.c
index 05f4514048e212b8fcf37010c9052f8ab9c552c6..3ebc0524f4b2ae4630370bf39eb295b849275f88 100644 (file)
@@ -240,10 +240,8 @@ static int ad193x_set_dai_fmt(struct snd_soc_dai *codec_dai,
        }
 
        /* For DSP_*, LRCLK's polarity must be inverted */
-       if (fmt & SND_SOC_DAIFMT_DSP_A) {
-               change_bit(ffs(AD193X_DAC_LEFT_HIGH) - 1,
-                          (unsigned long *)&dac_fmt);
-       }
+       if (fmt & SND_SOC_DAIFMT_DSP_A)
+               dac_fmt ^= AD193X_DAC_LEFT_HIGH;
 
        switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
        case SND_SOC_DAIFMT_CBM_CFM: /* codec clk & frm master */