ALSA: hda - Re-implementation of VIA Independent-HP sharing with side stream
authorTakashi Iwai <tiwai@suse.de>
Thu, 30 Jun 2011 15:24:47 +0000 (17:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Jun 2011 15:24:47 +0000 (17:24 +0200)
commit2525050518496dfd6905abfa8d6d34288eed36d7
tree046b47fd2e011a30f5cd4a992fadd2376e074545
parente322a36d3998f7f53c76e25e32302632326ec224
ALSA: hda - Re-implementation of VIA Independent-HP sharing with side stream

This patch adds the re-implementation of Independent-HP mode in the
case where the DAC is shared between HP and side-channel streams.
Now the driver tries to parse the output-path using the pre-parsed
side-channel DAC for the independent HP output, too.

When a playback PCM stream is opened with this shared mode, the
Independent-HP mixer switch can't be changed for avoiding the conflict,
thus it returns -EBUSY error.

One remaining unintuitive issue is that the DAC volume is still
controlled as "Side" volume although it's shared by both independent-HP
and side streams.

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