Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webinterface Sound Controls not working with USB Sound #20

Closed
svo08 opened this issue Mar 16, 2018 · 5 comments
Closed

Webinterface Sound Controls not working with USB Sound #20

svo08 opened this issue Mar 16, 2018 · 5 comments

Comments

@svo08
Copy link

svo08 commented Mar 16, 2018

Hi,

first, thanks for that great project :-)

Im using a external USB Soundcard (Soundblaster Play).
I did manage to get the Card working.

Everything is working fine except the volume control via webinterface.

I discoverd that i have to use different command to adjust Volume
amixer -D hw:U0x41e0x30d3 sset Speaker 100%
Think it is due to the command amixer sset ´PCM´ 100% is not working.
I was able to adjust the Control Script for RFID but i do not know what and where i have to adjust the files for the webinterface to get it to work there as well.
Think it has to be adjustet like i did it in the control script.
Can you please help me.

Thanks

@svo08
Copy link
Author

svo08 commented Mar 17, 2018

Sorry, done i did found it index.php.
I adjusted the line and volume control is working.

@MiczFlor
Copy link
Owner

@svo08 can you please post your solution here, so I can include it in the code. I was thinking of adding this for HiFiBerry anyway. So this could be a good addition.

@svo08
Copy link
Author

svo08 commented Mar 20, 2018

Hi, not sure if it is possible to add the volume command to config file.
Then there will be a single place, single command to replace.

As i wrote in the post im using a different sound card (USB One).
I was able to get it work with description in the docs.
$ cat /proc/asound/modules
There is a way to adress with amixer the HW Card.
So "amixer sset ´PCM´ 100%" was not working but adressing sound card with
"amixer -D hw:U0x41e0x30d3 sset Speaker 100%"

So i had to replace the string amixer sset ´PCM´ with "amixer -D hw:U0x41e0x30d3 sset Speaker"
I did this in index.php in htdocs and in the control script rfid_trigger_play.sh

@MiczFlor
Copy link
Owner

hm hm hm. Thinking how this could be a global setting... Any thought? You mention if should be in the config file, but that is limited to PHP. This also requires changes in the bash script (as you also point out).

@MiczFlor
Copy link
Owner

@svo08 I added a new file that is serving the web interface and the bash script:
https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/master/scripts/playout_controls.sh.sample
Possibly this might help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants