Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353191
b: refs/heads/master
c: f87498b
h: refs/heads/master
i:
  353189: dce1bac
  353187: 431bdd3
  353183: a29ffcf
v: v3
  • Loading branch information
Takashi Iwai committed Jan 21, 2013
1 parent 770016b commit 338c1e2
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 1fa335b0b797811d66a5f88373edd523f947cce4
refs/heads/master: f87498b65197f951899d8bbd99e5553227c41ec9
18 changes: 15 additions & 3 deletions trunk/sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1313,14 +1313,26 @@ static int check_aamix_out_path(struct hda_codec *codec, int path_idx)
{
struct hda_gen_spec *spec = codec->spec;
struct nid_path *path;
hda_nid_t dac, pin;

path = snd_hda_get_path_from_idx(codec, path_idx);
if (!path || !path->depth ||
is_nid_contained(path, spec->mixer_nid))
return 0;
path = snd_hda_add_new_path(codec, path->path[0],
path->path[path->depth - 1],
spec->mixer_nid);
dac = path->path[0];
pin = path->path[path->depth - 1];
path = snd_hda_add_new_path(codec, dac, pin, spec->mixer_nid);
if (!path) {
if (dac != spec->multiout.dac_nids[0])
dac = spec->multiout.dac_nids[0];
else if (spec->multiout.hp_out_nid[0])
dac = spec->multiout.hp_out_nid[0];
else if (spec->multiout.extra_out_nid[0])
dac = spec->multiout.extra_out_nid[0];
if (dac)
path = snd_hda_add_new_path(codec, dac, pin,
spec->mixer_nid);
}
if (!path)
return 0;
/* print_nid_path("output-aamix", path); */
Expand Down

0 comments on commit 338c1e2

Please sign in to comment.