Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2022 19:27:26 +0100
From:      Marco Devesas Campos <devesas.campos@gmail.com>
To:        Valery Seys <valery@vslash.com>, freebsd-arm@freebsd.org
Cc:        Odhiambo Washington <odhiambo@gmail.com>
Subject:   Re: sound on raspberry pi 4
Message-ID:  <14F9CA06-C2B1-4E9C-B370-9561F49FA7C9@gmail.com>
In-Reply-To: <fd77cbe9-87db-c19c-a75a-53c377e4a42d@vslash.com>
References:  <Yw%2Bf4FlUSBRiG7Fm@void.f-m.fm> <fd10cb99-d703-6b67-85c5-ed0d2df58952@klop.ws> <1e9994f4-39f9-5adf-2cb7-03c9981b424e@selasky.org> <e4db8912-8b91-e9b7-74fd-518dc0f0ec75@klop.ws> <fb725e00-213c-fd93-c275-31f31ba53e5e@klop.ws> <9C8C18F4-43BA-4F1E-B683-7BD5AC513C8C@gmail.com> <948CD3ED-F501-431F-BE66-3DD51A8C9EF5@gmail.com> <D004B365-569D-4776-A7A0-BF00E559BD82@gmail.com> <CAAdA2WMZnb86_JicibXcXqNbktT1y_A2FZSmi_W2YwcccWd0CA@mail.gmail.com> <cdc18522-975f-800f-d8cf-ff01a33e296b@vslash.com> <CAAdA2WOsD9gPsBK39_0jC5R_pz7C8b3Pd%2BfKdk1ZwDFE7ZyXLg@mail.gmail.com> <fd77cbe9-87db-c19c-a75a-53c377e4a42d@vslash.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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=E2=80=99s 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=E2=80=99re 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 =E2=80=9Ci2s over pcm output", and, while there are drivers for some =
boards (eg sys/arm64/rockchip/rk_i2s.c) I can=E2=80=99t 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:
>=20
> * Raspberry Pi 4:
>    Broadcom BCM2711, Quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
>=20
>    =46rom what I found on the net:
> 	A: The Pi4 still uses a PWM sound output similar to previous =
models. Therefore, don=E2=80=99t expect high quality sound from the =
onboard sound. A HiFiBerry sound card is still the right choice for =
optimal sound quality.
>=20
>=20
> * Raspberry Pi 3B+:
>    Broadcom BCM2837B0, Quad-core Cortex-A53 (ARMv8) 64-bit SoC @ =
1.4GHz
>=20
> 	https://forums.freebsd.org/threads/rpi-3b-sound-and-wifi.69297/
> 	Sound: sdio
> 	https://reviews.freebsd.org/D12467
>=20
>=20
> Q: could you run MacOS-X.0 on an MacBookPro 2022 ? Still the same OS =
...
> A: ;o)
>=20
> 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,
>=20
> BR
>=20
> V/
>=20
>=20
>=20
> 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 =E2=80=94 let alone =
reviews =E2=80=94 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 =E2=80=94 any! =E2=80=94 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 '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF =
:-)
>> --=20
>> Best regards,
>> Odhiambo WASHINGTON,
>> Nairobi,KE
>> +254 7 3200 0004/+254 7 2274 3223
>> "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-)
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14F9CA06-C2B1-4E9C-B370-9561F49FA7C9>