Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248199
b: refs/heads/master
c: af9af86
h: refs/heads/master
i:
  248197: 533c275
  248195: afb9b09
  248191: ef8194c
v: v3
  • Loading branch information
Mark Brown committed Mar 18, 2011
1 parent 65bd9c0 commit d07ecc2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6b7b57012c8307b936025ad41fcbef6b1b6b52f
refs/heads/master: af9af866020ea341aca32123b3109b6a9408dd8c
12 changes: 12 additions & 0 deletions trunk/sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ static int wm8994_retune_mobile_base[] = {

static int wm8994_readable(struct snd_soc_codec *codec, unsigned int reg)
{
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
struct wm8994 *control = wm8994->control_data;

switch (reg) {
case WM8994_GPIO_1:
case WM8994_GPIO_2:
Expand All @@ -71,6 +74,15 @@ static int wm8994_readable(struct snd_soc_codec *codec, unsigned int reg)
case WM8994_INTERRUPT_STATUS_2:
case WM8994_INTERRUPT_RAW_STATUS_2:
return 1;

case WM8958_DSP2_PROGRAM:
case WM8958_DSP2_CONFIG:
case WM8958_DSP2_EXECCONTROL:
if (control->type == WM8958)
return 1;
else
return 0;

default:
break;
}
Expand Down

0 comments on commit d07ecc2

Please sign in to comment.