From owner-freebsd-hardware@FreeBSD.ORG Sat Oct 13 09:52:02 2012 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F78F303 for ; Sat, 13 Oct 2012 09:52:02 +0000 (UTC) (envelope-from darcsis@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4AF698FC12 for ; Sat, 13 Oct 2012 09:52:02 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id bi1so3786991pad.13 for ; Sat, 13 Oct 2012 02:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:x-envelope-to :mail-followup-to:date:message-id:mime-version:content-type; bh=xUeib7GEujWJidQ6LsvjyCQufSNGP5qexzcLjoE6W0M=; b=xUzV6cOjacPJnmoxOm6nOpPFmvAGgNUXcwycqF1gmHN1Q2SPA8ORqEtsdtl397nNDf Hbf0WGu/QPxdVB0OFX9w9EjQhRBQGIWzRgFaFWBAWszbHU+tHuTzyi073t/I7rOJaWa3 EEgImaMnje8vlMZ6ttEm4nFk3AF9wyXr/IP3eRN2EQcDGLL8Mz/wBZCmPz8qObwPkSh8 Z/n2bWE3cI2xjwAoSXHLiT3mzaQ/Shd3xi4DYdVcVCPg79+vJwivgpyDP2pBMgiiq8LZ 1whJbspXdkX3bnfyJuNQsLbvuc5tg7CGY8vMCHi6VEhU5bJkx9Jyl6+cRp2HOMdfb86F djJQ== Received: by 10.66.78.198 with SMTP id d6mr17822283pax.61.1350121921109; Sat, 13 Oct 2012 02:52:01 -0700 (PDT) Received: from localhost ([125.34.64.49]) by mx.google.com with ESMTPS id sz4sm5830378pbc.22.2012.10.13.02.51.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Oct 2012 02:52:00 -0700 (PDT) From: darcsis@gmail.com (Denise H. G.) To: "Ronald F. Guilmette" Subject: Re: Audio out via HDMI... how? In-Reply-To: <32288.1349820665@tristatelogic.com> (Ronald F. Guilmette's message of "Tue, 09 Oct 2012 15:11:05 -0700") References: <32288.1349820665@tristatelogic.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) X-Envelope-To: rfg@tristatelogic.com Mail-Followup-To: "Ronald F. Guilmette" , freebsd-hardware@freebsd.org Date: Sat, 13 Oct 2012 17:51:48 +0800 Message-ID: <86txty3djf.fsf@venux.xbsd.name> MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-hardware@freebsd.org X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Oct 2012 09:52:02 -0000 On 2012/10/10 at 06:11, "Ronald F. Guilmette" wrote: > > [[ I didn't get much in the way of traction on this question over in > freebsd-questions, so I am posting it again here, in the hopes that > I will have more luck here. ]] > > > I have a laptop which has an HDMI output port. > > I can get _video_ out of that (with xbmc) just fine. Audio, not so much. > Like not at all, as far as I can tell. > > So anyway, here is what I get when I do "cat /dev/sndstat": > > pcm0: (play/rec) default > pcm1: (rec) > pcm2: (play) > > I have the HDMI output wired into my everything-capable Sony 5.1 channel > receiver, which then, in turn, is wired into my 4 (count 'em four) speakers. > > OK, so now, could somebody please just tell me how I can do a test > that will determine why I ain't gettin' no audio? (And by the way, > what I am *really* trying to do here is to run xbmc. But no audio > is coming out of that... at least not via the HDMI port... so I'm > stuck tying to dredge into this problem at a deeper level. Oddly, > when running xbmc on the laptop, there _is_ 2channel sound coming out > of the tinny little built-in speakers in the laptop.) > > So anyway... > > My intelligent HDMI-switching handles-everything receiver is capable > of decoding 5.1 DTS-HD, Dolby TrueHD, and eveything else too. The > receiver is working just fine.. not a thing wrong with it. It works > great with my Blu-Ray player and does the digital->analog decoding for > anything and everything I throw at it. > > Again, I just want to know: How does one go about TESTING audio output > via a laptop HDMI-out port? I tried these things (while the laptop's HDMI > port was wired to my receiver), but not a sound was heard: > > cat /dev/random > /dev/dsp > > cat /dev/random > /dev/dsp2 > > (Note that before I ever did this test I set hw.snd.default_unit=2.) > > The FreeBSD handbook page that deals with setiing up audio cards doesn't > provide a whole lot of guidance for how to test and/or fix digital audio > output, whether it is coming out via HDMI (as in my case) or via any other > kind of physical transport (e.g. coax or S/PDIF). > > Somwebody please pass me a clue. I'd really like to get this working. > Thanks. > > > Regards, > rfg > > > P.S. Even if I end up, in the end, downmixing all my audio to 2 channel, > in xbmc, before the audio even hits the HDMI cable, I could live with that. > Bu right now, as far as I can tell, I can't get _any_ kind of audio flowing > down that HDMI cable at all, period. I think you might take a look at those sysctl things. Just run: sysctl dev.hdaa to see what is comming out. Normally you can find in the output something like: dev.hdaa.X.nidY_config: ..... dev.hdaa.X.nidZ_config: ..... Some of which are labeled 'Speaker', some 'Headphones', and some 'Digital-out' which I guess is a HDMI output. The point is you have to associcate your 'Speaker' with 'HDMI' I think. That is to say, if your 'Speaker' has a configuration of 'as=1 seq=0', then your 'Digital-out' must have something like 'as=1 seq=15' or something. The numbers I just made up, you have to do them according to your machine output. This is just a FYI. Hope it would work for you.