[ALSA] hda-codec - Add zero checks in input-mux helper functions
authorTakashi Iwai <tiwai@suse.de>
Tue, 9 Oct 2007 09:58:41 +0000 (11:58 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 14:51:07 +0000 (16:51 +0200)
commit5513b0c58222d21b704cf352c554d9ab86c3fd97
treeb2f51e7c1cf57e7a311657ce96537f999f336bad
parent2469049e728ee0542d6617f81311a18a14e73826
[ALSA] hda-codec - Add zero checks in input-mux helper functions

Added zero checks in input-mux helper functions to avoid Oops.
Some devices may have no input pins while the driver registers
control elements calling these functions.

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