]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: oxfw: fix regression to handle Stanton SCS.1m/1d
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 3 Apr 2017 12:13:40 +0000 (21:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 May 2017 15:37:42 +0000 (08:37 -0700)
commita33e886d3f19b48cfdc925d59ad6388baf46ccfc
tree2c76ad5db309dfbf61552b0e261ff64e12d42ad7
parentf62c45868079be031b647faa5d42f689aa96d26b
ALSA: oxfw: fix regression to handle Stanton SCS.1m/1d

commit 3d016d57fdc5e6caa4cd67896f4b081bccad6e2c upstream.

At a commit 6c29230e2a5f ("ALSA: oxfw: delayed registration of sound
card"), ALSA oxfw driver fails to handle SCS.1m/1d, due to -EBUSY at a call
of snd_card_register(). The cause is that the driver manages to register
two rawmidi instances with the same device number 0. This is a regression
introduced since kernel 4.7.

This commit fixes the regression, by fixing up device property after
discovering stream formats.

Fixes: 6c29230e2a5f ("ALSA: oxfw: delayed registration of sound card")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/firewire/oxfw/oxfw.c