Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9547c099 authored by Joe Perches's avatar Joe Perches Committed by Takashi Iwai
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 76b188c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -316,7 +316,7 @@ static int usb6fire_fw_fpga_upload(

	while (c != end) {
		for (i = 0; c != end && i < FPGA_BUFSIZE; i++, c++)
			buffer[i] = byte_rev_table[(u8) *c];
			buffer[i] = bitrev8((u8)*c);

		ret = usb6fire_fw_fpga_write(device, buffer, i);
		if (ret < 0) {