ASoC: wm5110: Add support for ASRC RATE 1
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 19 Dec 2013 09:30:13 +0000 (09:30 +0000)
committerMark Brown <broonie@linaro.org>
Thu, 19 Dec 2013 10:20:31 +0000 (10:20 +0000)
Add support for configuring the sample rate on the SYSCLK side of the
ASRC.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/arizona.c
sound/soc/codecs/arizona.h
sound/soc/codecs/wm5110.c

index 56d3ff570ad473959700014361e252b822a81e41..e4295fee8f13673f15f9811a9516ba84bb548584 100644 (file)
@@ -530,6 +530,13 @@ const struct soc_enum arizona_isrc_fsl[] = {
 };
 EXPORT_SYMBOL_GPL(arizona_isrc_fsl);
 
+const struct soc_enum arizona_asrc_rate1 =
+       SOC_VALUE_ENUM_SINGLE(ARIZONA_ASRC_RATE1,
+                             ARIZONA_ASRC_RATE1_SHIFT, 0xf,
+                             ARIZONA_RATE_ENUM_SIZE - 1,
+                             arizona_rate_text, arizona_rate_val);
+EXPORT_SYMBOL_GPL(arizona_asrc_rate1);
+
 static const char *arizona_vol_ramp_text[] = {
        "0ms/6dB", "0.5ms/6dB", "1ms/6dB", "2ms/6dB", "4ms/6dB", "8ms/6dB",
        "15ms/6dB", "30ms/6dB",
index 99a97c06d46a13b0bdbf7951e986e033b76aa31d..10b398477203a43be5365eab324a0cfba805a1e4 100644 (file)
@@ -187,6 +187,7 @@ extern const int arizona_rate_val[ARIZONA_RATE_ENUM_SIZE];
 
 extern const struct soc_enum arizona_isrc_fsl[];
 extern const struct soc_enum arizona_isrc_fsh[];
+extern const struct soc_enum arizona_asrc_rate1;
 
 extern const struct soc_enum arizona_in_vi_ramp;
 extern const struct soc_enum arizona_in_vd_ramp;
index 57be82261c2fe113f6941e275b0b63177876c4f1..f3d96eae031a89f0804421d8c4008a06de7137cd 100644 (file)
@@ -283,6 +283,7 @@ SOC_VALUE_ENUM("ISRC3 FSL", arizona_isrc_fsl[2]),
 SOC_VALUE_ENUM("ISRC1 FSH", arizona_isrc_fsh[0]),
 SOC_VALUE_ENUM("ISRC2 FSH", arizona_isrc_fsh[1]),
 SOC_VALUE_ENUM("ISRC3 FSH", arizona_isrc_fsh[2]),
+SOC_VALUE_ENUM("ASRC RATE 1", arizona_asrc_rate1),
 
 ARIZONA_MIXER_CONTROLS("DSP1L", ARIZONA_DSP1LMIX_INPUT_1_SOURCE),
 ARIZONA_MIXER_CONTROLS("DSP1R", ARIZONA_DSP1RMIX_INPUT_1_SOURCE),