]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:29:02 +0000 (09:29 -0800)
commitb9c2ffe4ccafdc6991fe7fd1d3a75f0ce7d5a259
tree65cc964aea50dcf19f968bd2e93fe8b42b46f156
parent7a7856eddb9603da697d54d5d3340c020a717364
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