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 | RPi: Changed onboard audio interface #3887
Comments
Many thanks for your report. Could you please paste the output of the following commands:
And did you try it with |
This is the output of my file
If I try speaker-test I am not able to hear anything and in console I see the following log Playback device is default 0 - Front Left Thanks |
Can you also paste the output of:
|
Hi this is my amixer content root@DietPi:~# amixer |
I think I found the reason: https://www.raspberrypi.org/blog/latest-raspberry-pi-os-update-may-2020/ @corasaniti
It should show you two audio cards now, the first being HDMI output, the second being 3.5mm jack. If that is so, you should be able to get output to 3.5mm via:
I'll also check this on RPi2 later. |
Hi this is my output of root@DietPi:~# aplay -l So with command I should be able to hear audio on analog 3.5jack if I want to restore the configuration on the HDMI audio output, do I have to execute the following command? Correct? right |
Hi the command
it worked perfectly for me :-) Now I am able to listen to the music on my speakers connected in analog on the 3.5mm jack and listen to the noise of the floppy drive emulated in Amiberry Thanks: - / |
Okay, that is great. I think 3.5mm jack for default sound output is fine as well. |
It is even worse. If no HDMI monitor is attached (or HDMI forcefully disabled), card 0 is the 3.5mm jack and the HDMI card is not available. It seems to make sense, but the problem is that is is extremely complicated (too complicated to implement) now to know which card ID which output channel will finally have. That alone could be solved with a two stage implemention:
This assures that the correct sound card is chosen, regardless of its ID, which as well solves another issue better, where the KMS driver adds an additional sound card 0, which we currently work around by incrementing the IDs. But in general these sound card IDs are not fixed and it depends on the order in which all available output devices are loaded. The big downside is that a sound card cannot be chosen with a single selection or even via dietpi.txt or scripted at boot, but includes mostly selecting the driver/overlay/module first, then the selecting the now available cards as a 2nd manual step. But the worst thing is: If one selects the audio jack and then disables HDMI or unplugs the monitor or switches to This could be worked around by directly setting @corasaniti
Check if the last command now only lists "Headphones" (3.5mm jack) with ID 0, like:
If HDMI output is still shown, detach HDMI screen, then:
The second test of course needs to be done via SSH then, when no HDMI monitor is attached 😉. |
Issue now solved via device tree overlay to disable HDMI or 3.5mm jack completely, if the other one is wanted: #3938 |
Unable to hear audio on analog 3.5 jack
DietPi version
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=33
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
Distro version | buster 10.6
Kernel version | Linux DietPi 5.4.72-v7l+ https not working for Punycode domain #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux
SBC model Rpi4
SDcard used | SanDisk ultra
I set the option in the Audio Options of the DietPiConfig tool
rpi-bcm2835-3.5mm
I am not able to hear the sound from the speakers connected via the analog jack to my Rasp4
Thanks
The text was updated successfully, but these errors were encountered: