From owner-freebsd-current@FreeBSD.ORG Sat Jan 14 22:32:04 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A36E106564A; Sat, 14 Jan 2012 22:32:04 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id B42248FC14; Sat, 14 Jan 2012 22:32:03 +0000 (UTC) Received: by eaai10 with SMTP id i10so55632eaa.13 for ; Sat, 14 Jan 2012 14:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/5M07B8V/yj/VxXCQW7PDRfl+qda3DvaSBXS/PFQRSw=; b=OpVhoIXLtKD7HofiIpivtEce6Lt4HwnOTGNXfAQ0CQqthX6Xj1XaZeVesszbv3kFhp G3Zz8dEMmeG/liPseNnK23D0trf9+uePhXckL7+Ghw0ANBo3pUxkyPCM8TIKvWQR/U3o suADYFn+ZxYuGqg9hDWkH0u8/6s4+egVZNoFw= Received: by 10.213.8.70 with SMTP id g6mr1824046ebg.46.1326580322206; Sat, 14 Jan 2012 14:32:02 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id y12sm49680574eeb.11.2012.01.14.14.32.00 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 14:32:01 -0800 (PST) Sender: Alexander Motin Message-ID: <4F120257.6040306@FreeBSD.org> Date: Sun, 15 Jan 2012 00:31:51 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111112 Thunderbird/8.0 MIME-Version: 1.0 To: Steve Kargl References: <4F0DE3FD.2020203@FreeBSD.org> <20120112115220.1c32b3e2@ernst.jennejohn.org> <4F0EC17B.8040908@FreeBSD.org> <20120114212553.GA18574@troutmask.apl.washington.edu> <4F11F61F.7070301@FreeBSD.org> <20120114221031.GA18816@troutmask.apl.washington.edu> In-Reply-To: <20120114221031.GA18816@troutmask.apl.washington.edu> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 22:32:04 -0000 On 15.01.2012 00:10, Steve Kargl wrote: > On Sat, Jan 14, 2012 at 11:39:43PM +0200, Alexander Motin wrote: >> On 14.01.2012 23:25, Steve Kargl wrote: >>> On Thu, Jan 12, 2012 at 01:18:19PM +0200, Alexander Motin wrote: >>>> >>>> That is probably because of $FreeBSD$ macro resolution. Here is version >>>> with present value from 10-CURRENT SVN (sources from CVS or STABLE will >>>> need that patch line modified respectively) and some minor additional >>>> improvements like CODEC ODs and some more sysctls: >>>> http://people.freebsd.org/~mav/hda.rewrite2.patch >>>> >>> >>> Patch applied cleanly. >>> Patch does not fix http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/120780 >>> >>> Putting a dvd into the dvd drive. Executing 'mplayer dvd://', the >>> movie starts and sound comes from both the speakers and headphones. >> >> You mean that speakers are not disabled when headphones are plugged in? > > No. I mean that sound is available from either the speakers > (ie, no headphones) or from the headphones (ie no sound > from speakers). That is, this is working as expected. > >> In PR you've written that no sound goes from speakers, but here tell >> opposite. What is right? > > If the medium is a DVD, sound works. If the medium is a music CD, > then sound does not work. Audio from DVDs always played by software after reading if from the disk as usual data. Audio CDs instead could be played either by the CD drive itself via analog audio connection or by software using digital audio extraction (reading from the disk). >>> Remove dvd insert music cd in drive, 'cdcontrol play'. The >>> drive is reading the cd and 'cdcontrol status' indicates >>> that it is playing. No sound. >> >> Most likely analog audio output of your CD is not connected to the >> CODEC. At least there are no CODEC pin configured for it. You may try to >> configure different pins manually, but if there is no electrical >> connection... > > Works with MS Windows XP. Put music CD into drive. Fire up > MediaPlayer and sound works. So, I would assume that there > is an electrical connection. I think no. Windows Media Player is able to play Audio CDs via digital audio extraction. 'cdcontrol play' just commands drive to play Audio CD. To play Audio CD via digital audio extraction use 'mplayer cdda://'. > So, how does one manually configure the pins? Read man snd_hda, try, try, try, ... But most likely it is just not implemented in hardware. >>> Verbose dmesg.txt and 'sysctl -a | grep {hda,snd,pcm}> {hda,snd,pcm.txt}' >>> available at http://troutmask.apl.washington.edu/~kargl/hda/ -- Alexander Motin