Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206568
b: refs/heads/master
c: e4295b4
h: refs/heads/master
v: v3
  • Loading branch information
Vladimir Zapolskiy authored and Mark Brown committed Jun 25, 2010
1 parent 7499dbb commit bd7d9f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: cc3202f5da3c81a99c5f3a605df527da7a77eed3
refs/heads/master: e4295b40ee64da20a3e31921745baba65e10ab36
12 changes: 8 additions & 4 deletions trunk/sound/soc/codecs/uda134x.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,6 @@ static int uda134x_soc_probe(struct platform_device *pdev)
codec->read = uda134x_read_reg_cache;
codec->write = uda134x_write;

if (!pd->is_powered_on_standby) {
codec->set_bias_level = uda134x_set_bias_level;
}

INIT_LIST_HEAD(&codec->dapm_widgets);
INIT_LIST_HEAD(&codec->dapm_paths);

Expand All @@ -533,6 +529,14 @@ static int uda134x_soc_probe(struct platform_device *pdev)

uda134x_reset(codec);

if (pd->is_powered_on_standby) {
codec->set_bias_level = NULL;
uda134x_set_bias_level(codec, SND_SOC_BIAS_ON);
} else {
codec->set_bias_level = uda134x_set_bias_level;
uda134x_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
}

/* register pcms */
ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1);
if (ret < 0) {
Expand Down

0 comments on commit bd7d9f3

Please sign in to comment.