(2019-11-06, 09:07)fritsch Wrote: (2019-11-06, 02:22)Troy McClure Wrote: I'm using kodi 18.4 on a pi 4 with audio going out of the usb port into a dac (NOT a dac attached to the pic directly). The audio options i can choose between within kodi are a little odd as they are a mixture of analog (really? on a usb port?), s/pdif (the pi doesn't have that!) and digital. But whatever I choose, it works.
Post: lsusb and aplay -l - then we can see if your Linux agrees with your reasoning above. Hint: It won't :-)
lsusb:
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bc2:2343 Seagate RSS LLC
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0d8c:0004 C-Media Electronics, Inc. <- the DAC uses c-media, I believe
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
aplay -l:
**** List of PLAYBACK Hardware Devices ****
card 1: G2 [Schiit 4490 G2], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
I disabled the usual pi audio (bcm) via blacklisting.
For completeness, here's aplay -L:
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=G2
Schiit 4490 G2, USB Audio
Default Audio Device
sysdefault:CARD=G2
Schiit 4490 G2, USB Audio
Default Audio Device
front:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
Front speakers
surround21:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
Direct sample mixing device
dsnoop:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
Direct sample snooping device
hw:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
Direct hardware device without any conversions
plughw:CARD=G2,DEV=0
Schiit 4490 G2, USB Audio
Hardware device with all software conversions
I found this link:
https://forum.kodi.tv/showthread.php?tid=88719
And using the first .asoundrc snippet I can make changes to the equalizer and then play a wav with aplay and it takes effect but I don't seem to be able to get Kodi to use it. There's no additional audio output options; the existing ones sound the same as before, and in raspbian itself, preferences/audio device settings/sound card is the same as before and unchangeable, and I still only have pcm as a switch.
It has an effect on youtube, though.