Date: Sat, 7 Mar 2015 19:58:05 +0100 From: Milan Obuch <freebsd-arm@dino.sk> To: Oleksandr Tymoshenko <gonzo@bluezbox.com> Cc: freebsd-arm@freebsd.org Subject: Re: Raspberry Pi audio output Message-ID: <20150307195805.6650d408@zeta.dino.sk> In-Reply-To: <323C3582-8E9A-4112-8024-9D2B429EA55E@bluezbox.com> References: <20150306094919.29056f20@zeta.dino.sk> <323C3582-8E9A-4112-8024-9D2B429EA55E@bluezbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Mar 2015 13:18:29 -0800 Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote: >=20 > > On Mar 6, 2015, at 12:49 AM, Milan Obuch <freebsd-arm@dino.sk> > > wrote: > >=20 > > Hello, > >=20 > > there is pcm0 device on Raspberry Pi, sysctl dev.pcm shows > >=20 > > dev.pcm.%parent:=20 > > dev.pcm.0.%desc: VCHQI audio > > dev.pcm.0.%driver: pcm > > dev.pcm.0.%location:=20 > > dev.pcm.0.%pnpinfo:=20 > > dev.pcm.0.%parent: vchiq0 > > dev.pcm.0.play.vchans: 1 > > dev.pcm.0.play.vchanmode: fixed > > dev.pcm.0.play.vchanrate: 48000 > > dev.pcm.0.play.vchanformat: s16le:2.0 > > dev.pcm.0.buffersize: 0 > > dev.pcm.0.bitperfect: 0 > > dev.pcm.0.dest: 0 > >=20 > > In /dev directory, there are just midistat and sndstat devices, > > cat /dev/sndstat shows > >=20 > > Installed devices: > > pcm0: <VCHQI audio> (play) default > >=20 > > How can I use this device? I would like to check it and possibly > > use... Also, is it connected to 3.5 mm jack or do we have sound > > through HDMI? >=20 > It=E2=80=99s standard OSS interface, you can either access /dev/dsp0 dire= ctly > or use one of audio library (e.g. libao). To test it just install > mpg321 and try to play some mp3s. >=20 > Audio output is connected to both HDMI and 3.5mm jack and controlled > by dev.pcm.0.dest sysctl. Available values are: >=20 > 0 - auto. VideoCore decides where to direct audio output based on > current HDMI mode. > 1 - headphones, audio goes to 3.5mm jack > 2 - HDMI. Audio goes to HDMI display. Please note that not every HDMI > mode supports audio.=20 Thank you, yes, it works. I build audio/mp3blaster port, and tested it a bit. Also switching from HDMI to headphones works. Regards, Milan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150307195805.6650d408>