ALSA: snd-hda-intel - add checks for invalid values to *query_supported_pcm()
authorJaroslav Kysela <perex@perex.cz>
Tue, 17 Mar 2009 13:30:31 +0000 (14:30 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 18 Mar 2009 06:50:44 +0000 (07:50 +0100)
commitee5047102cf632351c418060bfbe3b6eb5c42e7b
tree18819b5810d5d36aacd79a0d9a12dfceeb97fb0e
parentb9591448e5160ccd353d8547ade018cfdf2b3e09
ALSA: snd-hda-intel - add checks for invalid values to *query_supported_pcm()

If ratesp or formatsp values are zero, wrong values are passed to ALSA's
the PCM midlevel code. The bug is showed more later than expected.

Also, clean a bit the code.

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