Re: sound on raspberry pi 4

From: Marco Devesas Campos <devesas.campos_at_gmail.com>
Date: Mon, 17 Oct 2022 18:27:26 UTC
For clarity:

- the patch should work on all 32 and 64 bit pis and has been tested
on zero, zero2 (same as a 3b), and 4 boards;

- the sound subsystem the driver talks to outputs to both hdmi and pwm
(can be individually targeted), and you can get bit-perfect audio through
hdmi (then it’s a matter of what kind of DAC your screen/tv/amp-with-hdmi-input
has)

- i have the pwm output hooked up to an amp and proper speakers and,
while I can hear a difference, output quality is actually pretty decent, certainly
if you’re listening to compressed audio. And certainly fine for what I use it for
which is as a sharplay-sync receiver from my mac.

Also, if I understand correctly, boards such as the hifiberry connect via “i2s over pcm output", and, while there are drivers for some boards (eg sys/arm64/rockchip/rk_i2s.c) I can’t find the equivalent for the pi's bcm283*. (Happy to hear otherwise, here.)

Marco

> On 17 Oct 2022, at 15:11, Valery Seys <valery@vslash.com> wrote:
> 
> * Raspberry Pi 4:
>    Broadcom BCM2711, Quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
> 
>    From what I found on the net:
> 	A: The Pi4 still uses a PWM sound output similar to previous models. Therefore, don’t expect high quality sound from the onboard sound. A HiFiBerry sound card is still the right choice for optimal sound quality.
> 
> 
> * Raspberry Pi 3B+:
>    Broadcom BCM2837B0, Quad-core Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz
> 
> 	https://forums.freebsd.org/threads/rpi-3b-sound-and-wifi.69297/
> 	Sound: sdio
> 	https://reviews.freebsd.org/D12467
> 
> 
> Q: could you run MacOS-X.0 on an MacBookPro 2022 ? Still the same OS ...
> A: ;o)
> 
> Do you need sound on a Rpi or any other SFF board ? Get a simple external USB sound system, really the better and easiest choice I think,
> 
> BR
> 
> V/
> 
> 
> 
> On 17/10/2022 15:24, Odhiambo Washington wrote:
>> Oops!
>> But still, I thought that the same OS is used for Pi3B+, no?
>> On Mon, Oct 17, 2022 at 4:17 PM Valery Seys <valery@vslash.com <mailto:valery@vslash.com>> wrote:
>>    Perhaps just look at the subject : "sound on raspberry pi 4", which is not a
>>    Pi3B+ I think,
>>    BR,
>>    VS
>>    On 17/10/2022 14:50, Odhiambo Washington wrote:
>>     >
>>     >
>>     > On Mon, Oct 17, 2022 at 3:29 PM Marco Devesas Campos
>>    <devesas.campos@gmail.com <mailto:devesas.campos@gmail.com>
>>     > <mailto:devesas.campos@gmail.com <mailto:devesas.campos@gmail.com>>> wrote:
>>     >
>>     >     Peeps,
>>     >
>>     >     Have yet to receive any comments — let alone reviews — on
>>     >
>>     > https://reviews.freebsd.org/D36431 <https://reviews.freebsd.org/D36431>
>>    <https://reviews.freebsd.org/D36431 <https://reviews.freebsd.org/D36431>>
>>     >
>>     >     The patch adds sound, and accel video support to 64bit pi-s;
>>     >     it implements 32 bit compat; and fixes system stalls in the
>>     >     existing code. Useful stuff, methinks, and a few people
>>     >     on this list have atested to that.
>>     >
>>     >     So, please, anyone? Any — any! — feedback appreciated.
>>     >
>>     >     Marco
>>     >
>>     >
>>     > Just curious. How do I test this?
>>     > I have a Pi3B+ which I have always wanted to run FreeBSD on, but then
>>    getting
>>     > FreeBSD Desktop is so much pain.
>>     > How would I test accel video and sound on a Pi without getting stressed
>>    out? :-)
>>     >
>>     > --
>>     > Best regards,
>>     > Odhiambo WASHINGTON,
>>     > Nairobi,KE
>>     > +254 7 3200 0004/+254 7 2274 3223
>>     > "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
>> -- 
>> Best regards,
>> Odhiambo WASHINGTON,
>> Nairobi,KE
>> +254 7 3200 0004/+254 7 2274 3223
>> "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
>