]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-tascam: change device probing processing
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 12 Oct 2015 10:10:25 +0000 (19:10 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Oct 2015 12:17:02 +0000 (14:17 +0200)
commit46e013f60eae6b67b7d0d972503ef2a69b8171ce
treefaf59f481b5a142d282bda00a3f2d4839e23ea8e
parenta75c90d8610eab397f4025803615112809bb0f72
ALSA: firewire-tascam: change device probing processing

Currently, this driver picks up model name with be32_to_cpu() macro
to align characters. This is wrong operation because the result is
different depending on CPU endiannness.

Additionally, vendor released several versions of firmware for this
series. It's not better to assign model-dependent information to
device entry according to the version field.

This commit fixes these bugs. The name of model is picked up correctly
and used to identify model-dependent information.

Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Fixes: af5cba768d17 ('ALSA: firewire-tascam: add skeleton for TASCAM FireWire series')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/tascam/tascam.c