diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/twl6040.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index fd9a3ab91a1..b59d947d0bf 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | #include "twl6040.h" | 40 | #include "twl6040.h" |
41 | 41 | ||
42 | #define TWL6040_RATES (SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000) | 42 | #define TWL6040_RATES SNDRV_PCM_RATE_8000_96000 |
43 | #define TWL6040_FORMATS (SNDRV_PCM_FMTBIT_S32_LE) | 43 | #define TWL6040_FORMATS (SNDRV_PCM_FMTBIT_S32_LE) |
44 | 44 | ||
45 | struct twl6040_jack_data { | 45 | struct twl6040_jack_data { |
@@ -890,10 +890,17 @@ static int twl6040_hw_params(struct snd_pcm_substream *substream, | |||
890 | 890 | ||
891 | rate = params_rate(params); | 891 | rate = params_rate(params); |
892 | switch (rate) { | 892 | switch (rate) { |
893 | case 11250: | ||
894 | case 22500: | ||
895 | case 44100: | ||
893 | case 88200: | 896 | case 88200: |
894 | lppllctl |= TWL6040_LPLLFIN; | 897 | lppllctl |= TWL6040_LPLLFIN; |
895 | priv->sysclk = 17640000; | 898 | priv->sysclk = 17640000; |
896 | break; | 899 | break; |
900 | case 8000: | ||
901 | case 16000: | ||
902 | case 32000: | ||
903 | case 48000: | ||
897 | case 96000: | 904 | case 96000: |
898 | lppllctl &= ~TWL6040_LPLLFIN; | 905 | lppllctl &= ~TWL6040_LPLLFIN; |
899 | priv->sysclk = 19200000; | 906 | priv->sysclk = 19200000; |