Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257731
b: refs/heads/master
c: 18bd2c4
h: refs/heads/master
i:
  257729: 9cb3b68
  257727: d7474e1
v: v3
  • Loading branch information
Takashi Iwai committed Jul 4, 2011
1 parent 55a6106 commit a5a880f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: de6c74f3e323b132caec898d224e0e3253d92eaf
refs/heads/master: 18bd2c44b9c7f0ee775e756dd59e12e0939f7ab9
10 changes: 7 additions & 3 deletions trunk/sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,7 @@ static int via_auto_create_hp_ctls(struct hda_codec *codec, hda_nid_t pin)
{
struct via_spec *spec = codec->spec;
struct nid_path *path;
bool check_dac;
int err;

if (!pin)
Expand All @@ -1875,11 +1876,14 @@ static int via_auto_create_hp_ctls(struct hda_codec *codec, hda_nid_t pin)
!spec->hp_dac_nid)
return 0;

if (spec->hp_dac_nid && !spec->hp_indep_shared)
if (spec->hp_dac_nid && !spec->hp_indep_shared) {
path = &spec->hp_path;
else
check_dac = true;
} else {
path = &spec->hp_dep_path;
err = create_ch_ctls(codec, "Headphone", 3, false, path);
check_dac = false;
}
err = create_ch_ctls(codec, "Headphone", 3, check_dac, path);
if (err < 0)
return err;
if (spec->hp_dac_nid) {
Expand Down

0 comments on commit a5a880f

Please sign in to comment.