crash while listening a radio

BeagleBone Black, I was listening to a webradio, audio just stopped.

[ 1509.274866] ------------[ cut here ]------------ [ 1509.274921] WARNING: CPU: 0 PID: 995 at drivers/usb/musb/musb_host.c:140 musb_h_tx_flush_fifo+0x9f/0xa4 [ 1509.274932] musb-hdrc Could not flush host TX10 fifo: csr: 2003 [ 1509.274938] Modules linked in: rpcsec_gss_krb5 nfsd cfg80211 xt_REDIRECT nf_nat_redirect xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables ti_am335x_adc snd_usb_audio snd_hwdep snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_rawmidi omap_aes omap_sham crypto_engine snd_soc_davinci_mcasp omap_rng rng_core snd_soc_edma snd_soc_botic snd_soc_botic_codec snd_soc_core spi_omap2_mcspi snd_pcm_dmaengine snd_pcm snd_seq snd_seq_device snd_timer snd ti_am335x_tscadc soundcore uio_pdrv_genirq uio nls_iso8859_1 loop nls_cp437 squashfs [ 1509.275144] CPU: 0 PID: 995 Comm: output:alsa Not tainted 4.8.13-botic7-rc3 #1 [ 1509.275151] Hardware name: Generic AM33XX (Flattened Device Tree) [ 1509.275203] [<c010c74d>] (unwind_backtrace) from [<c010a149>] (show_stack+0x11/0x14) [ 1509.275234] [<c010a149>] (show_stack) from [<c0122601>] (__warn+0xad/0xc0) [ 1509.275254] [<c0122601>] (__warn) from [<c0122647>] (warn_slowpath_fmt+0x33/0x48) [ 1509.275273] [<c0122647>] (warn_slowpath_fmt) from [<c0453e97>] (musb_h_tx_flush_fifo+0x9f/0xa4) [ 1509.275292] [<c0453e97>] (musb_h_tx_flush_fifo) from [<c04549e3>] (musb_cleanup_urb+0x3b/0x98) [ 1509.275309] [<c04549e3>] (musb_cleanup_urb) from [<c0454b79>] (musb_urb_dequeue+0x139/0x13c) [ 1509.275333] [<c0454b79>] (musb_urb_dequeue) from [<c04194c9>] (usb_hcd_unlink_urb+0x61/0xbc) [ 1509.275588] [<c04194c9>] (usb_hcd_unlink_urb) from [<bfaba483>] (deactivate_urbs.part.0+0x66/0x74 [snd_usb_audio]) [ 1509.275802] [<bfaba483>] (deactivate_urbs.part.0 [snd_usb_audio]) from [<bfaba4cd>] (deactivate_urbs+0x3c/0x44 [snd_usb_audio]) [ 1509.275975] [<bfaba4cd>] (deactivate_urbs [snd_usb_audio]) from [<bfabb263>] (snd_usb_endpoint_stop+0x1e/0x3c [snd_usb_audio]) [ 1509.276147] [<bfabb263>] (snd_usb_endpoint_stop [snd_usb_audio]) from [<bfac1f37>] (stop_endpoints+0x4e/0x58 [snd_usb_audio]) [ 1509.276319] [<bfac1f37>] (stop_endpoints [snd_usb_audio]) from [<bfac2035>] (snd_usb_substream_playback_trigger+0x78/0x90 [snd_usb_audio]) [ 1509.276585] [<bfac2035>] (snd_usb_substream_playback_trigger [snd_usb_audio]) from [<bf8e27e1>] (snd_pcm_do_stop+0x34/0x38 [snd_pcm]) [ 1509.276731] [<bf8e27e1>] (snd_pcm_do_stop [snd_pcm]) from [<bf8e2743>] (snd_pcm_action_single+0x22/0x40 [snd_pcm]) [ 1509.276868] [<bf8e2743>] (snd_pcm_action_single [snd_pcm]) from [<bf8e3355>] (snd_pcm_action+0x94/0x98 [snd_pcm]) [ 1509.277004] [<bf8e3355>] (snd_pcm_action [snd_pcm]) from [<bf8e34b9>] (snd_pcm_drop+0x48/0x80 [snd_pcm]) [ 1509.277140] [<bf8e34b9>] (snd_pcm_drop [snd_pcm]) from [<bf8e448d>] (snd_pcm_common_ioctl1+0x85c/0xc0c [snd_pcm]) [ 1509.277278] [<bf8e448d>] (snd_pcm_common_ioctl1 [snd_pcm]) from [<bf8e4a41>] (snd_pcm_playback_ioctl1+0x204/0x494 [snd_pcm]) [ 1509.277414] [<bf8e4a41>] (snd_pcm_playback_ioctl1 [snd_pcm]) from [<bf8e4ced>] (snd_pcm_playback_ioctl+0x1c/0x24 [snd_pcm]) [ 1509.277505] [<bf8e4ced>] (snd_pcm_playback_ioctl [snd_pcm]) from [<c020f18b>] (do_vfs_ioctl+0x8f/0x770) [ 1509.277525] [<c020f18b>] (do_vfs_ioctl) from [<c020f895>] (SyS_ioctl+0x29/0x48) [ 1509.277545] [<c020f895>] (SyS_ioctl) from [<c0106c61>] (ret_fast_syscall+0x1/0x4c) [ 1509.277556] ---[ end trace 0e622c55a7758ede ]---

usb audio device/ model?
lsusb -t?

Please give us something to work on, guessing is useless :wink:

Board name is already there - BeagleBone Black.
USB DAC - Zhilai Audio H1.

[ 1.393285] usb 1-1: new full-speed USB device number 2 using musb-hdrc [ 1.512742] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.564758] usb 1-1: New USB device found, idVendor=08bb, idProduct=2704 [ 1.564780] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1.564791] usb 1-1: Product: USB Audio DAC [ 1.564801] usb 1-1: Manufacturer: Burr-Brown from TI [ 1.573989] input: Burr-Brown from TI USB Audio DAC as /devices/platform/ocp/47400000.usb/47401c00.usb/ [ 1.644126] hid-generic 0003:08BB:2704.0001: input,hidraw0: USB HID v1.00 Device [Burr-Brown from TI USB Audio DAC ] on

$ lsusb -t /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=musb-hdrc/1p, 480M |__ Port 1: Dev 2, If 0, Class=Audio, Driver=snd-usb-audio, 12M |__ Port 1: Dev 2, If 1, Class=Audio, Driver=snd-usb-audio, 12M |__ Port 1: Dev 2, If 2, Class=Human Interface Device, Driver=usbhid, 12M

Reproducibility - yes. Last occurrence: after about 40 min of listening to a webradio audio just stopped. The dmesg output was generated after I pressed the play/pause button again in the GUI. There is no such issue when I’m listening from AirPlay source or from NAS.
Thanks for looking into the issue.

Any errors in the logs about usb wifi rather than the DAC (not sure if you’re using wifi or ethernet)?

I’m using wired Ethernet, no Wi-Fi.
No USB errors, but it was a comment by michelangelo saying “USB should be on hw:5, not 1”

One more crash after 45 min :frowning:

Which Volumio version are you using,on which hardware?

There are possible issues with latest 2.141 on Pi due to unexpected firmware components in the image: this may impact several hardware components, including supported DACs…

BeagleBone Black, image file volumio-2.129-2017-03-26-bbb

Edit: the issue with the audio stop seems to be related to DHCP renew on the router WAN interface when all the NAT sessions get cleaned.

I see almost the same on Raspberry Pi - audio stops when WAN IP gets renewed, but pressing Stop/Play restores the audio.

Edit: audio stop seems to be a known problem, reconnect-webradio-after-24h-provider-break-t6273.html