From owner-freebsd-arm@FreeBSD.ORG Sat Mar 7 18:58:17 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9060F1CB for ; Sat, 7 Mar 2015 18:58:17 +0000 (UTC) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2544677B for ; Sat, 7 Mar 2015 18:58:16 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Sat, 07 Mar 2015 19:58:06 +0100 id 00DCAA2C.54FB4A3E.0000D9F8 Date: Sat, 7 Mar 2015 19:58:05 +0100 From: Milan Obuch To: Oleksandr Tymoshenko 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> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2015 18:58:17 -0000 On Fri, 6 Mar 2015 13:18:29 -0800 Oleksandr Tymoshenko wrote: >=20 > > On Mar 6, 2015, at 12:49 AM, Milan Obuch > > 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: (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