lintweaker / mytekusb2

Linux ALSA USB driver for the Mytek Digital Stereo192-DSD DAC
11 stars 10 forks source link

Build error on recent kernel due to byte_rev_table #7

Closed clivem closed 8 years ago

clivem commented 9 years ago

Jurgen,

Not sure if the driver is working or not, but to get it to build on 3.20/4.0 ....

--- a/firmware.c.orig   2015-03-04 09:30:16.000000000 +0000
+++ b/firmware.c        2015-03-04 09:59:52.736332439 +0000
@@ -314,7 +314,11 @@

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

                ret = mytek_fw_fpga_write(device, buffer, i);
                if (ret < 0) {
lintweaker commented 8 years ago

Thanks, I bit late. I hardly use the Mytek nowadays.