Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: dice: unuse second stream for MIDI conformant data channel for TC Electronic models

At present, all of models produced by TC Electronic except for Konnekt Live
are supported with hard-coded their stream formats. Studio Konnekt 48 is
sore model to support dual streams for both directions. The second stream
has no MIDI conformant data channel in its data block. But current
implementation transfers the second stream with MIDI conformant data
channel.

This commit fixes this issue.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Takashi Sakamoto and committed by
Takashi Iwai
84eaaef2 1ceb506d

+3 -5
+3 -5
sound/firewire/dice/dice-tcelectronic.c
··· 95 95 memcpy(dice->rx_pcm_chs, entry->spec->rx_pcm_chs, 96 96 MAX_STREAMS * SND_DICE_RATE_MODE_COUNT * sizeof(unsigned int)); 97 97 98 - for (i = 0; i < MAX_STREAMS; ++i) { 99 - if (entry->spec->has_midi) { 100 - dice->tx_midi_ports[i] = 1; 101 - dice->rx_midi_ports[i] = 1; 102 - } 98 + if (entry->spec->has_midi) { 99 + dice->tx_midi_ports[0] = 1; 100 + dice->rx_midi_ports[0] = 1; 103 101 } 104 102 105 103 return 0;