Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353042
b: refs/heads/master
c: 731dc30
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 41b3c87 commit 4e48c39
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 352f7f914ebb8fe19f9b3f03e7767b04eedf5be3
refs/heads/master: 731dc3019c7b9fa7a787f9b0a74e94638eee3fe1
6 changes: 6 additions & 0 deletions trunk/sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -3333,6 +3333,7 @@ EXPORT_SYMBOL_HDA(snd_hda_gen_build_pcms);
static void set_output_and_unmute(struct hda_codec *codec, hda_nid_t pin,
int pin_type, hda_nid_t dac)
{
struct hda_gen_spec *spec = codec->spec;
struct nid_path *path;

snd_hda_set_pin_ctl_cache(codec, pin, pin_type);
Expand All @@ -3342,6 +3343,11 @@ static void set_output_and_unmute(struct hda_codec *codec, hda_nid_t pin,
if (path->active)
return;
snd_hda_activate_path(codec, path, true, true);

if (!spec->own_eapd_ctl &&
(snd_hda_query_pin_caps(codec, pin) & AC_PINCAP_EAPD))
snd_hda_codec_update_cache(codec, pin, 0,
AC_VERB_SET_EAPD_BTLENABLE, 0x02);
}

/* initialize primary output paths */
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/pci/hda/hda_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ struct hda_gen_spec {
unsigned int no_primary_hp:1; /* Don't prefer HP pins to speaker pins */
unsigned int multi_cap_vol:1; /* allow multiple capture xxx volumes */
unsigned int inv_dmic_split:1; /* inverted dmic w/a for conexant */
unsigned int own_eapd_ctl:1; /* set EAPD by own function */

unsigned int parse_flags; /* passed to snd_hda_parse_pin_defcfg() */

Expand Down

0 comments on commit 4e48c39

Please sign in to comment.