ALSA: asihpi - Fix format validity check.
authorEliot Blennerhassett <eblennerhassett@audioscience.com>
Thu, 22 Dec 2011 00:38:51 +0000 (13:38 +1300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Dec 2011 07:13:11 +0000 (08:13 +0100)
commit68d533932217c6b3da4ab9abb15ab79d3a79474c
treec04309f2eb7165bf5e78a38c123c57c9fa69181a
parentc1d70dd9c44d7554b97f38b5ce8001d3cbe10f61
ALSA: asihpi - Fix format validity check.

Sharing and not reinitialising static pcm_hardware struct resulted in
stream format validity flags being incorrectly shared between cards.
Fix and clarify by declaring locally and initialising in the open functions.

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c