ALSA: dice: fix wrong channel mappping at higher sampling rate
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 29 Aug 2014 04:40:44 +0000 (13:40 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Aug 2014 07:51:45 +0000 (09:51 +0200)
commit1033eb5b5aeeb526c22068e0fb0cef9f3c14231e
tree06687fcaf8d15607bf356fd9c164abb1ecfc4489
parent1a22e7758eabc431d6d8af085dc6e4c5031779a6
ALSA: dice: fix wrong channel mappping at higher sampling rate

The channel mapping is initialized by amdtp_stream_set_parameters(), however
Dice driver set it before calling this function. Furthermore, the setting is
wrong because the index is the value of array, and vice versa.

This commit moves codes for channel mapping after the function and set it correctly.

Reported-by: Daniel Robbins <drobbins@funtoo.org>
Fixes: 10550bea44a8 ("ALSA: dice/firewire-lib: Keep dualwire mode but obsolete CIP_HI_DUALWIRE")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org> # 3.16
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice.c