Commit 103f211d authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: TWL4030: Add actual support for 96KHz playback support

Adds the needed code to be able to use 96KHz playback.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 0a11b168
...@@ -1311,6 +1311,9 @@ static int twl4030_hw_params(struct snd_pcm_substream *substream, ...@@ -1311,6 +1311,9 @@ static int twl4030_hw_params(struct snd_pcm_substream *substream,
case 48000: case 48000:
mode |= TWL4030_APLL_RATE_48000; mode |= TWL4030_APLL_RATE_48000;
break; break;
case 96000:
mode |= TWL4030_APLL_RATE_96000;
break;
default: default:
printk(KERN_ERR "TWL4030 hw params: unknown rate %d\n", printk(KERN_ERR "TWL4030 hw params: unknown rate %d\n",
params_rate(params)); params_rate(params));
......
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
#define TWL4030_APLL_RATE_32000 0x80 #define TWL4030_APLL_RATE_32000 0x80
#define TWL4030_APLL_RATE_44100 0x90 #define TWL4030_APLL_RATE_44100 0x90
#define TWL4030_APLL_RATE_48000 0xA0 #define TWL4030_APLL_RATE_48000 0xA0
#define TWL4030_APLL_RATE_96000 0xE0
#define TWL4030_SEL_16K 0x04 #define TWL4030_SEL_16K 0x04
#define TWL4030_CODECPDZ 0x02 #define TWL4030_CODECPDZ 0x02
#define TWL4030_OPT_MODE 0x01 #define TWL4030_OPT_MODE 0x01
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment