From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 9 09:32:49 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7DEB1065670 for ; Tue, 9 Sep 2008 09:32:49 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3A4F18FC17 for ; Tue, 9 Sep 2008 09:32:48 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from orphanage.alkar.net (account mav@alkar.net [212.86.226.11] verified) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 220392800; Tue, 09 Sep 2008 12:32:48 +0300 Message-ID: <48C642BF.9030604@FreeBSD.org> Date: Tue, 09 Sep 2008 12:32:47 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.14 (X11/20080612) MIME-Version: 1.0 To: hartzell@alerce.com References: <18628.22210.414995.987246@almost.alerce.com> <863akbq9y4.fsf@gmail.com> <18629.62972.243803.679154@almost.alerce.com> In-Reply-To: <18629.62972.243803.679154@almost.alerce.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: swell.k@gmail.com, freebsd-multimedia@freebsd.org Subject: Re: help understanding sound/snd_hda on mac pro w/ -STABLE. X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2008 09:32:49 -0000 George Hartzell wrote: > swell.k@gmail.com writes: > > George Hartzell writes: > > > > [...] > > > An even simpler question would be, how can I test the other pcm > > > devices? > > > > If you look closely at /dev/sndstat output you'll notice there is > > `default' keyword on one of the pcm's. To change it you have to > > set hw.snd.default_unit accordingly. It's documented in sound(4). > > Next time you'll run mpg123 it will use different /dev/dsp. > > bingo, at least a little bit with Alexander's 20080905 patch. > > With hint.hdac.0.config="gpio1" in /boot/device.hints and > hw.snd.default_unit="2" I can use mpg123 to play sound out of the > line-out jack in the back of the unit. > > I've tried combinations of gpio0, gpio1, gpio2 and default_unit's of > 0,1,2,3 and can't get sound out of the headphone jack on the front of > the machine. > > Thanks for the patch and the help understanding what's going on! As I see from 20080812 dmesg output - it routes all output pins to the same DAC. It was surely a bug, so it was fixed in next version. The only case to use same DAC is Headphone redirection. I don't see any reason why playing via dsp0/1/2/3 should not play via all of your connectors. Try to play more with GPIOs and make sure to set all control to 100% in all your mixers (/dev/mixer0/1/2/3). This codec supports -64/+0dB volume control range and even pcm=75 and vol=75 may be too quiet for it as driver uses logarithmic scale of the codec. -- Alexander Motin