-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
DietPi-Config | Generic USB DAC selection on Sparky SBC fails due to invalid amixer calls #4249
Comments
Many thanks for your report. Can you please paste the output of the following commands:
|
Okay, makes sense that our selector is broken, it was since its implementation with DietPi v6.8 but now creates a script termination the first time as we implemented the G_EXEC error handler wrapper more and more 😄. Please do the following and re-select the DAC in dietpi-config:
|
Fix: 744bd8e
Other than numid 4 and 5 are actually no volume controls, so they might still fail when the value "100%" is seen invalid. I'll also test this with a few VMs. If so, I'll remove that part completely from the code, as I'm not sure how to reliably identify volume control that accept percentage values then. The code was btw originating from one of the Allo/Sparky SBC devs, to have DAC volumes maxed automatically, which otherwise might be low or even muted by default, i.e. one needs to change it manually via e.g. |
Thanks a lot Michalng. It worked! My dac started playing music again 👍 |
Ok. I ran the test you asked for. Here's what I got: |
Hi, there is no need to do screenshots, you can simply copy/ paste the output from your SSH client 😉 |
Thanks. So while the loop works as intended now, it's indeed wrong to assume that all controls with the word "playback" on their name accept percentage values or are even volume controls. While we could set the volume on a per-driver basis, we cannot do it in a genetic way for all USB DAC. Also good to know that in your case it's not muted by default when it plays sound already. |
Date | Tue Apr 6 11:29:19 BST 2021
Linux DietPi 3.10.38 #22 SMP PREEMPT Fri Dec 22 10:45:41 IST 2017 armv7l GNU/Linux
Steps to reproduce:
dietpi-config
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs:
The text was updated successfully, but these errors were encountered: