diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-04-08 12:15:03 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-08 12:23:10 -0400 |
commit | a053fc318bc5d28cd25168c948255fd48a29ea26 (patch) | |
tree | a1e53e38d984f912226cc2e9b76b9b74290f2641 /sound | |
parent | a59d7199f62b8336570972dcc288321d0ec999fe (diff) |
ALSA: bebob: fix to processing in big-endian machine for sending cue
Some M-Audio devices require to receive bootup command just after
powering on, while codes in BeBoB driver doesn't work properly in
big-endian machine because the command should be aligned by
little-endian.
This commit fixes this bug. This fix should go to stable kernel.
Cc: Takayuki Shiroma <t.shiroma.oki@gmail.com>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/firewire/bebob/bebob_maudio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/firewire/bebob/bebob_maudio.c b/sound/firewire/bebob/bebob_maudio.c index a422aaa3bb0c..9ee25a63f684 100644 --- a/sound/firewire/bebob/bebob_maudio.c +++ b/sound/firewire/bebob/bebob_maudio.c | |||
@@ -96,10 +96,10 @@ int snd_bebob_maudio_load_firmware(struct fw_unit *unit) | |||
96 | struct fw_device *device = fw_parent_device(unit); | 96 | struct fw_device *device = fw_parent_device(unit); |
97 | int err, rcode; | 97 | int err, rcode; |
98 | u64 date; | 98 | u64 date; |
99 | __be32 cues[3] = { | 99 | __le32 cues[3] = { |
100 | MAUDIO_BOOTLOADER_CUE1, | 100 | cpu_to_le32(MAUDIO_BOOTLOADER_CUE1), |
101 | MAUDIO_BOOTLOADER_CUE2, | 101 | cpu_to_le32(MAUDIO_BOOTLOADER_CUE2), |
102 | MAUDIO_BOOTLOADER_CUE3 | 102 | cpu_to_le32(MAUDIO_BOOTLOADER_CUE3) |
103 | }; | 103 | }; |
104 | 104 | ||
105 | /* check date of software used to build */ | 105 | /* check date of software used to build */ |