ASoC: Add EQ and filter to max98095 CODEC driver
Peter Hsiang [Wed, 20 Apr 2011 01:20:40 +0000 (18:20 -0700)]
This patch adds the equalizer and biquad filter controls.

Signed-off-by: Peter Hsiang <peter.hsiang@maxim-ic.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit dad31ec133adb20c8fd10bfd9379da3f08b8721e)

Change-Id: I5f0f1005cecc1ca28bac360a55a86de7b9cddfe1
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/69961
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R4e3b033d8e7c644dfc9d0cd47d461ed716bca49b

sound/soc/codecs/max98095.c

index fcfa749..b3df5d0 100644 (file)
@@ -1875,6 +1875,7 @@ static int max98095_put_eq_enum(struct snd_kcontrol *kcontrol,
 
        cdata = &max98095->dai[channel];
        cdata->eq_sel = sel;
+
        fs = cdata->rate;
 
        /* Find the selected configuration with nearest sample rate */
@@ -2029,6 +2030,7 @@ static int max98095_put_bq_enum(struct snd_kcontrol *kcontrol,
 
        cdata = &max98095->dai[channel];
        cdata->bq_sel = sel;
+
        fs = cdata->rate;
 
        /* Find the selected configuration with nearest sample rate */