PDA

View Full Version : Softsqueeze/Squeezelite loses contact with USB DAC



swhite58
2014-02-10, 00:07
Hi All
It's been a while. I'm glad this forum is still here after Logitech pulled the plug :)

I wasn't sure whether to post on the 3rd Party Software of the Linux discussion, but I thought it might be read by more people here.

My SB Classic died, so I set up my old Dell laptop running Ubuntu with Squeezelite and a HRT Music Streamer II USB DAC. It sounds excellent, but if I leave it alone for a day or two it doesn't work. Squeezelite is still running, and I can talk to it using iPeng etc, but no sound. A reboot restores it.

I tried Softsqueeze but the result is the same. I wonder if the USB port is timing out, and getting unmounted or something.

How can I test if the port is still working?
If it is the USB, can I change some config somewhere to prevent the problem?
Or, failing that, is there a workaround, like a way to "ping" the port every so often to keep it alive.

Thanks

Shane

DJanGo
2014-02-10, 00:36
Hi All

How can I test if the port is still working?
If it is the USB, can I change some config somewhere to prevent the problem?
Or, failing that, is there a workaround, like a way to "ping" the port every so often to keep it alive.

Thanks

Shane

Hi,

just start aplay -l and lsusb to check if the usb connection is lost.

But i think you have a similiar issue like me.
Take a look here (http://forums.slimdevices.com/showthread.php?99916-workaround-for-pluginplayer-plays-quot-machingunsound-when-was-idle-some-time)

swhite58
2014-02-10, 21:32
Hi,

just start aplay -l and lsusb to check if the usb connection is lost.

But i think you have a similiar issue like me.
Take a look here (http://forums.slimdevices.com/showthread.php?99916-workaround-for-pluginplayer-plays-quot-machingunsound-when-was-idle-some-time)

Hi
The response to lsusb is:


#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 4852:0003

I don't know what that is saying about the connection to the DAC

The -t switch sheds more light:


lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ 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=HID, Driver=usbhid, 12M
|__ Port 1: Dev 2, If 3, Class=HID, Driver=usbhid, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M

Note the reference to "snd-usb-audio", but it looks the same whether it's working or not.

The response to aplay -l:


# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 0: Intel ICH [Intel 82801DB-ICH4]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: I82801DBICH4 [Intel 82801DB-ICH4], device 4: Intel ICH - IEC958 [Intel 82801DB-ICH4 - IEC958]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: II [Music Streamer II], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0

I get a lot more if I try squeezelite -l


# squeezelite -l
Output devices:
null - Discard all samples (playback) or generate zero samples (capture)
pulse - PulseAudio Sound Server
default:CARD=I82801DBICH4 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - Default Audio Device
sysdefault:CARD=I82801DBICH4 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - Default Audio Device
front:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - Front speakers
surround40:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - 4.0 Surround output to Front and Rear speakers
surround41:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - IEC958 - IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - Direct sample mixing device
dmix:CARD=I82801DBICH4,DEV=1 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC ADC - Direct sample mixing device
dmix:CARD=I82801DBICH4,DEV=2 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC2 ADC - Direct sample mixing device
dmix:CARD=I82801DBICH4,DEV=3 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - ADC2 - Direct sample mixing device
dmix:CARD=I82801DBICH4,DEV=4 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - IEC958 - Direct sample mixing device
dsnoop:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - Direct sample snooping device
dsnoop:CARD=I82801DBICH4,DEV=1 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC ADC - Direct sample snooping device
dsnoop:CARD=I82801DBICH4,DEV=2 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC2 ADC - Direct sample snooping device
dsnoop:CARD=I82801DBICH4,DEV=3 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - ADC2 - Direct sample snooping device
dsnoop:CARD=I82801DBICH4,DEV=4 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - IEC958 - Direct sample snooping device
hw:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - Direct hardware device without any conversions
hw:CARD=I82801DBICH4,DEV=1 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC ADC - Direct hardware device without any conversions
hw:CARD=I82801DBICH4,DEV=2 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC2 ADC - Direct hardware device without any conversions
hw:CARD=I82801DBICH4,DEV=3 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - ADC2 - Direct hardware device without any conversions
hw:CARD=I82801DBICH4,DEV=4 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - IEC958 - Direct hardware device without any conversions
plughw:CARD=I82801DBICH4,DEV=0 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - Hardware device with all software conversions
plughw:CARD=I82801DBICH4,DEV=1 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC ADC - Hardware device with all software conversions
plughw:CARD=I82801DBICH4,DEV=2 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - MIC2 ADC - Hardware device with all software conversions
plughw:CARD=I82801DBICH4,DEV=3 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - ADC2 - Hardware device with all software conversions
plughw:CARD=I82801DBICH4,DEV=4 - Intel 82801DB-ICH4, Intel 82801DB-ICH4 - IEC958 - Hardware device with all software conversions
default:CARD=II - Music Streamer II, USB Audio - Default Audio Device
sysdefault:CARD=II - Music Streamer II, USB Audio - Default Audio Device
front:CARD=II,DEV=0 - Music Streamer II, USB Audio - Front speakers
surround40:CARD=II,DEV=0 - Music Streamer II, USB Audio - 4.0 Surround output to Front and Rear speakers
surround41:CARD=II,DEV=0 - Music Streamer II, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=II,DEV=0 - Music Streamer II, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=II,DEV=0 - Music Streamer II, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=II,DEV=0 - Music Streamer II, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=II,DEV=0 - Music Streamer II, USB Audio - IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=II,DEV=0 - Music Streamer II, USB Audio - Direct sample mixing device
dsnoop:CARD=II,DEV=0 - Music Streamer II, USB Audio - Direct sample snooping device
hw:CARD=II,DEV=0 - Music Streamer II, USB Audio - Direct hardware device without any conversions
plughw:CARD=II,DEV=0 - Music Streamer II, USB Audio - Hardware device with all software conversions

Squeezelite is running with this command:


/usr/local/bin/squeezelite -z -o sysdefault:CARD=II -s 192.168.0.6

The squeezelite process is actually running:


# ps -ef | grep squeezelite
root 1505 1 17 Feb08 ? 11:31:32 /usr/local/bin/squeezelite -z -o sysdefault:CARD=II -s 192.168.0.6

I'll put your script (from the other thread) onto my LMS server tonight and let you know what happens :)

Thanks

Shane