Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Error starting sBitx v4.3 64 bits
Good afternoon,
I had a Raspberry TFT screen saved and today I put it on a sBitx computer version DE.
?
But now a problem has appeared, the sBitx does not start and gives the error "snd_mixer_selem_has_capture_switch: Assertion `elem' failed".
?
pi@sbitx:~ $ cd sbitx
pi@sbitx:~/sbitx $ ./sbitx sbitx v4.301 Unable to load ~/sbitx/data/hw_settings.ini Loading default_hw_settings.ini instead i2cbb.c:writing address failed at 8 sbitx: simple.c:652: snd_mixer_selem_has_capture_switch: La declaraci¨®n `elem' no se cumple. Abortado pi@sbitx:~/sbitx $? ?
?
If I disconnect the power supply from the TFT screen and restart the computer everything works correctly.
?
The Raspberry is a v4, the OS is 64 bits and the sBitt version is 4.3. Any ideas?
?
Thanks,
¸é²¹³¾¨®²Ô EA4GZI |
It appears that there is sound on the TFT you are using and the Pi is recognizing it. You can run aplay -l from the terminal to verify. You must have the Wolfson Audio chip mapped as the first device or sBitx won't start.
?
card 0: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0 [AudioInjector audio wm8731-hifi-0] ? Subdevices: 0/1 ? Subdevice #0: subdevice #0 |
Thanks JJ,
?
the output to "aplay -l" is:
?
pi@sbitx:~/sbitx $ aplay -l
**** List of PLAYBACK Hardware Devices **** card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0] ? Subdevices: 1/1 ? Subdevice #0: subdevice #0 card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0] ? Subdevices: 1/1 ? Subdevice #0: subdevice #0 card 2: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0 [AudioInjector audio wm8731-hifi-0] ? Subdevices: 1/1 ? Subdevice #0: subdevice #0 card 3: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM] ? Subdevices: 8/8 ? Subdevice #0: subdevice #0 ?... ?
Indeed, the order is not correct.
I have created the file "/etc/udev/rules.d/85-audio-injector.rules" and added this line SUBSYSTEM=="sound", ATTR{id}=="audioinjectorpi", ATTR{index}=="0" but it seems to have no effect. ?
?
In fact, the output of the command
?
"sudo udevadm test /sys/class/sound/card2"
?
shows a line like this:
?
Reading rules file: /etc/udev/rules.d/85-audio-injector.rules /etc/udev/rules.d/85-audio-injector.rules:1 The line takes no effect, ignoring.
?
¸é²¹³¾¨®²Ô EA4GZI
? |
The tft display uses spi interface that uses the same gpio pins as the audio codec On Sat, Mar 1, 2025, 4:20 PM ramonlh via <ramonlh=[email protected]> wrote:
|
Hi Ramon,
?
Try adding noaudio to the vc4-hdmi (not sure this is the correct name) line in the config.txt file in /boot.? I had to do that for an external HDMI monitor with audio.
?
I still need to shut down and wait to restart my DE.??
?
I also suggest going to JJ's 64-bit software.? My DE seems to like it better.
?
73
Evan
AC9TU |
Thanks Evan,
so far I have not been able to disable vc4hdmi0 and vc4hdmi1. how did you do it? ?
?
pi@sbitx:~ $ aplay -l
**** List of PLAYBACK Hardware Devices **** card 0: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0] ? Subdevices: 1/1 ? Subdevice #0: subdevice #0 card 1: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0] ? Subdevices: 1/1 ? Subdevice #0: subdevice #0 card 2: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0 [AudioInjector audio wm8731-hifi-0] ? Subdevices: 1/1 ? Subdevice #0: subdevice #0 ?
¸é²¹³¾¨®²Ô
? |
to navigate to use esc to dismiss