[RESOLVED] C1+ pluging an USB audio DAC crashes

This forum is for supported devices using an ARMv7 Amlogic SoC.

[RESOLVED] C1+ pluging an USB audio DAC crashes

Postby Sagittarius » Sat Sep 17, 2016 12:30 am

Almost everything just works fine on my Odroid C1+, thanks to the devs.

When I use kodi standalone (pulseaudio is not installed), even with a good power supply, when I plug one of my USB audio DAC (HiFime), the system crashes (it does not happen with another USB audio DAC):
Code: Select all
MESSAGE=usb 1-1.3: new full-speed USB device number 3 using dwc_otg
sam. 2016-09-17 00:19:56.934397 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=57d;b=cb49ab4b7c994fa99034d8fe4e122675;m=5b16ac8;t=53ca909e8a4fd;x=ceffa78e76dd8f6d]
    PRIORITY=6
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    _TRANSPORT=kernel
    SYSLOG_FACILITY=0
    SYSLOG_IDENTIFIER=kernel
    _SOURCE_MONOTONIC_TIMESTAMP=95882280
    MESSAGE=input: HiFimeDIY Audio SA9023 USB Audio as /devices/lm1/usb1/1-1/1-1.3/1-1.3:1.0/input/input1
sam. 2016-09-17 00:19:56.955873 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=57e;b=cb49ab4b7c994fa99034d8fe4e122675;m=5b1beab;t=53ca909e8f8e1;x=2643e55837208676]
    PRIORITY=6
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    _TRANSPORT=kernel
    SYSLOG_FACILITY=0
    SYSLOG_IDENTIFIER=kernel
    _KERNEL_SUBSYSTEM=hid
    _KERNEL_DEVICE=+hid:0003:262A:10E0.0001
    _UDEV_SYSNAME=0003:262A:10E0.0001
    _SOURCE_MONOTONIC_TIMESTAMP=95887245
    MESSAGE=hid-generic 0003:262A:10E0.0001: input,hidraw0: USB HID v1.00 Device [HiFimeDIY Audio SA9023 USB Audio] on usb-lm1-1.3/input0
sam. 2016-09-17 00:19:56.987757 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=57f;b=cb49ab4b7c994fa99034d8fe4e122675;m=5b24240;t=53ca909e97c76;x=6e923d6ee1ed2af1]
    PRIORITY=6
    _UID=0
    _GID=0
    _SYSTEMD_SLICE=system.slice
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    _CAP_EFFECTIVE=1fffffffff
    _TRANSPORT=syslog
    SYSLOG_FACILITY=1
    SYSLOG_IDENTIFIER=mtp-probe
    MESSAGE=checking bus 1, device 3: "/sys/devices/lm1/usb1/1-1/1-1.3"
    _PID=636
    _COMM=mtp-probe
    _EXE=/usr/lib/udev/mtp-probe
    _CMDLINE=/usr/lib/udev/mtp-probe /sys/devices/lm1/usb1/1-1/1-1.3 1 3
    _SYSTEMD_CGROUP=/system.slice/systemd-udevd.service
    _SYSTEMD_UNIT=systemd-udevd.service
    _SOURCE_REALTIME_TIMESTAMP=1474071596987757
sam. 2016-09-17 00:19:56.992401 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=580;b=cb49ab4b7c994fa99034d8fe4e122675;m=5b250e7;t=53ca909e98b1d;x=e00a529531272dce]
    PRIORITY=6
    _UID=0
    _GID=0
    _SYSTEMD_SLICE=system.slice
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    _CAP_EFFECTIVE=1fffffffff
    _TRANSPORT=syslog
    SYSLOG_FACILITY=1
    SYSLOG_IDENTIFIER=mtp-probe
    _PID=636
    _COMM=mtp-probe
    _EXE=/usr/lib/udev/mtp-probe
    _CMDLINE=/usr/lib/udev/mtp-probe /sys/devices/lm1/usb1/1-1/1-1.3 1 3
    _SYSTEMD_CGROUP=/system.slice/systemd-udevd.service
    _SYSTEMD_UNIT=systemd-udevd.service
    MESSAGE=bus: 1, device: 3 was not an MTP device
    _SOURCE_REALTIME_TIMESTAMP=1474071596992401
sam. 2016-09-17 00:19:57.102256 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=581;b=cb49ab4b7c994fa99034d8fe4e122675;m=5b3fa7b;t=53ca909eb34b0;x=30d001bea3e233ae]
    PRIORITY=6
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    _TRANSPORT=kernel
    SYSLOG_FACILITY=0
    SYSLOG_IDENTIFIER=kernel
    _SOURCE_MONOTONIC_TIMESTAMP=96048061
    MESSAGE=usbcore: registered new interface driver snd-usb-audio
sam. 2016-09-17 00:19:57.135265 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=582;b=cb49ab4b7c994fa99034d8fe4e122675;m=5b481c9;t=53ca909ebbbff;x=c304b4038cdea4f1]
    SYSLOG_FACILITY=3
    _UID=0
    _GID=0
    _SYSTEMD_SLICE=system.slice
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    PRIORITY=4
    _TRANSPORT=journal
    _CAP_EFFECTIVE=1fffffffff
    _SYSTEMD_CGROUP=/system.slice/systemd-udevd.service
    _SYSTEMD_UNIT=systemd-udevd.service
    CODE_FILE=src/udev/udev-event.c
    CODE_LINE=613
    CODE_FUNCTION=on_spawn_sigchld
    SYSLOG_IDENTIFIER=systemd-udevd
    MESSAGE=Process '/usr/bin/alsactl restore 1' failed with exit code 99.
    _PID=641
    _COMM=systemd-udevd
    _EXE=/usr/lib/systemd/systemd-udevd
    _CMDLINE=/usr/lib/systemd/systemd-udevd
    _SOURCE_REALTIME_TIMESTAMP=1474071597135265
sam. 2016-09-17 00:19:57.741312 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=583;b=cb49ab4b7c994fa99034d8fe4e122675;m=5bdbac9;t=53ca909f4f500;x=f077759b1916bc6d]
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    _TRANSPORT=kernel
    SYSLOG_FACILITY=0
    SYSLOG_IDENTIFIER=kernel
    PRIORITY=4
    _SOURCE_MONOTONIC_TIMESTAMP=96688692
    MESSAGE=buf=0
sam. 2016-09-17 00:19:57.741594 UTC [s=817a3fa8522e414ea90bd6e493e938c5;i=584;b=cb49ab4b7c994fa99034d8fe4e122675;m=5bdbbe4;t=53ca909f4f61a;x=91e005548888d5db]
    _BOOT_ID=cb49ab4b7c994fa99034d8fe4e122675
    _MACHINE_ID=88d4bb681cf34ddbbc3296e8a19aefe6
    _HOSTNAME=Odroid-C1
    _TRANSPORT=kernel
    SYSLOG_FACILITY=0
    SYSLOG_IDENTIFIER=kernel
    PRIORITY=4
    _SOURCE_MONOTONIC_TIMESTAMP=96688721
    MESSAGE=IEC958_mode_raw=0


If I modprobe snd-usb-audio when kodi is already started and then I plug the USB audio DAC, it works. #journalctl -f gives:
Code: Select all
ept. 17 00:57:55 Odroid-C1 kernel: usbcore: registered new interface driver snd-usb-audio
sept. 17 00:58:18 Odroid-C1 kernel: usb 1-1.2: new full-speed USB device number 3 using dwc_otg
sept. 17 00:58:19 Odroid-C1 kernel: input: HiFimeDIY Audio SA9023 USB Audio as /devices/lm1/usb1/1-1/1-1.2/1-1.2:1.0/input/input1
sept. 17 00:58:19 Odroid-C1 kernel: hid-generic 0003:262A:10E0.0001: input,hidraw0: USB HID v1.00 Device [HiFimeDIY Audio SA9023 USB Audio] on usb-lm1-1.2/input0
sept. 17 00:58:19 Odroid-C1 mtp-probe[1055]: checking bus 1, device 3: "/sys/devices/lm1/usb1/1-1/1-1.2"
sept. 17 00:58:19 Odroid-C1 mtp-probe[1055]: bus: 1, device: 3 was not an MTP device
sept. 17 00:58:19 Odroid-C1 kernel: buf=0
sept. 17 00:58:19 Odroid-C1 kernel: IEC958_mode_raw=0
sept. 17 01:00:17 Odroid-C1 kernel: WARN::urb_dequeue:964: urb->hcpriv == NULL! urb = e8f586c0 status=-104
sept. 17 01:00:17 Odroid-C1 kernel: buf=0
sept. 17 01:00:17 Odroid-C1 kernel: IEC958_mode_raw=0
sept. 17 01:00:17 Odroid-C1 kernel: WARN::urb_dequeue:964: urb->hcpriv == NULL! urb = e8f58c00 status=-104
sept. 17 01:00:27 Odroid-C1 kernel: WARN::urb_dequeue:964: urb->hcpriv == NULL! urb = e8f58000 status=-104
sept. 17 01:00:27 Odroid-C1 kernel: buf=0
sept. 17 01:00:27 Odroid-C1 kernel: IEC958_mode_raw=0
sept. 17 01:01:23 Odroid-C1 kernel: WARN::urb_dequeue:964: urb->hcpriv == NULL! urb = ecce49c0 status=-104
sept. 17 01:01:24 Odroid-C1 kernel: buf=0
sept. 17 01:01:24 Odroid-C1 kernel: IEC958_mode_raw=0


I've spent few days testing with no success. Any idea ? urb status ?

for info
Code: Select all
# cat /etc/asound.conf
pcm.!default {
       type hw
       card 1
   device 0
}

ctl.!default {
        type hw
        card 1
}


Code: Select all
cat /etc/modprobe.d/alsa-base.conf
options snd_usb_audio index=1 nrpacks=1
Last edited by Sagittarius on Sat Sep 17, 2016 8:47 am, edited 2 times in total.
4 x Dockstar - 2 x GoFlexNet booting on NFS - 1 x Odroid C1+ - 1 x Odroid C2
Sagittarius
 
Posts: 33
Joined: Mon Nov 14, 2011 9:21 pm
Location: France

Re: C1+ pluging and USB audio DAC crashes

Postby Sagittarius » Sat Sep 17, 2016 8:44 am

After rebooting several times to test, it seems it's reliable when I force loading snd-usb-audio module by editing:
Code: Select all
# cat /etc/modules-load.d/audiodac.conf
# Force module to load at boot
snd-usb-audio
4 x Dockstar - 2 x GoFlexNet booting on NFS - 1 x Odroid C1+ - 1 x Odroid C2
Sagittarius
 
Posts: 33
Joined: Mon Nov 14, 2011 9:21 pm
Location: France


Return to Amlogic

Who is online

Users browsing this forum: No registered users and 1 guest