]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: wm8994: Fix setting rate_reg for wm8994-aif2
authorAxel Lin <axel.lin@gmail.com>
Tue, 4 Oct 2011 14:07:18 +0000 (22:07 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:43:18 +0000 (09:43 -0800)
commit c527e6aadc8f142ad388b6aa59a1ce6a4bfb1966 upstream.

For wm8994-aif2, the rate_reg should be WM8994_AIF2_RATE.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/soc/codecs/wm8994.c

index b393f9fac97a5e75a8bc1b44cb3c6f898482cad3..48ea611728d45f0d434d0f42b1f72e08df081713 100644 (file)
@@ -2311,7 +2311,7 @@ static void wm8994_aif_shutdown(struct snd_pcm_substream *substream,
                rate_reg = WM8994_AIF1_RATE;
                break;
        case 2:
-               rate_reg = WM8994_AIF1_RATE;
+               rate_reg = WM8994_AIF2_RATE;
                break;
        default:
                break;