Skip to content

Commit

Permalink
ASoC: Fix a bug in WM8962 DSP_A and DSP_B settings
Browse files Browse the repository at this point in the history
Signed-off-by: Susan Gao <sgao@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmico.com>
Cc: stable@kernel.org
  • Loading branch information
Susan Gao authored and Mark Brown committed Sep 29, 2011
1 parent c29429f commit fbc7c62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -3223,9 +3223,9 @@ static int wm8962_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
int aif0 = 0;

switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
case SND_SOC_DAIFMT_DSP_A:
aif0 |= WM8962_LRCLK_INV;
case SND_SOC_DAIFMT_DSP_B:
aif0 |= WM8962_LRCLK_INV | 3;
case SND_SOC_DAIFMT_DSP_A:
aif0 |= 3;

switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
Expand Down

0 comments on commit fbc7c62

Please sign in to comment.