diff options
author | Joe Perches <joe@perches.com> | 2014-10-28 17:22:49 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-14 02:01:53 -0500 |
commit | 9547c0999e50fd624cab52f94a79f0fd27a7cb84 (patch) | |
tree | 977e3de288b930aeb1b0b085dd974db385c80bf0 /sound/usb/6fire | |
parent | 76b188c4b370876018e3a778ec11a94a5316dbe4 (diff) |
ALSA: 6fire: Convert byte_rev_table uses to bitrev8
Use the inline function instead of directly indexing the array.
This allows some architectures with hardware instructions
for bit reversals to eliminate the array.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/6fire')
-rw-r--r-- | sound/usb/6fire/firmware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/6fire/firmware.c b/sound/usb/6fire/firmware.c index 3b02e54b8f6d..62c25e74f0e5 100644 --- a/sound/usb/6fire/firmware.c +++ b/sound/usb/6fire/firmware.c | |||
@@ -316,7 +316,7 @@ static int usb6fire_fw_fpga_upload( | |||
316 | 316 | ||
317 | while (c != end) { | 317 | while (c != end) { |
318 | for (i = 0; c != end && i < FPGA_BUFSIZE; i++, c++) | 318 | for (i = 0; c != end && i < FPGA_BUFSIZE; i++, c++) |
319 | buffer[i] = byte_rev_table[(u8) *c]; | 319 | buffer[i] = bitrev8((u8)*c); |
320 | 320 | ||
321 | ret = usb6fire_fw_fpga_write(device, buffer, i); | 321 | ret = usb6fire_fw_fpga_write(device, buffer, i); |
322 | if (ret < 0) { | 322 | if (ret < 0) { |