ASoC: Fix supported sample rates of TWL4030 audio codec
PATCH 1/1 ASoC: Fix supported sample rates of TWL4030 audio codec
TWL4030 currently supports rates between 8 kHz and 48 kHz and sets the codec mode register accordingly in twl4030_hw_params. Expose this info so that ASoC can match other rates than 44.1 kHz or 48 kHz as well.
Signed-off-by Jarkko Nikula <[email protected]>
Cc Steve Sakoman <[email protected]>
--- sound/soc/codecs/twl4030.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/twl4030.c +1 -1
@@ -504,7 +504,7 @@ static int twl4030_set_dai_fmt(struct snd_soc_dai *codec_dai,return 0 ; } -#define TWL4030_RATES (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000) +#define TWL4030_RATES (SNDRV_PCM_RATE_8000_48000)#define TWL4030_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FORMAT_S24_LE)struct snd_soc_dai twl4030_dai = {
Signature · 1 line
1.5.6.5
Quoted 6 lines · Jarkko Nikula
TWL4030 currently supports rates between 8 kHz and 48 kHz and sets the codec mode register accordingly in
twl4030_hw_params. Expose this info so that ASoC can match other rates than 44.1 kHz or 48 kHz as well.Signed-off-by Jarkko Nikula <[email protected]>Cc Steve Sakoman <[email protected]>
Acked-by Mark Brown <[email protected]>
Quoted 6 lines · Jarkko Nikula
TWL4030 currently supports rates between 8 kHz and 48 kHz and sets the codec mode register accordingly in
twl4030_hw_params. Expose this info so that ASoC can match other rates than 44.1 kHz or 48 kHz as well.Signed-off-by Jarkko Nikula <[email protected]>Cc Steve Sakoman <[email protected]>
Acked-by Steve Sakoman <[email protected]>