The tft display uses spi interface that uses the same gpio pins as the audio codec
toggle quoted message
Show quoted text
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.
?
Ramón EA4GZI
?