]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Clean up multi-channel mixer name assignment in patch_realtek.c
authorTakashi Iwai <tiwai@suse.de>
Fri, 24 Jun 2011 09:03:58 +0000 (11:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 Jun 2011 09:06:17 +0000 (11:06 +0200)
commitf85f5921e1c6eb85f2baf36f88a60744fe8ded1b
treecc5455b5c5f6b3ba7ffd59e772f87595b6a2c4a5
parent95ac45fc9e80ad87ce1106dbe2938e9d0bb427f1
ALSA: hda - Clean up multi-channel mixer name assignment in patch_realtek.c

Change alc_get_line_out_pfx() in patch_realtek.c to provide the channel
specific name and assign the index so that each caller doesn't have to
set the channel name by itself.

Also, check the multi-io case with the primary hp-out; for the multi-io
channels, assign the channel name instead of "Headphone" with indices.
This makes the mixer names more intuitive and reduces confusion.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c