ASoC: Add max98095 CODEC driver
Peter Hsiang [Tue, 5 Apr 2011 02:35:30 +0000 (19:35 -0700)]
This patch adds the MAX98095 CODEC driver.

Signed-off-by: Peter Hsiang <peter.hsiang@maxim-ic.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 82a5a936f6dea13849d93a2899a9b7294a8db336)

Change-Id: I0a9805a90f46e30c756e5a266e96904597242185
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/69960
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>

sound/soc/codecs/max98095.c

index 668434d..9a793b3 100644 (file)
@@ -1517,6 +1517,8 @@ static int max98095_dai_set_sysclk(struct snd_soc_dai *dai,
        if (freq == max98095->sysclk)
                return 0;
 
+       max98095->sysclk = freq; /* remember current sysclk */
+
        /* Setup clocks for slave mode, and using the PLL
         * PSCLK = 0x01 (when master clk is 10MHz to 20MHz)
         *         0x02 (when master clk is 20MHz to 40MHz)..