]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: fireface: postpone sound card registration
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 31 Mar 2017 13:06:00 +0000 (22:06 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 5 Apr 2017 19:31:26 +0000 (21:31 +0200)
commitb3a344e7e273c1cd89f508ebe2e3abb8255cc574
tree94690a5a1fd5475a51179f210a840314b0e427b3
parentd9ebbb283783f840d4ae32777068004244cc74f6
ALSA: fireface: postpone sound card registration

Just after appearing on IEEE 1394 bus, this unit generates several bus
resets. This is due to loading firmware from on-board flash memory and
initialize hardware. It's better to postpone sound card registration.

This commit schedules workqueue to process actual probe processing
2 seconds after the last bus-reset. The card instance is kept at unit
probe callback and released at card free callback. Therefore, when the
actual probe processing fails, the memory block is wasted. This is due to
simplify driver implementation.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/fireface/ff.c
sound/firewire/fireface/ff.h