Skip to contentSkip to conversation

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

PATCH Applied Peter Ujfalusi 2 participants 2 messages Apr 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: TWL4030: Add actuall support for 96KHz playback support

Adds the needed code to be able to use 96KHz playback.

---
 sound/soc/codecs/twl4030.c |    3 +++
 sound/soc/codecs/twl4030.h |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
sound/soc/codecs/twl4030.c +3 -0
index 4199498..bfda7a8 100644
@@ -1311,6 +1311,9 @@ static int twl4030_hw_params(struct snd_pcm_substream *substream,
 	case 48000:
 		mode |= TWL4030_APLL_RATE_48000;
 		break;
+	case 96000:
+		mode |= TWL4030_APLL_RATE_96000;
+		break;
 	default:
 		printk(KERN_ERR "TWL4030 hw params: unknown rate %d\n",
 			params_rate(params));
sound/soc/codecs/twl4030.h +1 -0
index 33dbb14..cb63765 100644
@@ -109,6 +109,7 @@
 #define TWL4030_APLL_RATE_32000		0x80
 #define TWL4030_APLL_RATE_44100		0x90
 #define TWL4030_APLL_RATE_48000		0xA0
+#define TWL4030_APLL_RATE_96000		0xE0
 #define TWL4030_SEL_16K			0x04
 #define TWL4030_CODECPDZ		0x02
 #define TWL4030_OPT_MODE		0x01
Signature · 1 line
1.6.2