Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230411
b: refs/heads/master
c: 60ea4ce
h: refs/heads/master
i:
  230409: 18300a1
  230407: bb0f5e9
v: v3
  • Loading branch information
Olaya, Margarita authored and Liam Girdwood committed Dec 14, 2010
1 parent 5a13fc9 commit 84fd65f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4e624d0609081e4394695fba3d7c3b7ebb6171ce
refs/heads/master: 60ea4cecddd03ed86b91bc8c057d3d305dc678be
9 changes: 8 additions & 1 deletion trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#include "twl6040.h"

#define TWL6040_RATES (SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
#define TWL6040_RATES SNDRV_PCM_RATE_8000_96000
#define TWL6040_FORMATS (SNDRV_PCM_FMTBIT_S32_LE)

struct twl6040_jack_data {
Expand Down Expand Up @@ -890,10 +890,17 @@ static int twl6040_hw_params(struct snd_pcm_substream *substream,

rate = params_rate(params);
switch (rate) {
case 11250:
case 22500:
case 44100:
case 88200:
lppllctl |= TWL6040_LPLLFIN;
priv->sysclk = 17640000;
break;
case 8000:
case 16000:
case 32000:
case 48000:
case 96000:
lppllctl &= ~TWL6040_LPLLFIN;
priv->sysclk = 19200000;
Expand Down

0 comments on commit 84fd65f

Please sign in to comment.