Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-28 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-28 Thread paul-
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-24 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-21 Thread Greg Erskine
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-21 Thread slartibartfast
paul- wrote: > That E30 is a *itch to script with that space in the device name. You > need escaped quotes everywhere. I’m 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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-18 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread slartibartfast
paul- wrote: > That E30 is a *itch to script with that space in the device name. You > need escaped quotes everywhere. I’m 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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread paul-
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread bpa
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 >

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-17 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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.

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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:

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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 -

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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:

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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:

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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 >

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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¹|¹¸|¹¸ðì·

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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:

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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:

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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:

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread bpa
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

Re: [SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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. >

[SlimDevices: Plugins] piCorePlayer and hardware volume control

2022-12-16 Thread slartibartfast
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