Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1530
b: refs/heads/master
c: 7679a03
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Charbonnel authored and Jaroslav Kysela committed May 29, 2005
1 parent 541562a commit 2145a4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67e1b51e293cec9bbe8c9ad81680bceec1e3b7f9
refs/heads/master: 7679a03099992d8e6c878d459e22b639ed8c10fa
14 changes: 2 additions & 12 deletions trunk/sound/pci/rme9652/hdsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2145a4a

Please sign in to comment.