Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
paul- wrote: > Are you using the USB udev restart rules? > > How does that script call squeezelite?If that is the rule that restarts > Squeezelite when the DAC is detected then no, my DAC always works when coming out of standby without it. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
Are you using the USB udev restart rules? How does that script call squeezelite? piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://picoreplayer.org/index.html#donate) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
Greg Erskine wrote: > I did discover the trailing space issue a while ago and did updates to > pCP on 2021-05-25. So, the updates would have been released sometime > after that.After satisfying myself that the alsa volume control was working > the other day I noticed that the volume was stuck at 100% tonight even though the volume reported by LMS was changing as I adjusted it. I had to restart Squeezelite to get the volume to work again. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
I did discover the trailing space issue a while ago and did updates to pCP on 2021-05-25. So, the updates would be released sometime after that. Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
paul- wrote: > That E30 is a *itch to script with that space in the device name. You > need escaped quotes everywhere. Im not sure it will work from the pCP > web page. > > Try to test it just from command line typing things.Surprisingly it does work > from the pCP webpage. Just entering "E30 " without the quotes works [emoji3] Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > It seems the ALSA control is not connected to h/w. > I think ALSA s/w volume control will be very similar to LMS volume > control - all done in digital domain. > > > > At a guess the escaped command line params get analysed incorrectly. > Squeezelite logging may show what is happening but maybe not worth the > effort since ALSA control does not seem to give h/w control. I stopped the Squeezelite service and restarted Squeezelite with Code: sudo /usr/bin/squeezelite-armv6hf -o hw:CARD=E30,DEV=0 -V "E30 " and that works. If I can get it working from the settings file I'll have three volume options to choose from :D LMS Alsamixer 100% 0dB 90%-4dB 80%-9dB 70%-14dB 60%-19dB 50%-24dB 40%-30dB 30%-34dB 20%-44dB 10%-59dB 0% -127dB slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > Hmm > amixer -c 1 set "E30 " 110 > works but it sets alsamixer to 110 out of 127 and doesn't directly > control the E30 preamp attenuation. Is changing volume in alsamixer > theoretically better or worse than in LMS? It seems the ALSA control is not connected to h/w. I think ALSA s/w volume control will be very similar to LMS volume control - all done in digital domain. slartibartfast wrote: > When I escape the quotes I get > squeezelite.serviceJob for squeezelite.service failed because a timeout > was exceeded. At a guess the escaped command line params get analysed incorrectly. Squeezelite logging may show what is happening but maybe not worth the effort since ALSA control does not seem to give h/w control. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > In the shell script try escaping the quotes you want kept "-D 0:u32be > -V "E30 "" > > on PCP it will be -V "E30 " and not "-V E30 "When I escape the quotes I get squeezelite.serviceJob for squeezelite.service failed because a timeout was exceeded. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > I'd hope that ALSA driver really drives the h/w control. > > You could try using amixer and the "set" command,and see if display > changes. > I did a bit of testing with a cheap USB audio adapter with just > headphone & mic. > Using "aplay -l" - the C-Media device showed up as card 2 with name > "Set" so amixer option to select card 2 is "-c 2" or "-c Set" > > > Code: > > minitower:$ amixer -c 2 scontrols > Simple mixer control 'Headphone',0 > Simple mixer control 'Mic',0 > Simple mixer control 'Auto Gain Control',0 > > minitower:$ amixer -c 2 scontents > Simple mixer control 'Headphone',0 > Capabilities: pvolume pswitch pswitch-joined > Playback channels: Front Left - Front Right > Limits: Playback 0 - 151 > Mono: > Front Left: Playback 80 [53%] [-13.38dB] [on] > Front Right: Playback 80 [53%] [-13.38dB] [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 - 32 Capture 0 - 16 > Mono: Playback 23 [72%] [34.36dB] [off] Capture 0 [0%] [0.00dB] [on] > Simple mixer control 'Auto Gain Control',0 > Capabilities: pswitch pswitch-joined > Playback channels: Mono > Mono: Playback [on] > > minitower:$ amixer -c Set set Headphone 90 > Simple mixer control 'Headphone',0 > Capabilities: pvolume pswitch pswitch-joined > Playback channels: Front Left - Front Right > Limits: Playback 0 - 151 > Mono: > Front Left: Playback 90 [60%] [-11.50dB] [on] > Front Right: Playback 90 [60%] [-11.50dB] [on] > > > Hmm amixer -c 1 set "E30 " 110 works but it sets alsamixer to 110 out of 127 and doesn't directly control the E30 preamp attenuation. Is changing volume in alsamixer theoretically better or worse than in LMS? Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
paul- wrote: > That E30 is a *itch to script with that space in the device name. You > need escaped quotes everywhere. Im not sure it will work from the pCP > web page. > > Try to test it just from command line typing things.I am surprised this > hasn't been tried before. I've seen reports where it works with mpd but apart from that not much at all. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
That E30 is a *itch to script with that space in the device name. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://picoreplayer.org/index.html#donate) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > I'll try escaping the quotes later. I'm not even sure how I expect this > to work if I finally do get it working. The E30 has a display indicating > attenuation when in preamp mode, will that change with the volume? I'd hope that ALSA driver really drives the h/w control. You could try using amixer and the "set" command,and see if display changes. I did a bit of testing with a cheap USB audio adapter with just headphone & mic. Using "aplay -l" - the C-Media device showed up as card 2 with name "Set" so amixer option to select card 2 is "-c 2" or "-c Set" Code: minitower:$ amixer -c 2 scontrols Simple mixer control 'Headphone',0 Simple mixer control 'Mic',0 Simple mixer control 'Auto Gain Control',0 minitower:$ amixer -c 2 scontents Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 151 Mono: Front Left: Playback 80 [53%] [-13.38dB] [on] Front Right: Playback 80 [53%] [-13.38dB] [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 - 32 Capture 0 - 16 Mono: Playback 23 [72%] [34.36dB] [off] Capture 0 [0%] [0.00dB] [on] Simple mixer control 'Auto Gain Control',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] minitower:$ amixer -c Set set Headphone 90 Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 151 Mono: Front Left: Playback 90 [60%] [-11.50dB] [on] Front Right: Playback 90 [60%] [-11.50dB] [on] bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > In the shell script try escaping the quotes you want kept "-D 0:u32be > -V "E30 "" > > on PCP it will be -V "E30 " and not "-V E30 "I'll try escaping the quotes > later. I'm not even sure how I expect this to work if I finally do get it working. The E30 has a display indicating attenuation when in preamp mode, will that change with the volume? Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > > The options are listed within quote marks so adding more quote marks > doesn't work. I have > "-D 0:u32be -V E30 " if I remember correctly. > I'll try again with pCP and "-V E30 " > I found this which sounds like the sa In the shell script try escaping the quotes you want kept "-D 0:u32be -V \"E30 \"" on PCP it will be -V "E30 " and not "-V E30 " bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > I didn't use quotes as I was adding this option to > squeezelite_settings.sh > from this tutorial > http://www.gerrelt.nl/RaspberryPi/wordpress/tutorial-installing-squeezelite-player-on-raspbian/ > The options are listed within quote marks so adding more quote marks > doesn't work. I have > "-D 0:u32be -V E30 " if I remember correctly. > I found this which sounds like the same issue > https://github.com/Spotifyd/spotifyd/issues/261 OK. It does look the name needs to be quoted but I'm not sure what you suggest will work if squeezelite command line processing is doing what I think. I'll look at the shell script as there may be another way to get the quotes included. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > Did you use quote marks around the -V option (i.e -V "E30 ") > I think there must be some bug in the mixer_init_alsa:886 error logging > area or even the build - either volume name is saved wrong or wrong > string is being printed. > If you used quotes - then I'll update see if I can reproduce.I didn't use > quotes as I was adding this option to squeezelite_settings.sh from this tutorial http://www.gerrelt.nl/RaspberryPi/wordpress/tutorial-installing-squeezelite-player-on-raspbian/ The options are listed within quote marks so adding more quote marks doesn't work. I have "-D 0:u32be -V E30 " if I remember correctly. I found this which sounds like the same issue https://github.com/Spotifyd/spotifyd/issues/261 Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > This is with -V E30 with a space after E30. > > Code: > > /usr/bin/squeezelite-armv6hf -o hw:CARD=E30,DEV=0 -n squeeze -m aa:bb:cc:dd:ee:ff -a 160:4::1 -f /var/log/squeezelite.log -d output=debug -D :u32be -V E30 -P /var/run/squeezelite-armv6hf.pid -z > [23:34:31.232759] output_init_alsa:936 init output > [23:34:31.233137] output_init_alsa:976 requested alsa_buffer: 160 alsa_period: 4 format: any mmap: 1 > [23:34:31.233236] output_init_common:360 outputbuf size: 3528000 > [23:34:31.233379] output_init_common:384 idle timeout: 0 > [23:34:31.322838] test_open:301 sample rate 1536000 not supported > [23:34:31.322984] test_open:301 sample rate 1411200 not supported > [23:34:31.323147] test_open:301 sample rate 32000 not supported > [23:34:31.323181] test_open:301 sample rate 24000 not supported > [23:34:31.323213] test_open:301 sample rate 22500 not supported > [23:34:31.323245] test_open:301 sample rate 16000 not supported > [23:34:31.323276] test_open:301 sample rate 12000 not supported > [23:34:31.323307] test_open:301 sample rate 11025 not supported > [23:34:31.323338] test_open:301 sample rate 8000 not supported > [23:34:31.323438] output_init_common:426 supported rates: 768000 705600 384000 352800 192000 176400 96000 88200 48000 44100 > [23:34:31.323864] mixer_init_alsa:886 error find selem T(x > [23:34:31.323926] output_init_alsa:986 Initialization of mixer failed, reverting to software volume > [23:34:31.342813] output_init_alsa:1002 memory locked > [23:34:31.343009] output_init_alsa:1008 glibc detected using mallopt > [23:34:31.343520] output_thread:685 open output device: hw:CARD=E30,DEV=0 > [23:34:31.343546] output_init_alsa:1028 set output sched fifo rt: 45 > [23:34:31.343920] alsa_open:354 opening device at: 44100 > [23:34:31.344596] alsa_open:425 opened device hw:CARD=E30,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1 > [23:34:31.344719] alsa_open:516 buffer: 160 period: 4 -> buffer size: 7056 period size: 1764 > [23:34:31.429350] set_volume:233 setting internal gain left: 65536 right: 65536 > > > Did you use quote marks around the -V option (i.e -V "E30 ") I think there must be some bug in the mixer_init_alsa:886 error logging area or even the build - either volume name is saved wrong or wrong string is being printed. If you used quotes - then I'll update see if I can reproduce. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > I'm guessing the preevious log messages were just the default error > message. > if you enable logging "-d output=debug" - then we can look for > differences between a normal run (e.g. my system) and your failing E30 > system. > There should be only about 10-20 log messages during startup/init so any > differences should be easy to spot. This is with -V E30 with a space after E30. Code: /usr/bin/squeezelite-armv6hf -o hw:CARD=E30,DEV=0 -n squeeze -m aa:bb:cc:dd:ee:ff -a 160:4::1 -f /var/log/squeezelite.log -d output=debug -D :u32be -V E30 -P /var/run/squeezelite-armv6hf.pid -z [23:34:31.232759] output_init_alsa:936 init output [23:34:31.233137] output_init_alsa:976 requested alsa_buffer: 160 alsa_period: 4 format: any mmap: 1 [23:34:31.233236] output_init_common:360 outputbuf size: 3528000 [23:34:31.233379] output_init_common:384 idle timeout: 0 [23:34:31.322838] test_open:301 sample rate 1536000 not supported [23:34:31.322984] test_open:301 sample rate 1411200 not supported [23:34:31.323147] test_open:301 sample rate 32000 not supported [23:34:31.323181] test_open:301 sample rate 24000 not supported [23:34:31.323213] test_open:301 sample rate 22500 not supported [23:34:31.323245] test_open:301 sample rate 16000 not supported [23:34:31.323276] test_open:301 sample rate 12000 not supported [23:34:31.323307] test_open:301 sample rate 11025 not supported [23:34:31.323338] test_open:301 sample rate 8000 not supported [23:34:31.323438] output_init_common:426 supported rates: 768000 705600 384000 352800 192000 176400 96000 88200 48000 44100 [23:34:31.323864] mixer_init_alsa:886 error find selem T(x [23:34:31.323926] output_init_alsa:986 Initialization of mixer failed, reverting to software volume [23:34:31.342813] output_init_alsa:1002 memory locked [23:34:31.343009] output_init_alsa:1008 glibc detected using mallopt [23:34:31.343520] output_thread:685 open output device: hw:CARD=E30,DEV=0 [23:34:31.343546] output_init_alsa:1028 set output sched fifo rt: 45 [23:34:31.343920] alsa_open:354 opening device at: 44100 [23:34:31.344596] alsa_open:425 opened device hw:CARD=E30,DEV=0 using format: S32_LE sample rate: 44100 mmap: 1 [23:34:31.344719] alsa_open:516 buffer: 160 period: 4 -> buffer size: 7056 period size: 1764 [23:34:31.429350] set_volume:233 setting internal gain left: 65536 right: 65536 slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > How do I get it to work in Squeezelite though? I'm guessing the preevious log messages were just the default error message. if you enable logging "-d output=debug" - then we can look for differences between a normal run (e.g. my system) and your failing E30 system. There should be only about 10-20 log messages during startup/init so any differences should be easy to spot. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > Looks normal - 'E30 ' is a simple volume control which is currently set > at max vol 127.How do I get it to work in Squeezelite though? Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > I had to run "amixer -c E30 scontents" > > > Code: > > pi@squeeze:~ $ amixer -c E30 scontents > Simple mixer control 'E30 ',0 > Capabilities: pvolume pvolume-joined pswitch pswitch-joined > Playback channels: Mono > Limits: Playback 0 - 127 > Mono: Playback 127 [100%] [0.00dB] [on] > > > Looks normal - 'E30 ' is a simple volume control which is currently set at max vol 127. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > The command "amixer contents" gives details for all controls on the type > of a control, valid range of values and maybe notes on what values mean > e.g. "1=Enabled" > > edit: > > I think use "amixer scontents" in this case > > For my "Master" control > > Code: > > > Simple mixer control 'Master',0 > Capabilities: pvolume pvolume-joined pswitch pswitch-joined > Playback channels: Mono > Limits: Playback 0 - 64 > Mono: Playback 43 [67%] [-21.00dB] [on] > > > I had to run "amixer -c E30 scontents" Code: pi@squeeze:~ $ amixer -c E30 scontents Simple mixer control 'E30 ',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback 0 - 127 Mono: Playback 127 [100%] [0.00dB] [on] slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
The command "amixer contents" gives details for all controls on the type of a control, valid range of values and maybe notes on what values mean e.g. "1=Enabled" bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > On pCP the volume control name was "E30 " with a space after E30. Maybe > that is an issue. Could be - names have to be exactly right but doesn't explain the weird charactes - as if string variable in error message is pointing to garbage or random memory. Full "-d output=debug" log may show things up. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > I get the same error on Raspbian with -V E30. Maybe it simply doesn't > work. > > Sent from my Pixel 3a using Tapatalk Maybe, I have a vague memory of a similar issue before where an ALSA device only control was to enable/disable it. What happens when you use squeezelite logging. On my system with only default audio. Code: minitower:$ squeezelite -L Volume controls for default Master minitower:$ squeezelite -d output=debug -V Master [20:29:22.986549] output_init_alsa:817 init output . . . [20:29:23.406090] set_mixer:203 setting vol raw [0..65536] [20:29:23.408834] set_mixer:237 Master left: -24.6dB -> 42780 right: -24.6dB -> 42780 edit: OK - are your logs are from squeezelite. I couldn't find the code for mixer_init_alsa routine ? bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
On pCP the volume control name was "E30 " with a space after E30. Maybe that is an issue. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > Lots of weird characters in error message. > > not sure but amixer volume control may not work if an application (e.g. > squeezelite) has ALSA device already open.I get the same error on Raspbian > with -V E30. Maybe it simply doesn't work. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > Lots of weird characters in error message. > > not sure but amixer volume control may not work if an application (e.g. > squeezelite) has ALSA device already open. Squeezelite is restarted after changing options so the device shouldn't be open. I noticed that the command line used is Code: /usr/local/bin/squeezelite -n "piCorePlayer" -o hw:CARD=E30,DEV=0 -a 80:4::1: -D 0:u32be -v -V "E30" The inverted commas around E30 look suspect to me. I'll try adding -V E30 to another squeezelite install on Raspbian. slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > The same error appears even when the Volume Control box is empty. > > Edit Forget that I was looking at the wrong section of log Lots of weird characters in error message. not sure but amixer volume control may not work if an application (e.g. squeezelite) has ALSA device already open. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > This appears in the log > > Code: > > [16:13:47.022543] mixer_init_alsa:886 error find selem À¸À¸pi¹pi¹|¹¸|¹¸ðì· > [16:13:47.022615] output_init_alsa:986 Initialization of mixer failed, reverting to software volume > > > The same error appears even when the Volume Control box is empty. Edit Forget that I was looking at the wrong section of log [emoji2357] Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > You have confirmed that "E30" is a working volume control by testing > with amixer. > If it fails, it may provide a useful error message. This appears in the log Code: [16:13:47.022543] mixer_init_alsa:886 error find selem À¸À¸pi¹pi¹|¹¸|¹¸ðì· [16:13:47.022615] output_init_alsa:986 Initialization of mixer failed, reverting to software volume slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > PCP diagnostics shows E30, same as -L You have confirmed that "E30" is a working volume control by testing with amixer. If it fails, it may provide a useful error message. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > Not sure. > > looking at Squeezelite code - the "-L" is supposed to list the volumen > controls PCP diagnostics shows E30, same as -L 39456 Sent from my Pixel 3a using Tapatalk +---+ |Filename: Screenshot_20221216-143440.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=39456| +---+ slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
Enabling squeezelite logging for DEBUG for output should show message about setting volume. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > OK thanks. I tried "E30 Playback Volume" which also didn't work. Should > I use the full line "numid=3,iface=MIXER,name='E30 Playback Volume" ? Not sure. looking at Squeezelite code - the "-L" is supposed to list the volumen controls bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
bpa wrote: > I think you have to use the full ALSA name for the control after "-V". > Use "amixer controls " to list all the controls by their > ALSA name.OK thanks. I tried "E30 Playback Volume" which also didn't work. > Should I use the full line "numid=3,iface=MIXER,name='E30 Playback Volume" ?39455 Sent from my Pixel 3a using Tapatalk +---+ |Filename: Screenshot_20221216-141035.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=39455| +---+ slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
I think you have to use the full ALSA name for the control after "-V". Use "amixer controls " to list all the controls by their ALSA name. bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins
Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control
slartibartfast wrote: > I think this should be possible but I am not sure how. I have a Topping > E30 which shows up as > Card 0: 'E30' - Control: 'E30 ' > if I click "more" next to the -V option for Squeezelite. If I enter that > in the box I can't control the E30 volume in pre amp mode. > Any thoughts on what I am doing wrong? > > Sent from my Pixel 3a using TapatalkJust adding E30 doesn't work either. Sent from my Pixel 3a using Tapatalk slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=117242 ___ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins