]> err.no Git - linux-2.6/commitdiff
[ALSA] hdsp - solved big endian problem
authorThomas Charbonnel <thomas@undata.org>
Mon, 25 Apr 2005 09:35:29 +0000 (11:35 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 08:05:23 +0000 (10:05 +0200)
RME HDSP driver
ppc firmware upload fix

Signed-off-by: Thomas Charbonnel <thomas@undata.org>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/rme9652/hdsp.c

index 44ca7ddb68f6bfb49de3522564cc50629e74e7f2..b35ed5f0c0422dc719380ab708bbfdae956bc24f 100644 (file)
@@ -4912,19 +4912,9 @@ static int __devinit hdsp_request_fw_loader(hdsp_t *hdsp)
                release_firmware(fw);
                return -EINVAL;
        }
-#ifdef SNDRV_BIG_ENDIAN
-       {
-               int i;
-               u32 *src = (u32*)fw->data;
-               for (i = 0; i < ARRAY_SIZE(hdsp->firmware_cache); i++, src++)
-                       hdsp->firmware_cache[i] = ((*src & 0x000000ff) << 16) |
-                               ((*src & 0x0000ff00) << 8)  |
-                               ((*src & 0x00ff0000) >> 8)  |
-                               ((*src & 0xff000000) >> 16);
-       }
-#else
+
        memcpy(hdsp->firmware_cache, fw->data, sizeof(hdsp->firmware_cache));
-#endif
+
        release_firmware(fw);
                
        hdsp->state |= HDSP_FirmwareCached;