Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Feb 2022 09:49:10 +0100 (CET)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        Marco Devesas Campos <devesas.campos@gmail.com>, freebsd-arm@freebsd.org
Subject:   Re: [PATCH] Experimental vchiq and bcm2835_audio support for arm64
Message-ID:  <106195874.50.1644310150579@localhost>
In-Reply-To: <48190d6a-fc5d-7da9-ddfd-fded48d429db@klop.ws>
References:  <A0775CDC-7382-4A15-8131-482572032308@gmail.com> <a02d8dd2-020a-3125-3418-08f0a069aa5e@klop.ws> <8EC05647-00D9-455B-98A9-B83A33DDFC5D@gmail.com> <48190d6a-fc5d-7da9-ddfd-fded48d429db@klop.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_49_814679107.1644310150512
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

=20
Van: Ronald Klop <ronald-lists@klop.ws>
Datum: maandag, 7 februari 2022 21:05
Aan: Marco Devesas Campos <devesas.campos@gmail.com>, freebsd-arm@freebsd.o=
rg
Onderwerp: Re: [PATCH] Experimental vchiq and bcm2835_audio support for arm=
64
>=20
> On 2/6/22 14:46, Marco Devesas Campos wrote:
> > Hi Ronald,
> >
> > Thanks so much for trying out the patch out.
> >
> >> On 6 Feb 2022, at 13:05, Ronald Klop <ronald-lists@klop.ws> wrote:
> >>
> >> Hi,
> >>
> >> I compiled this on a RPI4 + 14-CURRENT. It boots, but I see no differe=
nce in available devices.
> >> I can try to boot it on a RPI3B+ on another time.
> >
> > I *think* the GPU/VC in RPI-4 is a very different beast from the others=
. I'll
> > look into it, but if you could give it a try on the 3+ I'd be much obli=
ged.
> >
> >>
> >> What would be the expected outcome? Where should I look at (or listen =
to)?
> >>
> >
> > You should see something like
> >
> >    vchiq0: <BCM2835 VCHIQ> mem 0x7e00b840-0x7e00b87b irq 54 on simplebu=
s0
> >    vchiq: local ver 8 (min 3), remote ver 8.
> >    pcm0: <VCHIQ audio> on vchiq0
> >
> > in your dmesg output.
> >
> > The file /dev/vchiq should exist, as well as the following sysctl-s (I'=
m
> > assuming no other audio devices are attached)
> >
> >    % sysctl dev.pcm
> >    dev.pcm.0.trace: 0
> >    ...
> >    dev.pcm.0.dest: 0
> >    ...
> >    dev.pcm.0.%parent: vchiq0
> >    ...
> >    dev.pcm.0.%driver: pcm
> >    dev.pcm.0.%desc: VCHIQ audio
> >    =E2=80=A6
> >
> > Then if you `cat < /dev/random > /dev/dsp` you should hear some static =
coming
> > out of whatever is connected to hdmi (maybe headphones too? otherwise t=
ry
> > setting `sysctl dev.pcm.0.dest=3D1`)
> >
> > Best,
> > Marco
>=20
>=20
> Hi,
>=20
> Booted the patched 14-CURRENT on the RPI3B+.
>=20
> dmesg diff:
> +vchiq0: <BCM2835 VCHIQ> mem 0x7e00b840-0x7e00b87b irq 54 on simplebus0
> +vchiq: local ver 8 (min 3), remote ver 8.
> +pcm0: <VCHIQ audio> on vchiq0
>=20
> [root@rpi3 ~]# cat /dev/sndstat
> Installed devices:
> pcm0: <VCHIQ audio> (play) default
> No devices installed from userspace.
>=20
> [root@rpi3 ~]# sysctl dev.pcm
> dev.pcm.0.trace: 0
> dev.pcm.0.starved: 0
> dev.pcm.0.freebuffer: 40000
> dev.pcm.0.underruns: 0
> dev.pcm.0.retrieved: 0
> dev.pcm.0.submitted: 0
> dev.pcm.0.callbacks: 0
> dev.pcm.0.dest: 0
> dev.pcm.0.mode: 3
> dev.pcm.0.bitperfect: 0
> dev.pcm.0.buffersize: 0
> dev.pcm.0.play.vchanformat: s16le:2.0
> dev.pcm.0.play.vchanrate: 48000
> dev.pcm.0.play.vchanmode: fixed
> dev.pcm.0.play.vchans: 1
> dev.pcm.0.%parent: vchiq0
> dev.pcm.0.%pnpinfo:
> dev.pcm.0.%location:
> dev.pcm.0.%driver: pcm
> dev.pcm.0.%desc: VCHIQ audio
> dev.pcm.%parent:
>=20
>=20
> To play some audio I need to search some headphones first. :-)
>=20
> Ronald.
> =20
>=20
>=20
>=20


Good morning,

Found headphones with a cable on the attic. Plugged it into the audio jack =
and played an mp3. Amazing!

Regards,
Ronald.
=20
------=_Part_49_814679107.1644310150512
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body>&nbsp;
<p><strong>Van:</strong> Ronald Klop &lt;ronald-lists@klop.ws&gt;<br />
<strong>Datum:</strong> maandag, 7 februari 2022 21:05<br />
<strong>Aan:</strong> Marco Devesas Campos &lt;devesas.campos@gmail.com&gt;=
, freebsd-arm@freebsd.org<br />
<strong>Onderwerp:</strong> Re: [PATCH] Experimental vchiq and bcm2835_audi=
o support for arm64</p>

<blockquote style=3D"padding-right: 0px; padding-left: 5px; margin-left: 5p=
x; border-left: #000000 2px solid; margin-right: 0px">
<div class=3D"MessageRFC822Viewer" id=3D"P">
<div class=3D"TextPlainViewer" id=3D"P.P">On 2/6/22 14:46, Marco Devesas Ca=
mpos wrote:<br />
&gt; Hi Ronald,<br />
&gt;<br />
&gt; Thanks so much for trying out the patch out.<br />
&gt;<br />
&gt;&gt; On 6 Feb 2022, at 13:05, Ronald Klop &lt;ronald-lists@klop.ws&gt; =
wrote:<br />
&gt;&gt;<br />
&gt;&gt; Hi,<br />
&gt;&gt;<br />
&gt;&gt; I compiled this on a RPI4 + 14-CURRENT. It boots, but I see no dif=
ference in available devices.<br />
&gt;&gt; I can try to boot it on a RPI3B+ on another time.<br />
&gt;<br />
&gt; I *think* the GPU/VC in RPI-4 is a very different beast from the other=
s. I'll<br />
&gt; look into it, but if you could give it a try on the 3+ I'd be much obl=
iged.<br />
&gt;<br />
&gt;&gt;<br />
&gt;&gt; What would be the expected outcome? Where should I look at (or lis=
ten to)?<br />
&gt;&gt;<br />
&gt;<br />
&gt; You should see something like<br />
&gt;<br />
&gt; &nbsp;&nbsp;&nbsp;vchiq0: &lt;BCM2835 VCHIQ&gt; mem 0x7e00b840-0x7e00b=
87b irq 54 on simplebus0<br />
&gt; &nbsp;&nbsp;&nbsp;vchiq: local ver 8 (min 3), remote ver 8.<br />
&gt; &nbsp;&nbsp;&nbsp;pcm0: &lt;VCHIQ audio&gt; on vchiq0<br />
&gt;<br />
&gt; in your dmesg output.<br />
&gt;<br />
&gt; The file /dev/vchiq should exist, as well as the following sysctl-s (I=
'm<br />
&gt; assuming no other audio devices are attached)<br />
&gt;<br />
&gt; &nbsp;&nbsp;&nbsp;% sysctl dev.pcm<br />
&gt; &nbsp;&nbsp;&nbsp;dev.pcm.0.trace: 0<br />
&gt; &nbsp;&nbsp;&nbsp;...<br />
&gt; &nbsp;&nbsp;&nbsp;dev.pcm.0.dest: 0<br />
&gt; &nbsp;&nbsp;&nbsp;...<br />
&gt; &nbsp;&nbsp;&nbsp;dev.pcm.0.%parent: vchiq0<br />
&gt; &nbsp;&nbsp;&nbsp;...<br />
&gt; &nbsp;&nbsp;&nbsp;dev.pcm.0.%driver: pcm<br />
&gt; &nbsp;&nbsp;&nbsp;dev.pcm.0.%desc: VCHIQ audio<br />
&gt; &nbsp;&nbsp;&nbsp;=E2=80=A6<br />
&gt;<br />
&gt; Then if you `cat &lt; /dev/random &gt; /dev/dsp` you should hear some =
static coming<br />
&gt; out of whatever is connected to hdmi (maybe headphones too? otherwise =
try<br />
&gt; setting `sysctl dev.pcm.0.dest=3D1`)<br />
&gt;<br />
&gt; Best,<br />
&gt; Marco<br />
<br />
<br />
Hi,<br />
<br />
Booted the patched 14-CURRENT on the RPI3B+.<br />
<br />
dmesg diff:<br />
+vchiq0: &lt;BCM2835 VCHIQ&gt; mem 0x7e00b840-0x7e00b87b irq 54 on simplebu=
s0<br />
+vchiq: local ver 8 (min 3), remote ver 8.<br />
+pcm0: &lt;VCHIQ audio&gt; on vchiq0<br />
<br />
[root@rpi3 ~]# cat /dev/sndstat<br />
Installed devices:<br />
pcm0: &lt;VCHIQ audio&gt; (play) default<br />
No devices installed from userspace.<br />
<br />
[root@rpi3 ~]# sysctl dev.pcm<br />
dev.pcm.0.trace: 0<br />
dev.pcm.0.starved: 0<br />
dev.pcm.0.freebuffer: 40000<br />
dev.pcm.0.underruns: 0<br />
dev.pcm.0.retrieved: 0<br />
dev.pcm.0.submitted: 0<br />
dev.pcm.0.callbacks: 0<br />
dev.pcm.0.dest: 0<br />
dev.pcm.0.mode: 3<br />
dev.pcm.0.bitperfect: 0<br />
dev.pcm.0.buffersize: 0<br />
dev.pcm.0.play.vchanformat: s16le:2.0<br />
dev.pcm.0.play.vchanrate: 48000<br />
dev.pcm.0.play.vchanmode: fixed<br />
dev.pcm.0.play.vchans: 1<br />
dev.pcm.0.%parent: vchiq0<br />
dev.pcm.0.%pnpinfo:<br />
dev.pcm.0.%location:<br />
dev.pcm.0.%driver: pcm<br />
dev.pcm.0.%desc: VCHIQ audio<br />
dev.pcm.%parent:<br />
<br />
<br />
To play some audio I need to search some headphones first. :-)<br />
<br />
Ronald.<br />
&nbsp;</div>

<hr /></div>
</blockquote>
<br />
<br />
Good morning,<br />
<br />
Found headphones with a cable on the attic. Plugged it into the audio jack =
and played an mp3. Amazing!<br />
<br />
Regards,<br />
Ronald.<br />
&nbsp;</body></html>
------=_Part_49_814679107.1644310150512--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?106195874.50.1644310150579>