]> 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)
commit9045223ed6014845bfe0ac0190a598bd653982c3
tree94690a5a1fd5475a51179f210a840314b0e427b3
parentd8ed1aba1b0445448ec0328fca017644fc2bae75
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