Open vanfanel opened 1 year ago
Describe the bug
On Raspberry PI OS 64bit (aarch64), if the vc4-hdmi device is used, running any PortAudio program causes multiple errors on the console. With the sine example:
PortAudio Test: output sine wave. SR = 44100, BufSize = 64 ALSA lib pcm_asym.c:105:(_snd_pcm_asym_open) capture slave is not defined ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm_asym.c:105:(_snd_pcm_asym_open) capture slave is not defined ALSA lib pcm_direct.c:1206:(snd1_pcm_direct_initialize_slave) requested or auto-format is not available ALSA lib pcm_dmix.c:1087:(snd_pcm_dmix_open) unable to initialize slave Play for 5 seconds.
It works after all those errors, but messages are somewhat worrying.
To Reproduce Steps to reproduce the behavior. Include code if applicable.
dtoverlay=vc4-kms-v3d
dtparam=audio=on
Expected behavior PortAudio programs should work without errors.
Desktop (please complete the following information):
Additional information
The vc4-hdmi ALSA device configuration is exactly this one: https://github.com/alsa-project/alsa-lib/blob/master/src/conf/cards/vc4-hdmi.conf
Possible duplicate #739, #555, #163
Describe the bug
On Raspberry PI OS 64bit (aarch64), if the vc4-hdmi device is used, running any PortAudio program causes multiple errors on the console. With the sine example:
It works after all those errors, but messages are somewhat worrying.
To Reproduce Steps to reproduce the behavior. Include code if applicable.
dtoverlay=vc4-kms-v3d
and commenting outdtparam=audio=on
Expected behavior PortAudio programs should work without errors.
Desktop (please complete the following information):
Additional information
The vc4-hdmi ALSA device configuration is exactly this one: https://github.com/alsa-project/alsa-lib/blob/master/src/conf/cards/vc4-hdmi.conf