Date: Tue, 6 Sep 2022 21:46:59 -0700 From: Fred Finster <fred@thegalacticzoo.com> To: Marco Devesas Campos <devesas.campos@gmail.com>, freebsd-arm@freebsd.org Subject: Re: VCHIQ sound does WORK on Raspi4B 2711 CPU chip. Which DTB to include on config.txt file, Any other missing pieces? NO Message-ID: <64423b82-7ec1-f2c6-344b-25a48ea4fa37@thegalacticzoo.com> In-Reply-To: <E025A042-012C-4DA8-964C-90B77687222A@gmail.com> References: <0ec5a701-908f-fc15-ef8b-401c1553e194@thegalacticzoo.com> <E025A042-012C-4DA8-964C-90B77687222A@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/6/22 04:23, Marco Devesas Campos wrote: > Hi > >> On 7 Sep 2022, at 06:04, Fred Finster <fred@thegalacticzoo.com> wrote: >> >> VCHIQ sound on Raspi4B HDMI audio. Which DTB to include on config.txt file, Any other missing pieces? > stock confit.txt and dtb-s. > > dmesg should then show > > vchiq0: <BCM2835 VCHIQ> mem 0x7e00b840-0x7e00b87b irq 72 on simplebus0 > vchiq: local ver 8 (min 3), remote ver 8. > pcm0: <VCHIQ audio> on vchiq0 > > and > cat /dev/random > /dev/dsp > should play static > > If nothing’s playing, flipping the sysctl dev.pcm.0.dest through > - 0: both hdmi and headphones > - 1: headphones > - 2: hdmi > usually brings the audio back to life. > > Best, > Marco Thank you so very much for this missing piece of setting up the Sound for VCHIQ and the GENERIC_VCHIQ.conf file. I built the kernel GENERIC-VCHIQ in the following manner: login as "root" cd /usr/src patch -v <vchiq_sound_patch.txt time make buildkernel KERNCONF=GENERIC-VCHIQ time make installkernel KERNCONF=GENERIC-VCHIQ reboot, open firefox, www.youtube.com, play a Dave Chappelle video. It just works, Marco!!! Videos come alive with sound! Thanks so very much, for making a very complete patch, that helps a new Raspberry Pi 4B FreeBSD 14.0 kernel maker succeed with this endeavour. YES!! sysctl dev.pcm dev.pcm.0.trace: 0 dev.pcm.0.starved: 5739 dev.pcm.0.freebuffer: 7360 dev.pcm.0.underruns: 0 dev.pcm.0.retrieved: 45881040 dev.pcm.0.submitted: 45920000 dev.pcm.0.callbacks: 23873 dev.pcm.0.dest: 0 dev.pcm.0.mode: 3 dev.pcm.0.bitperfect: 0 dev.pcm.0.buffersize: 0 dev.pcm.0.play.vchanformat: s16le:2.0 dev.pcm.0.play.vchanrate: 48000 dev.pcm.0.play.vchanmode: fixed dev.pcm.0.play.vchans: 1 dev.pcm.0.%parent: vchiq0 dev.pcm.0.%pnpinfo: dev.pcm.0.%location: dev.pcm.0.%driver: pcm dev.pcm.0.%desc: VCHIQ audio dev.pcm.%parent: root@Fred_RasPi4B:~ # cat /dev/sndstat Installed devices: pcm0: <VCHIQ audio> (play) default No devices installed from userspace. root@Fred_RasPi4B:~ # uname -a FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n257130-c0665d5c824-dirty: Tue Sep 6 23:52:55 PDT 2022 fred@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 root@Fred_RasPi4B:~ # freebsd-version -kru 14.0-CURRENT 14.0-CURRENT 14.0-CURRENT root@Fred_RasPi4B:~ # root@Fred_RasPi4B:~ # dmesg | grep -i vchiq fred@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 vchiq0: <BCM2835 VCHIQ> mem 0x7e00b840-0x7e00b87b irq 72 on simplebus0 vchiq: local ver 8 (min 3), remote ver 8. pcm0: <VCHIQ audio> on vchiq0 root@Fred_RasPi4B:~ # uname -a FreeBSD Fred_RasPi4B 14.0-CURRENT FreeBSD 14.0-CURRENT #0 main-n257130-c0665d5c824-dirty: Tue Sep 6 23:52:55 PDT 2022 fred@Fred_RasPi4B:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ arm64 I hope this little bit of feedback helps you. I need to go to work, now for 12 hours. Thanks ago so very much. This FreeBSD has come alive on the Raspberry Pi 4B with 8 GB of dram memory, to be able to play video and HEAR SOUND!!. Youtube.com comes alive! I can share more test data if you need, Marco. Just ask and I will test. https://www.frankspeech.com is a good site to test video hardware Fred L. Finster probably missing something here, Marcos. fred@thegalacticzoo.com 971-718-9144 https://ghostbsd-arm64.blogspot.com ps. Looking forward to this VCHIQ code patch being included in the tree and in a new snapshot FreeBSD 14.0 arm64 image. https://freebsd.org/where
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64423b82-7ec1-f2c6-344b-25a48ea4fa37>