OSDN Git Service

[ALSA] hda-codec - Fix SPDIF output
authorTakashi Iwai <tiwai@suse.de>
Thu, 5 Apr 2007 12:51:48 +0000 (14:51 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 11 May 2007 14:55:56 +0000 (16:55 +0200)
commit6b97eb45f2edca51250b6c1e3142801f069245fe
treebe20e5e69f05499091ee9d83005b2712babb5431
parentf9ab2b1c3ab5345f9003bf7ebc1eaa0f9b8cf99e
[ALSA] hda-codec - Fix SPDIF output

Fix SPDIF output (at least on Realtek codecs).  The DIGI_CONVERT verbs
have to be reset before the PCM stream is set up.  Otherwise the digital
setup is screwed up.
Also, check the AMP capability before setting AMP of the digital out
widget.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_atihdmi.c
sound/pci/hda/patch_cmedia.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_via.c