Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4318

Compute Module • Re: PWM Audio on CM4?

$
0
0
Thanks for your reply, I'm still a little confused though

I don't mind which pins are used - I can use whichever is easiest on the 40 pin header

I've had a look at the docs and tried the following (which I understand without any parameters defaults to GPIO 18/19).

Code:

dtoverlay=pwm-2chan
Still no audio output when I've connected to Pin 18

I wasn't sure if I also needed the below command as well? I've tried with and without, and still no audio on pin 18.

Code:

dtoverlay=audremap,pins_18_19
If you assume I have flexibility on the pins used, what would be the simplest configuration?

For reference below is my config.txt

Could you also confirm if I need the following ?

Code:

dtparam=audio=on

Code:

# For more options and information see# http://rptl.io/configtxt# Some settings may impact device functionality. See link above for details# Uncomment some or all of these to enable the optional hardware interfacesdtparam=i2c1=ondtparam=i2c_arm=ondtoverlay=i2c1-bcm2708,sda1_pin=2,scl_pin=3#dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4#dtparam=i2s=on#dtparam=spi=on# Enable audio (loads snd_bcm2835)dtparam=audio=on#dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4# Additional overlays and parameters are documented# /boot/firmware/overlays/README# Automatically load overlays for detected camerascamera_auto_detect=1# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1dtparam=audio=on# Automatically load initramfs files, if foundauto_initramfs=1# Enable DRM VC4 V3D driver#dtoverlay=vc4-kms-v3dmax_framebuffers=2#disable_splash=1# Don't have the firmware create an initial video= setting in cmdline.txt.#dtparam=audio=on Use the kernel's default instead.disable_fw_kms_setup=1# Disable compensation for displays with overscandisable_overscan=1# Run as fast as firmware / board allowsarm_boost=1[cm4]# Enable host mode on the 2711 built-in XHCI USB controller.# This line should be removed if the legacy DWC2 controller is required# (e.g. for USB device mode) or if USB support is not required.otg_mode=1#dtparam=audio=off[cm5]dtoverlay=dwc2,dr_mode=host[all]# Enable audio (loads snd_bcm2835) - disabled on-board sound due to DigiAmp+ audio board#dtparam=audio=on# Enable DigiAmp+#dtoverlay=iqaudio-dacplus,unmute_ampdtoverlay=pwm-2chan#dtoverlay=audremapdtoverlay=audremap,pins_18_19

Statistics: Posted by tom82 — Sun Jan 12, 2025 3:34 am



Viewing all articles
Browse latest Browse all 4318

Trending Articles