Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm5110: Add support for ASRC RATE 1

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>

authored by

Charles Keepax and committed by
Mark Brown
56d37d85 fbedc8cb

+9
+7
sound/soc/codecs/arizona.c
··· 530 530 }; 531 531 EXPORT_SYMBOL_GPL(arizona_isrc_fsl); 532 532 533 + const struct soc_enum arizona_asrc_rate1 = 534 + SOC_VALUE_ENUM_SINGLE(ARIZONA_ASRC_RATE1, 535 + ARIZONA_ASRC_RATE1_SHIFT, 0xf, 536 + ARIZONA_RATE_ENUM_SIZE - 1, 537 + arizona_rate_text, arizona_rate_val); 538 + EXPORT_SYMBOL_GPL(arizona_asrc_rate1); 539 + 533 540 static const char *arizona_vol_ramp_text[] = { 534 541 "0ms/6dB", "0.5ms/6dB", "1ms/6dB", "2ms/6dB", "4ms/6dB", "8ms/6dB", 535 542 "15ms/6dB", "30ms/6dB",
+1
sound/soc/codecs/arizona.h
··· 187 187 188 188 extern const struct soc_enum arizona_isrc_fsl[]; 189 189 extern const struct soc_enum arizona_isrc_fsh[]; 190 + extern const struct soc_enum arizona_asrc_rate1; 190 191 191 192 extern const struct soc_enum arizona_in_vi_ramp; 192 193 extern const struct soc_enum arizona_in_vd_ramp;
+1
sound/soc/codecs/wm5110.c
··· 283 283 SOC_VALUE_ENUM("ISRC1 FSH", arizona_isrc_fsh[0]), 284 284 SOC_VALUE_ENUM("ISRC2 FSH", arizona_isrc_fsh[1]), 285 285 SOC_VALUE_ENUM("ISRC3 FSH", arizona_isrc_fsh[2]), 286 + SOC_VALUE_ENUM("ASRC RATE 1", arizona_asrc_rate1), 286 287 287 288 ARIZONA_MIXER_CONTROLS("DSP1L", ARIZONA_DSP1LMIX_INPUT_1_SOURCE), 288 289 ARIZONA_MIXER_CONTROLS("DSP1R", ARIZONA_DSP1RMIX_INPUT_1_SOURCE),