Commit 921c038d authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'asoc/fix/wm2200' into tmp

parents 28f2675d 0cc411b9
...@@ -1566,15 +1566,9 @@ static int wm2200_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) ...@@ -1566,15 +1566,9 @@ static int wm2200_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
case SND_SOC_DAIFMT_DSP_A: case SND_SOC_DAIFMT_DSP_A:
fmt_val = 0; fmt_val = 0;
break; break;
case SND_SOC_DAIFMT_DSP_B:
fmt_val = 1;
break;
case SND_SOC_DAIFMT_I2S: case SND_SOC_DAIFMT_I2S:
fmt_val = 2; fmt_val = 2;
break; break;
case SND_SOC_DAIFMT_LEFT_J:
fmt_val = 3;
break;
default: default:
dev_err(codec->dev, "Unsupported DAI format %d\n", dev_err(codec->dev, "Unsupported DAI format %d\n",
fmt & SND_SOC_DAIFMT_FORMAT_MASK); fmt & SND_SOC_DAIFMT_FORMAT_MASK);
...@@ -1626,7 +1620,7 @@ static int wm2200_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) ...@@ -1626,7 +1620,7 @@ static int wm2200_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
WM2200_AIF1TX_LRCLK_MSTR | WM2200_AIF1TX_LRCLK_INV, WM2200_AIF1TX_LRCLK_MSTR | WM2200_AIF1TX_LRCLK_INV,
lrclk); lrclk);
snd_soc_update_bits(codec, WM2200_AUDIO_IF_1_5, snd_soc_update_bits(codec, WM2200_AUDIO_IF_1_5,
WM2200_AIF1_FMT_MASK << 1, fmt_val << 1); WM2200_AIF1_FMT_MASK, fmt_val);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment