Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353080
b: refs/heads/master
c: e1284af
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 102697a commit 16ad724
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 985803ca91c3039afd15a2fd32a9ef5771652cee
refs/heads/master: e1284af730792344f96e1428a6199e19699dfccc
12 changes: 7 additions & 5 deletions trunk/sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,10 @@ static int try_assign_dacs(struct hda_codec *codec, int num_outs,
}
if (!path)
dac = dacs[i] = 0;
else
else {
print_nid_path("output", path);
path->active = true;
}
if (dac)
badness += assign_out_path_ctls(codec, pin, dac);
}
Expand Down Expand Up @@ -1045,6 +1047,7 @@ static bool map_singles(struct hda_codec *codec, int outs,
dacs[i] = dac;
found = true;
print_nid_path("output", path);
path->active = true;
}
}
return found;
Expand Down Expand Up @@ -2418,6 +2421,7 @@ static void parse_digital(struct hda_codec *codec)
if (!path)
continue;
print_nid_path("digout", path);
path->active = true;
if (!nums) {
spec->multiout.dig_out_nid = dig_nid;
spec->dig_out_type = spec->autocfg.dig_out_type[0];
Expand Down Expand Up @@ -3556,10 +3560,8 @@ static void set_output_and_unmute(struct hda_codec *codec, hda_nid_t pin,
path = snd_hda_get_nid_path(codec, dac, pin);
if (!path)
return;
if (path->active)
return;
snd_hda_activate_path(codec, path, true, true);
set_pin_eapd(codec, pin, true);
snd_hda_activate_path(codec, path, path->active, true);
set_pin_eapd(codec, pin, path->active);
}

/* initialize primary output paths */
Expand Down

0 comments on commit 16ad724

Please sign in to comment.