ALSA: HDA VIA: Fix 2nd S/PDIF out function
authorHarald Welte <HaraldWelte@viatech.com>
Mon, 15 Sep 2008 14:42:26 +0000 (22:42 +0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Sep 2008 06:18:13 +0000 (08:18 +0200)
commit5691ec7fc302ecffddfa21b19477aaaa4386d002
tree652d20e798a9b0f97a779eee36966b32f5ceb747
parentf8fdd4958b6c7af9abf630f06d43db4ddcd532f6
ALSA: HDA VIA: Fix 2nd S/PDIF out function

As it seems, the recently-sent patch for the 2nd S/PDIF (HDMI) output
is not working with alsa-kernel 1.0.18rc3.

This patch makes it work by
* activating the second S/PDIF output pin in the pin config
* consolidating the dig_playback_pcm_prepare() with extra_dig_pcm_prepare()
  functions
* remove the need for an extra hda_pcm_stream structure and rather represents
  the second digital output as substream within the primary S/PDIF digital out
  stream.

Signed-off-by: Logan Li <LoganLi@viatech.com.cn>
Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/patch_via.c