ALSA: mtpav - Fix initial value for input hwport
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Feb 2009 23:06:42 +0000 (00:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Feb 2009 17:46:29 +0000 (09:46 -0800)
commitc6d0986f9ebbae82005f083adf46d9146939eaf6
treea31a5d52a62468dcb8166b49319f438784a9976d
parente90d4b294fe2f8bcb0f3caf1c0ce1931a2818198
ALSA: mtpav - Fix initial value for input hwport

commit 32cf9a16f4af01573ddec1eb073111fc20a9d7d4 upstream.

Fix the initial value for input hwport.  The old value (-1) may cause
Oops when an realtime MIDI byte is received before the input port is
explicitly given.
Instead, now it's set to the broadcasting as default.

Tested-by: Holger Dehnhardt <dehnhardt@ahdehnhardt.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/drivers/mtpav.c