ALSA: bebob: code refactoring for stream format detection
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 21 Mar 2021 03:28:29 +0000 (12:28 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Mar 2021 11:22:00 +0000 (12:22 +0100)
commitcaa271510687f3ce3eed3a120cd2a6f71bc49223
tree90cfb02bb1f84765806d36aace3043213edfd906
parentf57a741874bb6995089020e97a1dcdf9b165dcbe
ALSA: bebob: code refactoring for stream format detection

ALSA bebob driver scans supported formats of packet for each direction
when probing the target device. Some helper functions are used for the
scanning, however its implementation is not necessarily irredundant.

This commit refactors the helper functions to remove redundant codes.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210321032831.340278-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_stream.c