]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 5 Apr 2017 19:35:14 +0000 (21:35 +0200)
commit7d1864958fb45e87909fed2f81afe88a5804adc4
tree25edf51c9db096d7a4ebe0b3b7f5ceb1edd3394c
parent6950b530e54c9ccf9d39b2ba9601de927e345245
ALSA: oxfw: fix regression to handle Stanton SCS.1m/1d

At a commit facf01015e43 ("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: facf01015e43 ("ALSA: oxfw: delayed registration of sound card")
Cc: <stable@vger.kernel.org> # 4.7+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/oxfw/oxfw.c