lintweaker / mytekusb2 Goto Github PK
View Code? Open in Web Editor NEWLinux ALSA USB driver for the Mytek Digital Stereo192-DSD DAC
Linux ALSA USB driver for the Mytek Digital Stereo192-DSD DAC
Hi!
I'm running a Mytek DSD 192 on a Raspberry 3 with Raspbian stretch. I successfuly compiled the module and installed it on kernel 4.9.59-v7. Device is recognized 👍
But it does not shows up in alsa list..
[ 152.822344] usb 1-1.2: new high-speed USB device number 11 using dwc_otg
[ 152.955227] usb 1-1.2: New USB device found, idVendor=25ce, idProduct=000e`
[ 152.955243] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 152.955251] usb 1-1.2: Product: STEREO192-DSD DAC
[ 152.955258] usb 1-1.2: Manufacturer: Mytek Digital
[ 152.955265] usb 1-1.2: SerialNumber: 00000000000EC627
pi@pi-living:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@pi-living:~ $ uname -a
Linux pi-living 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux
Any idea how to fix this?
I see lots of mentions about alsa playing but can you record using this with arecord?
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) {
Hello,
Trying to figure out an issue with make on Arch. I seem to get this error.
Thank you,
Darin
[jaguar@jaguar mytekusb2-master]$ make
make CONFIG_DEBUG_SECTION_MISMATCH=y -C /lib/modules/3.10.10-rt7-1-rt/build M=/home/jaguar/mytekusb2-master modules
make[1]: Entering directory '/usr/src/linux-3.10.10-rt7-1-rt'
CC [M] /home/jaguar/mytekusb2-master/chip.o
In file included from /home/jaguar/mytekusb2-master/chip.c:18:0:
/home/jaguar/mytekusb2-master/chip.h:18:21: fatal error: version.h: No such file or directory
#include "version.h"
^
compilation terminated.
scripts/Makefile.build:308: recipe for target '/home/jaguar/mytekusb2-master/chip.o' failed
make[2]: *** [/home/jaguar/mytekusb2-master/chip.o] Error 1
Makefile:1224: recipe for target 'module/home/jaguar/mytekusb2-master' failed
make[1]: *** [module/home/jaguar/mytekusb2-master] Error 2
make[1]: Leaving directory '/usr/src/linux-3.10.10-rt7-1-rt'
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 2
please help to install this driver of raspberry HIFI.
Hi, just wanted to share my i-know-it-s-dirty-but-so-convenient solution to the known issues 1 and 2 (from the file ISSUES) for anyone googling. The system is Debian Jessie, compilation and installation went great.
SUBSYSTEM=="usb", ATTR{idVendor}=="25ce", PROGRAM="/sbin/rmmod snd-usb-mytek && /sbin/modprobe snd-usb-mytek && /sbin/rmmod snd-usb-mytek && /sbin/modprobe snd-usb-mytek && /sbin/rmmod snd-usb-mytek && /sbin/modprobe snd-usb-mytek"
This udev rule force the module to reload the firmware fully as your suggested workaround but this happens automatically when connecting or powercycling the DAC.
By the way, any chance to see a firewire version of your work someday ? Or should the generic snd_dice module be able to run mytek devices with a patch ?
When making the driver there was an error message:
pcm.c:529:10: error: ‘snd_pcm_lib_mmap_vmalloc’ undeclared here (not in a function); did you mean ‘snd_pcm_lib_mmap_iomem’?
529 | .mmap = snd_pcm_lib_mmap_vmalloc,
| ^~~~~~~~~~~~~~~~~~~~~~~~
| snd_pcm_lib_mmap_iomem
Any ideas?
In debian, alsa cannot find mytek.
Log messages are
usbcore: registered new interface driver snd-usb-mytek
usb 2-2: new high-speed USB device number 2 using ehci-pci
usb 2-2: New USB device found, idVendor=25ce, idProduct=000e
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-2: Product: STEREO192-DSD DAC
usb 2-2: Manufacturer: Mytek Digital
usb 2-2: SerialNumber: 00000000000B001F
snd-usb-mytek: probe of 2-2:1.0 failed with error -5
I'm using debian with linux kernel 3.10.10 and the mytek firware version is 1.75.
And below message is shown on dmesg.
mytek: Pre-initialised Mytek with missing FPGA firmware, please cycle its power
I turned mytek off and on and then connected USB cable but it didn't help.
Can it be solved?
Thanks.
CC [M] sound/usb/mytek/chip.o
sound/usb/mytek/chip.c: In function 'mytek_chip_probe':
sound/usb/mytek/chip.c:125:2: error: implicit declaration of function 'snd_card_create' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[4]: *** [sound/usb/mytek/chip.o] Error 1
make[3]: *** [sound/usb/mytek] Error 2
make[2]: *** [sound/usb] Error 2
make[1]: *** [sound] Error 2
make[1]: Leaving directory `/root/linux-3.18-rc2'
make: *** [debian/stamp/build/kernel] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.