OSDN Git Service

ALSA: hda/realtek - Add output path parser
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Dec 2012 14:45:38 +0000 (15:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Jan 2013 09:34:26 +0000 (10:34 +0100)
commit30dcd3b40409a4db272998b0cba1b9e80c15b1c8
tree37873f6d3d8f4727d6c88f16929cabe86d0d0dfd
parent463419de865622e4b13e977e1536375ab897a53f
ALSA: hda/realtek - Add output path parser

Add the output path parser to Realtek codec driver as we already have
in patch_via.c.  The nid_path struct represents the complete output
path from a DAC to a pin.  The alc_spec contains an array of these
paths, and a new path is added at each time when a new DAC is
assigned.

So far, this path list is used only in limited codes: namely in this
patch, only alc_is_dac_already_used() checks the list instead of dac
arrays in all possible outputs.  In the later development, the path
list will be referred from more places, such as the mixer control
assignment / check, the mute/unmute of active routes, etc.

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