How to get sound from both Adafruit MAX98357 I2S Amp Raspberry pi zero HDMI
-
Hello,
Need help please :)
How to get sound from both Adafruit MAX98357 I2S Class-D Mono Amp and Raspberry pi zero HDMI output on RETROPIE
Here my hardware configuration :
-PIGRRL ZERO with HDMI OUTPUT
-Adafruit MAX98357 I2S Class-D Mono Amp with a speaker 0.5w 8ohm
-RETROPIE 4.3For the video output, my PIGRRL ZERO Works with the PITFT 2.2 and HDMI out from the RASPBERY PI ZERO together.
Now , the sound works from Adafruit MAX98357 I2S Class-D Mono Amp but not anymore from hdmi output.
Here the sound card devices list :
##############################
pi@retropie:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
##############################I think I have to modify /etc/asound.conf but I don’t know how.
I was looking on Goolge but not found the solution.Here my original asound.conf which works with Adafruit MAX98357 I2S Class-D Mono Amp
##############################
pcm.speakerbonnet {
type hw card 0
}pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "speakerbonnet"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
channels 2
}
}ctl.dmixer {
type hw card 0
}pcm.softvol {
type softvol
slave.pcm "dmixer"
control.name "PCM"
control.card 0
}ctl.softvol {
type hw card 0
}pcm.!default {
type plug
slave.pcm "softvol"
}
##############################Thank you very much for your help
-
Hi,
Somebody knows about JACKD and how to run it ?:)
i think it is a solution.Thanks
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.