]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - sound/firewire/motu/amdtp-motu.c
ALSA: firewire-motu: fix construction of PCM frame for capture direction
[thirdparty/kernel/stable.git] / sound / firewire / motu / amdtp-motu.c
index f0555a24d90ed1e6df27ea65b7eec57721c4751a..6c9b743ea74bb7d00683abbfdafd31a8498933eb 100644 (file)
@@ -136,7 +136,9 @@ static void read_pcm_s32(struct amdtp_stream *s,
                byte = (u8 *)buffer + p->pcm_byte_offset;
 
                for (c = 0; c < channels; ++c) {
-                       *dst = (byte[0] << 24) | (byte[1] << 16) | byte[2];
+                       *dst = (byte[0] << 24) |
+                              (byte[1] << 16) |
+                              (byte[2] << 8);
                        byte += 3;
                        dst++;
                }