ALSA: fireface: fix for state to fetch PCM frames

According to my memo at hand and saved records, writing 0x00000001 to
SND_FF_REG_FETCH_PCM_FRAMES disables fetching PCM frames in corresponding
channel, however current implement uses reversed logic. This results in
muted volume in device side during playback.

This commit corrects the bug.

Cc: <stable@vger.kernel.org> # v4.12+
Fixes: 76fdb3a9e1 ('ALSA: fireface: add support for Fireface 400')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Sakamoto 2018-12-15 19:06:48 +09:00 коммит произвёл Takashi Iwai
Родитель 5ef108c53e
Коммит 3d16200a3e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -86,7 +86,7 @@ static int ff400_switch_fetching_mode(struct snd_ff *ff, bool enable)
if (reg == NULL) if (reg == NULL)
return -ENOMEM; return -ENOMEM;
if (enable) { if (!enable) {
/* /*
* Each quadlet is corresponding to data channels in a data * Each quadlet is corresponding to data channels in a data
* blocks in reverse order. Precisely, quadlets for available * blocks in reverse order. Precisely, quadlets for available