From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 31 14:11:21 2009 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 33405106568B for ; Sat, 31 Jan 2009 14:11:21 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [91.121.44.19]) by mx1.freebsd.org (Postfix) with ESMTP id EA4388FC08 for ; Sat, 31 Jan 2009 14:11:20 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from baby-jane.lamaiziere.net (67.158.192-77.rev.gaoland.net [77.192.158.67]) by smtp.lamaiziere.net (Postfix) with ESMTPA id 0A47E6332D9; Sat, 31 Jan 2009 15:11:20 +0100 (CET) Received: from baby-jane.lamaiziere.net (localhost [127.0.0.1]) by baby-jane.lamaiziere.net (Postfix) with ESMTP id 1518AC3A6; Sat, 31 Jan 2009 15:11:18 +0100 (CET) Date: Sat, 31 Jan 2009 15:11:17 +0100 From: Patrick =?ISO-8859-15?Q?Lamaizi=E8re?= To: Alexander Motin Message-ID: <20090131151117.0820a27f@baby-jane.lamaiziere.net> In-Reply-To: <49840E58.9050303@mavhome.dp.ua> References: <1233372205.00068713.1233358803@10.7.7.3> <49840E58.9050303@mavhome.dp.ua> Organization: /dave/nulle X-Mailer: Claws Mail 3.7.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: [snd_hda] Sound problem on Macbook pro model 3.1 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: Sat, 31 Jan 2009 14:11:21 -0000 Le Sat, 31 Jan 2009 10:39:52 +0200, Alexander Motin : Hello, > > Now when i plug a headphone, the sound from the speaker is > > muted but i don't hear sound in the headphone. There is some sound > > but the level is very very very low. > > > > I think i have to add a ovref quirk somewhere or another quirk, but > > a quirk > > hint.hdac.0.config="gpio0 ovref" does not seem to do anything: > > > > hdac0: FG config/quirks: gpio0 forcestereo ivref50 ivref80 ivref100 > > ivref > > > > Why ovref is not listed? How to add a quirk 'ovref' or 'eapdinv', > > there is no example in the man page? > > There was a bug in this string parsing which I have just fixed in > CURRENT. Ok, with the new version of hdac.c I've got: hdac0: FG config/quirks: gpio0 forcestereo ivref50 ivref80 ivref100 ovref50 ovref80 ovref100 ivref ovref vref And it works, thanks! \o/ > eapdinv will be ineffective for this codec, as there is no > EAPD controls reported by it. Actually I have never seen that ovref > do something, but you may try it, Linux seems doing it for several > macbooks. I must use ovref here. For the record I use in /boot/device.hints: hint.hdac.0.config="gpio0 ovref" hint.hdac.0.cad0.nid21.config="as=4 seq=15" Now the speaker and the headphone work fine, but I've not tested the microphone and the line in/out. > > Any help will be very welcome, thanks. > > If you are not doing redirection, but instead just playing to > headphones via different pcm device, does they work fine? No, I've tried all the PCM devices (forget to say, oops). That's not a real problem, but the driver does not use coherent numbers for the associations. By instance for the quirk hint.hdac.0.cad0.nid21.config="as=4 seq=15", it displays hdac0: Enabling headphone/speaker audio routing switching: hdac0: as=3 sense nid=21 [UNSOL] Why "as=3" instead "as=4"? Anyway that's work fine, thanks a lot. Regards.