ALSA: mtpav - Fix initial value for input hwport
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Feb 2009 23:06:42 +0000 (00:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Feb 2009 23:06:42 +0000 (00:06 +0100)
commit32cf9a16f4af01573ddec1eb073111fc20a9d7d4
tree6404826ae612e406e2e771b548800b6c458a2980
parent8e4921515c1a379539607eb443d51c30f4f7f338
ALSA: mtpav - Fix initial value for input hwport

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>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/mtpav.c