[ALSA] hda-codec - Allow multiple SPDIF devices
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Feb 2008 11:31:13 +0000 (12:31 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Apr 2008 10:00:06 +0000 (12:00 +0200)
commit09f99701393c7b66bde01df6c292fe5d9f843033
tree0b312161cb903b036f1dd5d679e4d7a1e55b5149
parentbf277785d6921b8a9f8339ad5ad632aef6cae73c
[ALSA] hda-codec - Allow multiple SPDIF devices

The current code doesn't allow multiple SPDIF devices, and causes
errors when multiple SPDIF devices are found (e.g. SPDIF out and HDMI).
This patch allows multiple SPDIF devices by incrementing the index
automatically.

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