agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
505 stars 395 forks source link

Raspberry CM4 does not load audremap overlay #1308

Open farias-automac opened 2 months ago

farias-automac commented 2 months ago

Description

Hello, I'm new to the GitHub and Raspberry community, so let me know if I'm doing something wrong please. I am trying to compile with Yocto Kirkstone (also tried newer branches), for a Raspberry Pi CM4 (emmc) + Official IO Board. I chose the Raspberrypi4 machine config, is this the correct one for the CM4 32bits? I build the core-image-base with the alsa package. I enabled in local.conf dtparam=audio=on and also dtoverlay=audremap to route the audio to pins 12 and 13 (pwm). This works fine with the official raspberry distro (only Bullseye onwards) but it doesn't work here. With the aplay -L command only the HDMI audio appears, not the headphones. The SO image works fine, it boots and outputs audio via HDMI. I also tried enabling pwm audio with other commands in local.conf like: audio_pwm_mode2 dtoverlay=audremap, pins_12_13 dtoverlay=pwm1 and the same above with pins 40 & 41

also tried running >modprobe snd_bcm2835

I really don't know what else to do, or where else to look for more info. Please tell me if you need me to add more data like dmesg logs etc.

Steps to reproduce the issue:

  1. Buld core-image-base + alsa with yocto Kirkstone
  2. Set in local.conf dtparam=audio=on and dtoverlay=audremap
  3. boot and try to get pwm audio from Raspberry IO Board

Describe the results you received: no headphones device loaded, just HDMI audio

Describe the results you expected: audio throught pins 12 & 13

Additional information you deem important (e.g. issue happens only occasionally):

Additional details (revisions used, host distro, etc.): rev Kirkstone, Linux 5.15, poky distro, Raspberry pi CM4 with emmc and official IO Board

Many thanks for your time.