Hello.
I've problem with installing drivers for Raspberry PI OS Full. I created dedicated module using PCM5102A and PAM8403. All works fine when i setup new Raspberry PI OS Full at then new SD card, but when i have to install drivers on existing OS, evrythings looks fine but finally speakres do not play any sounds. I have to update about 70 RPIs so i dont want to reinstall whole Raspberry PI OS.
What can i check more?
Details:
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $ cat /boot/config.txt
# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=82# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4# uncomment for composite PAL
#sdtv_mode=2#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
enable_uart=0
# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
dtoverlay=hifiberry-dac
dtoverlay=waveshare35a
#dtoverlay=ads7846,cs=1,penirq=17,penirq_pull=2,speed=1000000,keep_vref_on=1,swapxy=1,pmax=255,xohms=60,xmin=200,xmax=3900,ymin=200,ymax=3900
hdmi_force_hotplug=1
#max_usb_current=1
hdmi_group=2
hdmi_mode=82
hdmi_mode=82
hdmi_cvt 480 320 60 6 0 0 0
hdmi_drive=2
pi@raspberrypi:~ $ cat /etc/modprobe.d/alsa-blacklist.conf
blacklist snd_bcm2835
pi@raspberrypi:~ $ cat /etc/asound.conf
pcm.!default {type hw
card 0
}
ctl.!default {
type hw
card 0
}
pi@raspberrypi:~ $ play -n synth sine 1000
play WARN alsa: can't encode 0-bit Unknown or not applicableFile Size: 0
Encoding: n/a
Channels: 1 @ 32-bit
Samplerate: 48000Hz
Replaygain: off
Duration: unknownIn:0.00% 00:00:10.07 [00:00:00.00] Out:483k [!=====|=====!] Hd:0.0 Clip:0
Aborted.
In addition i'm using a lot of GPIO eg.
-LCD Display via SPI
-NFC Reader via I2C
-RGB Diodes via GPIO 13 (PWM1)