mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
ppc firmware upload fix
Signed-off-by: Thomas Charbonnel <thomas@undata.org>
This commit is contained in:
parent
d54b7eb412
commit
a6a8030c6f
1 changed files with 1 additions and 10 deletions
|
|
@ -40,16 +40,7 @@ int read_bin_file(u_int32_t *array, const char *filename)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
fclose(out);
|
fclose(out);
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
|
||||||
{
|
|
||||||
unsigned int idx;
|
|
||||||
for (idx = 0; idx < 24413; idx++)
|
|
||||||
array[idx] = ((array[idx] & 0x000000ff) << 16) |
|
|
||||||
((array[idx] & 0x0000ff00) << 8) |
|
|
||||||
((array[idx] & 0x00ff0000) >> 8) |
|
|
||||||
((array[idx] & 0xff000000) >> 16);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue