Hi
I am helping my son to code Pi-Car-X, and we are having issues with speaker.
After installing i2samp.sh script speaker works and we can hear Front Right (not Front Left), however after doing the reset there is no sound at all. As suggested in instructions we tried to install the script several times however no luck.
The following is the result after running the script:
install robot-hat soundcard driver >>>
script version: 0.0.4
user: abdullah
apt update…
Hit:1 Index of /debian trixie InRelease
Hit:2 Index of /debian trixie InRelease
Hit:3 (link not allowed by forum) trixie-updates InRelease
Hit:4 (link not allowed by forum) trixie-security InRelease
All packages are up to date.
install alsa-utils …
alsa-utils is already the newest version (1.2.14-1+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install pulseaudio …
pulseaudio is already the newest version (17.0+dfsg1-2+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install pulseaudio-utils …
pulseaudio-utils is already the newest version (17.0+dfsg1-2+rpt1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install jq …
jq is already the newest version (1.7.1-6+deb13u1).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
install sox …
sox is already the newest version (14.4.2+git20190427-5+b3).
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
check robothat 5 …
find: ‘/proc/device-tree/hat’: No such file or directory
hat_dir:
No robothat 5 found
robothat_spk_en: 20
is_with_mic: false
config soundcard without mic …
add dtoverlay hifiberry-dac in /boot/firmware/config.txt …
activated dtoverlay hifiberry-dac …
Trying to load dtoverlay hifiberry-dac …
get_soundcard_index …
soundcard sndrpihifiberry index: 0
config /etc/asound.conf without mic …
set ALSA speker volume to 100% …
Simple mixer control ‘robot-hat speaker’,0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
config pulseaudio …
raspi-config enable pulseaudio …
run pulseaudio …
get_sink_index …
sink index: 105
set default sink …
set default Pulseaudio volume to 100% …
Do you wish to test speaker now? [y/N] y
testing speaker …
speaker-test 1.2.14
Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2229 to 8916
Period size range from 1114 to 1115
Periods = 4
was set period_size = 1114
was set buffer_size = 4458
0 - Front Left
1 - Front Right
Time per period = 2.923920
0 - Front Left
1 - Front Right
Time per period = 3.019485
0 - Front Left
1 - Front Right
Time per period = 3.018424
All done!
Could someone please help to resolve this issue.
Thanks