GithubHelp home page GithubHelp logo

mytekusb2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mytekusb2's Issues

device does not shows up in alsa

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?

Build error on recent kernel due to byte_rev_table

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) {

Issue with Installing on Arch

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

Not an issue...

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.

  • edit new file "/etc/udev/rules.d" (might differ on your system):

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 ?

Driver will not compile

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?

probe of 2-2:1.0 failed with error -5

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.

Does not build in Linux =>3.16

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.