From nobody Mon Oct 17 18:27:26 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MrlpT6VcWz4f6tL for ; Mon, 17 Oct 2022 18:27:29 +0000 (UTC) (envelope-from devesas.campos@gmail.com) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MrlpT1c92z3q8T for ; Mon, 17 Oct 2022 18:27:29 +0000 (UTC) (envelope-from devesas.campos@gmail.com) Received: by mail-wr1-x42f.google.com with SMTP id r13so19728838wrj.11 for ; Mon, 17 Oct 2022 11:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=We+RMfK/i75c0VQMxY8kLAgnK/aa30p7KkqgkrnXRug=; b=m/2bSKfhvJgNCIEhanWrvdq6bJmedpT4502eDCfxsSfqmtfb5tKvbvzdzkdVD+2uhQ YVldV8LLa6GCH+xUaUOIl3EdNYpBbMNcWRAMzGTa0tje0x4PFfeYKpoXynyYvz1NaBsg tXktIiJigATIwVQlswNh2jxU0cVArBi6m+EOKagNKg5U4AsG+Dr2tAqqDg6aktzjEx8x mYiBr2tqBs54Is/UqNVAnf0Hoxd6rq/YS0sA0p3BxZ+EeYSGKYaWF5Pa1PrHvsTmLDgs JeaeWWwwF2meMyIHF7fo25gmvjohqXbbXtr6cpzkbj2LM59FFIhuH2fpb79j5IsIXQ48 CbdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=We+RMfK/i75c0VQMxY8kLAgnK/aa30p7KkqgkrnXRug=; b=uATVEJP30cd3rzKn+Z33M11NO02KHRgU80H/wchtdNCh5M3jDW1NEZRChSYK/7oPBq GuSbHk8gvEPRsS3N/pTY4YlgcfYnMrzJm+iO4lppkb8wmIbV2sIGq59gEkX1s7g51K66 ZoM2u14e6H5G2XEQsJbAIlErv2BtTy/gc5sQKbLBRYl3l4RNTY8QZgyl4iVZgb5U52Kj edTWKnDUFXynPgm3rdG7KTJxkTB0sOYahyxywFjte7qxiJUMmcrKjl9h6Sr46KRr4y5a eGJIjFkHuj6j/tJNK5w6kkSRGwiysF8dzLhzKB91Xn9CeheJpIW8MX3wwmlA8Q9+L1ff fS+Q== X-Gm-Message-State: ACrzQf02GHtw/ikv1Yr5HiRlsG4PYXK29gcT/Rg4NCac0KEclsGaXDl5 LdCVNIUvJtzCaBlzCDtO4n4= X-Google-Smtp-Source: AMsMyM45kjkuLtAdEwyO7vOI+23NKl940v38rxOSkLmD7BxYAexpq6rZZaOBW0dVcnWaAn9U3lsbxw== X-Received: by 2002:a05:6000:1e03:b0:22e:3bf2:4685 with SMTP id bj3-20020a0560001e0300b0022e3bf24685mr6916068wrb.82.1666031248017; Mon, 17 Oct 2022 11:27:28 -0700 (PDT) Received: from smtpclient.apple (a213-22-242-181.cpe.netcabo.pt. [213.22.242.181]) by smtp.gmail.com with ESMTPSA id l1-20020a5d4bc1000000b0022afe4fb459sm4207334wrt.51.2022.10.17.11.27.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2022 11:27:27 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: sound on raspberry pi 4 From: Marco Devesas Campos In-Reply-To: Date: Mon, 17 Oct 2022 19:27:26 +0100 Cc: Odhiambo Washington Content-Transfer-Encoding: quoted-printable Message-Id: <14F9CA06-C2B1-4E9C-B370-9561F49FA7C9@gmail.com> References: <1e9994f4-39f9-5adf-2cb7-03c9981b424e@selasky.org> <9C8C18F4-43BA-4F1E-B683-7BD5AC513C8C@gmail.com> <948CD3ED-F501-431F-BE66-3DD51A8C9EF5@gmail.com> To: Valery Seys , freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4MrlpT1c92z3q8T X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="m/2bSKfh"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of devesas.campos@gmail.com designates 2a00:1450:4864:20::42f as permitted sender) smtp.mailfrom=devesas.campos@gmail.com X-Spamd-Result: default: False [-3.44 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.941]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42f:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; TAGGED_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_CC(0.00)[gmail.com] X-ThisMailContainsUnwantedMimeParts: N 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 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 > 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 >> >> > >> wrote: >> > >> > Peeps, >> > >> > Have yet to receive any comments =E2=80=94 let alone = reviews =E2=80=94 on >> > >> > 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