ALSA: dice: split subaddress check from category check
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 31 Dec 2015 04:58:11 +0000 (13:58 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Jan 2016 09:18:52 +0000 (10:18 +0100)
commit4a47a87defa0a67312932a3aaee3516dcf66659b
tree889361dbea4fe451471fe260a35285d301b6e6e3
parentd8c5ed752e5b9aabad9ea8b53272b6abb4fa5235
ALSA: dice: split subaddress check from category check

Before allocating an instance of sound card, ALSA dice driver checks
chip_ID_hi in Bus information block of Config ROM, then also checks
subaddresses. The former operation reads cache of Config ROM in Linux
FireWire subsystem, while the latter operation sends read transaction.
The latter can be merged into initialization of transaction system.

This commit splits these two operations to reduce needless transactions
in probe processing.

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