From owner-freebsd-arm@FreeBSD.ORG Fri Mar 6 21:19:14 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0C520A5E for ; Fri, 6 Mar 2015 21:19:14 +0000 (UTC) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A41FF341 for ; Fri, 6 Mar 2015 21:19:13 +0000 (UTC) Received: from [208.184.220.60] (helo=macbook-air-2.dolby.net) by id.bluezbox.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1YTze9-0008t2-9A; Fri, 06 Mar 2015 13:19:04 -0800 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: Raspberry Pi audio output From: Oleksandr Tymoshenko In-Reply-To: <20150306094919.29056f20@zeta.dino.sk> Date: Fri, 6 Mar 2015 13:18:29 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <323C3582-8E9A-4112-8024-9D2B429EA55E@bluezbox.com> References: <20150306094919.29056f20@zeta.dino.sk> To: Milan Obuch X-Mailer: Apple Mail (2.2070.6) Sender: gonzo@id.bluezbox.com X-Spam-Level: + X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: > On Mar 6, 2015, at 12:49 AM, Milan Obuch wrote: > > Hello, > > there is pcm0 device on Raspberry Pi, sysctl dev.pcm shows > > dev.pcm.%parent: > dev.pcm.0.%desc: VCHQI audio > dev.pcm.0.%driver: pcm > dev.pcm.0.%location: > dev.pcm.0.%pnpinfo: > 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 > > In /dev directory, there are just midistat and sndstat devices, > cat /dev/sndstat shows > > Installed devices: > pcm0: (play) default > > 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? [...] Content analysis details: (1.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 2.7 DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: dino.sk] -0.0 BAYES_20 BODY: Bayes spam probability is 5 to 20% [score: 0.1281] Cc: "freebsd-arm@freebsd.org List" 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: Fri, 06 Mar 2015 21:19:14 -0000 > 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? It=E2=80=99s standard OSS interface, you can either access /dev/dsp0 = directly or use one of audio library (e.g. libao). To test it just install mpg321 and = try to=20 play some mp3s. Audio output is connected to both HDMI and 3.5mm jack and controlled by dev.pcm.0.dest sysctl. Available values are: 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=