I want to connect speakers and microphone to the Rock Pi 4B.
In the 4B specs, it is written that:
3.5mm jack with mic
So, as I understand there is one direct audio port.
For testing purposes, I tried to fit my phone headphone which has microphone (single 3.5mm jack) but there was no sound coming in and microphone also didn’t work. I also noticed that headphone’s 3.5mm male port didn’t fit to the 3.5mm jack (it didn’t go till the end, male end seems to be longer than Rock Pi4B’s jack). In contrast, the headphone fits/works great with my phone/computer. My phone is iphone 5 and in the specifications it is said that it uses 3.5mm standard audio jack. So, I believe there is something non-standard in the Rock Pi 4B. Any ideas?
What is recommended setup to get both microphone and speaker working? Just want to note that I don’t need headphones but speakers audible for all + microphone.
I found speakers and was able to connect them (they were fitting to the jack). I tested the speakers with NanoPC-T4 and with PC, speakers are operational. When I connect them to Rock Pi4B, they don’t appear in volume control option(in official Debian image). I also tried with Armbian OS, to see if other OS can solve the problem, but nothing happens: no sound, no device visible.
Do I need to install specific drivers for getting audio to work?
There seems to be a kernel bug breaking audio with newer kernel versions.
With Armbian, you can try to install the older 5.10 kernel, where the 3.5mm jack should work again. In armbian-config, go to System > Other and select the latest 5.10 kernel.
I did what you wrote, but it didn’t help:
After following the kernel change instructions, I checked the kernel version in terminal and the version was indeed 5.10. Then, I opened a youtube video, and in the volume control application I had two device options. Tried both of them but none of them gave sound. Then I tried to
apt update/upgrade
But after this step the kernel version changed back to 5.15. I don’t know if it is normal behavior.
So, in summary, there are two audio options appearing in volume control, while in nanopc-t4 I had 3 options and 3rd one was working.
If you have checked that you haven’t got anything muted on the PulseAudio (or whatever other sound server you are using) side of things, the problem might be with the ALSA state being messed up. Try:
After switching to the 5.10 kernel, to prevent apt from switching back to 5.15 run sudo apt-mark hold '*-current-rockchip64', which can be reversed with unhold.
But it appears that the bug has been fixed since 5.17, so you can also try upgrading to the latest edge kernel with armbian-config to see if that fixes your issue. (edge is a different set of packages to the current branch so using apt-mark hold is not required.)
I’m still using 5.10 to work around some display jitter issues, but they probably don’t affect you so using a newer kernel could work better.