Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148287
b: refs/heads/master
c: f83fba8
h: refs/heads/master
i:
  148285: e8ccca7
  148283: b1c1595
  148279: 1290c52
  148271: d613fb5
  148255: 6298a94
  148223: 0afa282
v: v3
  • Loading branch information
Mark Brown committed May 18, 2009
1 parent bace905 commit 08a258e
Show file tree
Hide file tree
Showing 2 changed files with 19 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: 452c5eaa0d5162e02ffee742ea17540887bc2904
refs/heads/master: f83fba8baab9e95fff0fe2be0e1e32a1650bdd7f
18 changes: 18 additions & 0 deletions trunk/sound/soc/soc-dapm.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,24 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev,
struct snd_soc_codec *codec = socdev->card->codec;
int ret = 0;

switch (level) {
case SND_SOC_BIAS_ON:
dev_dbg(socdev->dev, "Setting full bias\n");
break;
case SND_SOC_BIAS_PREPARE:
dev_dbg(socdev->dev, "Setting bias prepare\n");
break;
case SND_SOC_BIAS_STANDBY:
dev_dbg(socdev->dev, "Setting standby bias\n");
break;
case SND_SOC_BIAS_OFF:
dev_dbg(socdev->dev, "Setting bias off\n");
break;
default:
dev_err(socdev->dev, "Setting invalid bias %d\n", level);
return -EINVAL;
}

if (card->set_bias_level)
ret = card->set_bias_level(card, level);
if (ret == 0 && codec->set_bias_level)
Expand Down

0 comments on commit 08a258e

Please sign in to comment.