]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: fireface: code refactoring to handle multiplier mode
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 16 Dec 2018 08:32:30 +0000 (17:32 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 16 Dec 2018 09:18:25 +0000 (10:18 +0100)
commitb994171250bb39a804d03b1860eb0df2c3a49c6e
treeabe9281f7614100aa7c9808c961a7880383bd6ac
parentb7bfe63f0829c33af53170932da5ef7a082e5ad3
ALSA: fireface: code refactoring to handle multiplier mode

Fireface 400/800 use three modes against the number of data channels in
data block for both tx/rx packets.

This commit adds refactoring for it. Some enumerators are added to
represent each of mode and a function is added to calculate the mode
from sampling frequency code (sfc).

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