Skip to content

Commit

Permalink
ALSA: hda - Exclude aamix from capture paths
Browse files Browse the repository at this point in the history
The capture paths shouldn't contain the analog loopback mixer.
Pass a proper argument to exclude the aamix NID.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent d12daf6 commit ca29683
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2110,13 +2110,9 @@ static int create_input_ctls(struct hda_codec *codec)

if (!is_reachable_path(codec, pin, adc))
continue;
path = snd_hda_add_new_path(codec, pin, adc, 0);
if (!path) {
snd_printd(KERN_ERR
"invalid input path 0x%x -> 0x%x\n",
pin, adc);
path = snd_hda_add_new_path(codec, pin, adc, -mixer);
if (!path)
continue;
}
print_nid_path("input", path);
spec->input_paths[imux_idx][c] =
snd_hda_get_path_idx(codec, path);
Expand Down

0 comments on commit ca29683

Please sign in to comment.