-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
Incorrect ALSA control name for H3 devices (e.g. NanoPi Neo) #4833
Comments
Many thanks for your report. Yeah currently the "Change command" option does not handle white spaces in single arguments correctly, despite given quotes. The quotes are taken literally instead of being shell-interpreted. For the letter we'd need to use I guess things have changed with newer kernels since we implemented this code. The question is whether there is any of those amixer changes still required. Probably we can remove them completely. I.e. does it work when you "Change command" all of them to |
I may have understood you incorrectly, but here's what I did:
And tried to switch audio outputs in Config -> Audio between HDMI <---> 3.5mm and it seems to have worked correctly without any issues. Looking at these lines, they are there just to mute/unmute 3.5mm, which is why the switch worked correctly even with the errors. Since Nanopi Neo doesn't have HDMI output, I cannot test the side effects of leaving 3.5mm unmuted during the switch. |
Just fixed with: 03bc475 Obviously analogue output is not muted by default and when switching to HDMI audio, as it is a different sound card index, not a control only, it doesn't matter whether 3.5mm is muted or not. |
Creating a bug report/issue
Required Information
Linux NanoPiMusic 5.10.60-sunxi #21.08.2 SMP Tue Sep 14 16:28:44 UTC 2021 armv7l GNU/Linux
Additional Information (if applicable)
Steps to reproduce
h3-analogue
indietpi-config
Expected behaviour
h3-analogue
without errorsActual behaviour
amixer: Unable to find simple control 'Audio lineout',0
Extra details
Audio lineout
control name comes from H3 code branch in Dietpi-Set_hardware. However, the kernel overlay(?) sets up this device withLine Out
nameAudio lineout
instead ofLine Out
?Dietpi-Set_hardware
, H3 code branch?amixer -c 0 set Audio lineout unmute
toamixer -c 0 set "Line Out" unmute
, but then the error isamixer: Unable to find simple control 'Line',0
, as if it breaks at space between "Line" and "Out":Running the adjusted command from the terminal works correctly though... So something is also wrong with how "Change command" works.
The text was updated successfully, but these errors were encountered: