Fwd: Re: [Differential] D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c

From: Fred Finster <fred_at_thegalacticzoo.com>
Date: Mon, 22 Jan 2024 13:42:59 UTC
<div dir='auto'>For VCHIQ HDMI and analog&nbsp; Audio. Do not use patch D43399. use just the 3 Marcos Devesas Campos patch files. Patch in this order, D36431, D37878, D37879.&nbsp; Compile kernel for Freebsd at /usr/src<div dir="auto">time&nbsp; make -j4 buildkernel&nbsp; KERNCONF=GENERIC-VCHIQ -DNO_CLEAN&nbsp;&nbsp;</div><div dir="auto"><br></div><div dir="auto">time make installkernel KERNCONF=GENERIC-VCHIQ&nbsp;</div><div dir="auto"><br></div><div dir="auto">Specific detailed instructions on the January 19, 2024&nbsp; ghostbsd-arm64.blogspot.com&nbsp; post and reviews.freebsd.org/D43399 post</div><div dir="auto"><br></div><div dir="auto">Enjoy sound on your Rasberry pi 4B,3B,400 today.&nbsp; Will have an Ghost14*Jan22_*.img.xz for GhostBSD-Arm64 up at http://ghostbsdarm64.hopto.org/packages/&nbsp; that plays HDMI audio sound on VCHIQ hardware on Broadcom chip.</div><div dir="auto"><br></div><div dir="auto">There is shell script file to 1.) download Freebsd-14.0-RELEASE*RPI.img.xz&nbsp; or&nbsp; 2.) Ghostbsd-Arm64 img.xz file.</div><div dir="auto">3.)&nbsp; download a URL you paste there</div><div dir="auto"><br></div><div dir="auto">Decompress file.img.xz&nbsp; into file.img</div><div dir="auto">dd write file into usb flash drive /dev/da1&nbsp;</div><div dir="auto"><br></div><div dir="auto">http://ghostbsdarm64.hopto.org/packages/write_freebsd_img_dd_to_da1.sh<br></div><div dir="auto"><br></div><div dir="auto">Glad to share with you "the sound of music" playing on your RasPi vchiq hardware.</div><div dir="auto"><br></div><div dir="auto">JSM do these 3 patches work on Raspberry Pi 5 hardware.&nbsp; Thanks for your effort to make microSD card hardware operational on RasPi 5.</div><div dir="auto"><br></div><div dir="auto">ps.&nbsp; Experienced errors writing to 128GB Kingston USB flash drive connected to USB blue 3.0 sockets.</div><div dir="auto"><br></div><div dir="auto">fsck -y /dev/da1p3&nbsp;</div><div dir="auto">reports fixing inode errors</div><div dir="auto"><br></div><div dir="auto">fsck -y /dev/da1p3&nbsp; again shows same inode errors<br></div><div dir="auto"><br></div><div dir="auto">So be careful and check.&nbsp; Mark Millard thanks for heads up with USB 3.0 errors.</div><div dir="auto"><br></div><div dir="auto">Fred Finster</div><div dir="auto"><br></div></div><div class="elided-text">---------- Forwarded message ----------<br />From: &#34;Fred G. Finster&#34; &lt;fred&#64;thegalacticzoo.com&gt;<br />Date: Jan 21, 2024 8:55 PM<br />Subject: Re: [Differential] D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c<br />To: bses30074&#64;gmail.com<br />Cc: fredfinster58&#64;gmail.com,devesas.campos&#64;gmail.com,wb7odyfred&#64;yahoo.com<br /><br type="attribution" /><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Do not need patch file at D43399, when using those 3 patch files.<br />
D36431, D37878, D37879 patch files from Marcos<br />
https://reviews.freebsd.org/F75131370#30<br />
Fred Finster using 3 VCHIQ Patch files for Raspberry Pi 4B.<br />
<br />
<br />
On 1/18/24 1:35 PM, bses30074_gmail.com (Yan-Hao Wang) wrote:<br />
&gt; bses30074_gmail.com added a comment.<br />
&gt; <br />
&gt; <br />
&gt;    Is this patch based on the three preceding patches? Were there compilation warnings (or errors) encountered when applying those three patches, leading to the creation of this patch to address those issues?<br />
&gt;    F75131370: image.png &lt;https://reviews.freebsd.org/F75131370&gt;<br />
&gt;    <br />
&gt;    I have tested the three patches by applying the diff from this link &lt;https://lists.freebsd.org/archives/freebsd-arm/2022-February/000949.html&gt; on my RPI4B running FreeBSD CURRENT. I successfully compiled the kernel and verified that sound can be produced through the 3.5mm headphone jack. However, it appears that sound is still not being produced through HDMI? In my device, only one PCM device (3.5mm) is visible.<br />
&gt;    <br />
&gt;      kola&#64;generic:~ $ cat /dev/sndstat<br />
&gt;      Installed devices:<br />
&gt;      pcm0: &lt;VCHIQ audio&gt; (play) default<br />
&gt;      No devices installed from userspace.<br />
&gt; <br />
&gt; REPOSITORYFred <br />
&gt;    rG FreeBSD src repository<br />
&gt; <br />
&gt; CHANGES SINCE LAST ACTION<br />
&gt;    https://reviews.freebsd.org/D43399/new/<br />
&gt; <br />
&gt; REVISION DETAIL<br />
&gt;    https://reviews.freebsd.org/D43399<br />
&gt; <br />
&gt; EMAIL PREFERENCES<br />
&gt;    https://reviews.freebsd.org/settings/panel/emailpreferences/<br />
&gt; <br />
&gt; To: fred_thegalacticzoo.com, devesas.campos_gmail.com, emaste, lwhsu, andrew<br />
&gt; Cc: bses30074_gmail.com, ericbsd, manu, imp, fred_thegalacticzoo.com, rw_aoek.com, sdmitry_parallels.com, me_mko.io, kjopek_gmail.com, rb_rdbg.co.uk, herbert_mailbox.org, tommi.pernila_iki.fi, bz, pstef<br />
&gt; <br />
<br />
Created a blogpost specifically about  applying a patch code from <br />
D36431,  D37878 and D37879 review.freebsd.org<br />
<br />
https://ghostbsd-arm64.blogspot.com/2024/01/hdmi-audio-sound-patches-into-ghostbsd.html<br />
<br />
I also posted here too:   To keep same info from my blogpost available <br />
in reviews.freebsd.org<br />
https://reviews.freebsd.org/F75131370<br />
<br />
<br />
You can look,  I mentioned you.  Maybe I should remove your email <br />
address, Yan-Hao Yang?  I am asking your permission. I will remove on <br />
you say so.  Maybe I go remove now.  Fred<br />
Now to patch the code and test the patch.<br />
Fred<br />
<br />
https://ghostbsd-arm64.blogspot.com/2024/01/hdmi-audio-sound-patches-into-ghostbsd.html#more<br />
<br />
Yes, I have sound coming out the HDMI Audio speakers on the Samsung TV. <br />
Look at the blog post up above.  Thanks for your interest and spurring <br />
me on to try again make the HDMI sound work.  Yan-Hao Wang.<br />
No I did not make any changes.<br />
<br />
I also incorporated most of that blog post changes into your Fxx <br />
image.png post at<br />
https://reviews.freebsd.org/F75131370<br />
<br />
So people reading this can try patching the kernel software and hearing <br />
sound from the Raspberry Pi 4B VCHIQ hardware on the HDMI Audio output<br />
<br />
<br />
-- <br />
Fred Finster<br />
GhostBSD-Arm64.blogspot.com<br />
t.me/ghostbsd  Telegram Channel<br />
GhostBSD.org  website<br />
</p>
</blockquote></div><br />