Closed thoughtgap closed 6 years ago
The way i did it for my allo Boss Raspberry DAC hat:
This led to this command line: "spotify-connect-web [...] --playback_device hw:BossDAC --mixer 'Digital' --mixer_device_index 0"
The same for my LH Labs Geek Out USB device:
This led to this command line: "spotify-connect-web [...] --playback_device hw:G1V5 --mixer 'Geek Out HD Audio 1V5 ' --mixer_device_index 1"
Good luck (corrected, thanks thoughtgap)
Thank you for your help, it's finally working :-)
For reference:
aplay -L
pi@raspberrypi:~ $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
equal
plugequal
sysdefault:CARD=ALSA
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
dmix:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample mixing device
dmix:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample snooping device
hw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Hardware device with all software conversions
sysdefault:CARD=Device
USB Audio Device, USB Audio
Default Audio Device
front:CARD=Device,DEV=0
USB Audio Device, USB Audio
Front speakers
surround21:CARD=Device,DEV=0
USB Audio Device, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Device,DEV=0
USB Audio Device, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Device,DEV=0
USB Audio Device, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Device,DEV=0
USB Audio Device, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Device,DEV=0
USB Audio Device, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Device,DEV=0
USB Audio Device, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Device,DEV=0
USB Audio Device, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Device,DEV=0
USB Audio Device, USB Audio
Direct sample mixing device
dsnoop:CARD=Device,DEV=0
USB Audio Device, USB Audio
Direct sample snooping device
hw:CARD=Device,DEV=0
USB Audio Device, USB Audio
Direct hardware device without any conversions
plughw:CARD=Device,DEV=0
USB Audio Device, USB Audio
Hardware device with all software conversions
amixer
(the second is the one I want)pi@raspberrypi:~ $ amixer
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback -10239 - 400
Mono: Playback -8109 [20%] [-81.09dB] [on]
pi@raspberrypi:~ $ amixer -c 1
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 37
Mono:
Front Left: Playback 19 [51%] [-18.00dB] [on]
Front Right: Playback 19 [51%] [-18.00dB] [on]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined cvolume cvolume-joined pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Limits: Playback 0 - 31 Capture 0 - 35
Mono: Playback 16 [52%] [-7.00dB] [off] Capture 20 [57%] [8.00dB] [on]
Simple mixer control 'Auto Gain Control',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Volume control does work now with the command:
spotify-connect-web --playback_device 'front:CARD=Device,DEV=0'
--mixer_device_index 1
--mixer Speaker
Hello,
first of all thanks for the new release 0.0.4 to which I have updated today on my Rpi3 today running the latest Raspbian.
I cannot work out how to configure the alsa mixer settings for volume control to work correctly in this or earlier versions.
There's a USB sound card connected to the pi.
aplay -l
/proc/asound/cards
/etc/asound.conf
Spotify-connect-web
I run spotify-connect-web like this:
When I change the volume in Spotify, the "logs" show the correct settings:
When I run
alsamixer
I can see that this volume I set in Spotify arrives in the default mixer which looks like this. When I change the volume in Spotify this mixer volume gets changed, too.When I switch devices via F6 I can select the USB sound card:
And manually change the volume there:
It's the same if I run spotify-connect-web with
--mixer_device_index 0
. Any other Mixer Device Index will lead to this error:How can I get the default mixer to control the USB sound card?
Any help is greatly appreciated. Thanks in advance!