ALSA: hda - Avoid invalid formats and rates with shared SPDIF
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Jul 2009 21:03:30 +0000 (23:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Jul 2009 21:03:30 +0000 (23:03 +0200)
commit022b466fc353d3dc7a152451144be656248666ce
treea1a9c46a86898d2eeffc5dbb8f5fdb7a49666d02
parentaa202455eec51699e44f658530728162cefa1307
ALSA: hda - Avoid invalid formats and rates with shared SPDIF

Check whether formats and rates don't result in zero due to the
restriction of SPDIF sharing.  If any of them can be zero, disable
the SPDIF sharing mode instead.  Otherwise it will lead to a PCM
configuration error.

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