]> 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)
commit61ac17000cc94e625681ce5ab62bd1ea59277728
treeabe9281f7614100aa7c9808c961a7880383bd6ac
parent6b0a1cd2612c771dd4411f6748f5a18480237ffe
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