waveshare / WM8960-Audio-HAT

The drivers of [WM8960 Audio HAT] for Raspberry Pi
GNU General Public License v3.0
100 stars 65 forks source link

Help needed for WM8960 support in yocto #53

Closed Romain-Donze closed 5 months ago

Romain-Donze commented 5 months ago

So I tried to add support for the WM8960 waveshare hat to my distro.

My build is based on Boot2Qt (see here: https://doc.qt.io/Boot2Qt/b2qt-how-to-create-b2qt-image.html)

I run bitbake with MACHINE=raspberrypi4-64 and I have added this my local.conf file

MACHINE_FEATURES += "wm8960"

RPI_KERNEL_DEVICETREE_OVERLAYS:append = " \
    overlays/vc4-kms-dsi-waveshare-panel.dtbo \
"

ENABLE_DWC2_HOST = "1"
ENABLE_I2C = "1"
KERNEL_MODULE_AUTOLOAD:rpi += " i2c-dev"

RPI_EXTRA_CONFIG:append = " \n\
# Automatically load overlays for detected DSI displays \n\
display_auto_detect=1 \n\
"

RPI_EXTRA_CONFIG:append = " \n\
# Enable I2S \n\
dtparam=i2s=on \n\
dtoverlay=i2s-mmap \n\
"

RPI_EXTRA_CONFIG:append = " \n\
# Enable waveshare panel \n\
dtoverlay=vc4-kms-dsi-waveshare-panel,7_0_inchC,i2c1 \n\
"

The wm8960-soundcard does appear in alsamixer so I ran

amixer -c1 sset 'Headphone',0 80%,80%
amixer -c1 sset 'Speaker',0 80%,80%
amixer -c1 sset 'Left Input Mixer Boost' on
amixer -c1 sset 'Left Output Mixer PCM' on
amixer -c1 sset 'Right Input Mixer Boost' on
amixer -c1 sset 'Right Output Mixer PCM' on

And it went ok, but still when running speaker-test -t wav -c 2 I don't have any output, so what am I doing wrong?

Romain-Donze commented 5 months ago

https://github.com/raspberrypi/linux/issues/5849