From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 3412 invoked from network); 25 Apr 2021 22:45:02 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 25 Apr 2021 22:45:02 -0000 Received: from mout01.posteo.de ([185.67.36.65]) by 1ess; Sun Apr 25 18:40:06 -0400 2021 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9E0E3240027 for <9front@9front.org>; Mon, 26 Apr 2021 00:39:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619390397; bh=kaB7YTL0EoDoFogvlVkzgKbw0MF1e6EsDogk4KFBEKQ=; h=To:Subject:From:Date:From; b=fZHwgbt0O6P+scvznUx2LCHWFmHh2ufbdkYDaHcpWoNwdiyx73SKYpywQGFPQSiUu 7B1U2EeRlAzk/sOfaON4ZGaqqNw6IDCkveW9fP+dPJFw2PRqYIwBJYAv7MTYU3//jG xDcuxnemtgrAnSA6STMlmugJYiRNJkU0SNQFttjK6SYoHzYI4EFB6cvim/OybISsnj aPum9JFAOIRmTGQUW/Wy9azdAjZagqU1B5e21XIiBPixGYjm6HLZ8HkhPAQiQx2NHy egZ6obiqSFWPB0rAgWf2Zyf4Gq0GoZ9/Ur1tKt0+rJcAzEoq6sJd7Iyi3Y7AJue6fK lkNbtOYE9bEwA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FT2z04qLgz9rxD; Mon, 26 Apr 2021 00:39:56 +0200 (CEST) Message-ID: <09DE236CE114658955B1874482660617@posteo.net> Content-Type: text/plain; charset="UTF-8" To: 9front@9front.org From: "chötrin." Date: Sun, 25 Apr 2021 22:37:53 +0000 In-Reply-To: <0C73F8031AC040C9C98E26332A9A4D2B@felloff.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: extension cloud Subject: Re: [9front] Getting Started with Kernel Development? Reply-To: 9front@9front.org Precedence: bulk Quoth cinap_lenrek@felloff.net: > As far as i know, the stock raspberry pi is not using I2S. I've run Raspbian on another RPi and used the onboard sound with it, but not sure about how it's handled under the hood. I *suspect* it's using I2S. At least, that's what it looks like from this ALSA driver source: https://github.com/raspberrypi/linux/blob/rpi-5.10.y/sound/soc/bcm/bcm283= 5-i2s.c There's some discussion on the RPi forums that hints at how the onboard sound works: https://www.raspberrypi.org/forums/viewtopic.php?t=3D59823 And the BCM spec I mentioned is here (warning: huge PDF): https://cs140e.sergio.bz/docs/BCM2837-ARM-Peripherals.pdf The relevant parts start on page 119. Apparently the register base address moved between BCM2835 and BCM2837. Anyway, this may be a fool's errand to get working-- you could very well be correct that they're doing some really janky stuff between the Broadcom chip and the audio out pins. I haven't dug deep enough to stare at any schematics or anything like that yet. Still, I'd like to give it a go. I'd like to dig into the guts of Plan 9 and I'd like to get audio working without tacking on an external DAC (although, that'd probably sound WAY better). I'm *thinking* that I'll use some external thumbdrive or be dropping stuff into the RPi's FAT partition depending on how accessible the bitbanging is from userspace. I'm new to Plan 9, so I'm probably pretty far off the mark. Quoth cinap_lenrek@felloff.net: > The GPU has firmware code to drive that GPIO pin and also send > audio over HDMI, but todo that you have to talk to the videocore > firmware thru a complicated software media streaming interface. Oh yeah, I saw that, also. I think I'll pass on trying to do that for the time being. :^) ch=C3=B6trin.