RPi0W dtoverlay for pwm audio

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
kk345
Posts: 18
Joined: Sun Dec 06, 2020 10:02 am

RPi0W dtoverlay for pwm audio

Post by kk345 »

Hi,

Running latest dietpi on raspberry pi zero w.

Tried to get audio through pwm as per below link
https://www.tinkernut.com/2017/04/addin ... workbench/

But playing audio (.wav) says no file.

root@DietPi:/mnt/dietpi_userdata/Music# ls
hey.wav pink.wav song.mp3
root@DietPi:/mnt/dietpi_userdata/Music# aplay hey.wav
aplay: main:828: audio open error: No such file or directory

Tried aplay -l
root@DietPi:/mnt/dietpi_userdata/Music# aplay -l
aplay: device_list:272: no soundcards found...

Searching further found these posts
https://www.raspberrypi.org/forums/view ... 6#p1776306
https://github.com/raspberrypi/firmware ... ays/README
Can you guys guide me to implement it..

Code: Select all

pi@raspberrypi:~$ dtoverlay -h audremap
Name:   audremap

Info:   Switches PWM sound output to GPIOs on the 40-pin header

Usage:  dtoverlay=audremap,<param>=<val>

Params:
swap_lr: Reverse the channel allocation, which will also swap the audio jack outputs (default off)

enable_jack: Don't switch off the audio jack output (default off)
        pins_12_13              Select GPIOs 12 & 13 (default)
        pins_18_19              Select GPIOs 18 & 19
Post Reply