I encountered a problem in developing the voice function, in the IMX8 series development board, if you want to output audio from the HDMI port, you need to manually use the command to change the output port to HDMI, but during the development I found that all my sound card devices lack chips, in alsamixer display: This sound device does not have any controls. There is no way to adjust the volume at all, nor can you change the output device, you can only see a few sound card information, if you solve this problem so that the sound can be output normally from the HDMI port
Hi @jinmuyan
It seems like you are having trouble with the audio output through the HDMI port on your i.MX8 development board. To resolve this issue, you can follow these steps:
CONFIG_SND_SOC_IMX_HDMI=yIf it's not present, add it and rebuild your kernel.
hdmi_audio: hdmi_audio { compatible = 'fsl,imx-audio-hdmi'; model = 'imx-hdmi'; status = 'okay'; };If it's not present, add it and rebuild your device tree.
aplay -lLook for a card with a description similar to 'imx-hdmi'.
pcm.!default { type hw card card_number device device_number }Save the file and restart the ALSA service.
ctl.!default { type hw card card_number }
After completing these steps, you should be able to output audio through the HDMI port on your i.MX8 development board. If you still encounter issues, please provide more information about your setup, including the specific i.MX8.
Kind Regards,
First of all, thank you very much for your help, but I also need to elaborate on my problem, my development needs are to need to output sound separately from the HDMI, and I have an adapter, it has two outputs, a headphone jack and a VGA port, I need to plug in the headphones to let the sound go through the adapter and then through the headphones, but my problem now is that I have all the sound card equipment.I can see all sound card devices including vm8524, imx-hdmi, etc. through the aplay -l command, but in ALSAmixer I have no way to adjust the volume, prompting me to lack firmware, as shown in the image below, I suspect that it may be that my burning file is incomplete, so can you analyze what caused it or tell me where to find the official standard burning file?
Thank you very much for your help