jakubgs / nixos-config

Configuration for my hosts running NixOS
22 stars 1 forks source link

Leliel loses connection to Topping D30 DAC randomly #1

Closed jakubgs closed 2 years ago

jakubgs commented 3 years ago

When playing music with MPD via my Topping D30 DAC it randomly stops playing. As if it loses conneciton.

jakubgs commented 3 years ago

I have tried disabling USB suspend functionality on leliel but it doesn't seem to have resolved the issue: https://github.com/jakubgs/nixos-config/blob/d11e07b0587308e46a3fd2514e3f7ad8dd70141e/hosts/leliel/configuration.nix#L84-L91

jakubgs commented 3 years ago

When it happens - mpd stops playing - and I try to play something using aplay I get this:

 > aplay something.mp3
Playing raw data 'something.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
^CAborted by signal Interrupt...
aplay: pcm_write:2061: write error: Interrupted system call
jakubgs commented 3 years ago

I still see it just fine via lsusb:

 > sudo lsusb
Bus 002 Device 002: ID 0bc2:ab26 Seagate RSS LLC Backup Plus Slim Portable Drive 1 TB
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 012: ID 20b1:3066 XMOS Ltd 
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 > sudo lsusb -v 2>/dev/null | grep -E -e 'i(Manufacturer|Product)' -e '^Bus'
Bus 002 Device 002: ID 0bc2:ab26 Seagate RSS LLC Backup Plus Slim Portable Drive 1 TB
  iManufacturer           1 Seagate
  iProduct                2 BUP Slim BL
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  iManufacturer           3 Linux 4.19.118 xhci-hcd
  iProduct                2 xHCI Host Controller
Bus 001 Device 013: ID 20b1:3066 XMOS Ltd 
  iManufacturer           1 Topping
  iProduct                3 D30
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
  iManufacturer           0 
  iProduct                1 USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  iManufacturer           3 Linux 4.19.118 xhci-hcd
  iProduct                2 xHCI Host Controller
jakubgs commented 2 years ago

No longer an issue, might have been a faulty cable.