Skip to content

Commit

Permalink
ALSA: dice: unuse second stream for MIDI conformant data channel for …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
takaswie authored and tiwai committed May 27, 2018
1 parent 1ceb506 commit 84eaaef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sound/firewire/dice/dice-tcelectronic.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ int snd_dice_detect_tcelectronic_formats(struct snd_dice *dice)
memcpy(dice->rx_pcm_chs, entry->spec->rx_pcm_chs,
MAX_STREAMS * SND_DICE_RATE_MODE_COUNT * sizeof(unsigned int));

for (i = 0; i < MAX_STREAMS; ++i) {
if (entry->spec->has_midi) {
dice->tx_midi_ports[i] = 1;
dice->rx_midi_ports[i] = 1;
}
if (entry->spec->has_midi) {
dice->tx_midi_ports[0] = 1;
dice->rx_midi_ports[0] = 1;
}

return 0;
Expand Down

0 comments on commit 84eaaef

Please sign in to comment.