From owner-freebsd-multimedia@FreeBSD.ORG Fri Dec 25 20:36:12 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 591EC106566C for ; Fri, 25 Dec 2009 20:36:12 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id DC85A8FC12 for ; Fri, 25 Dec 2009 20:36:11 +0000 (UTC) Received: by fxm27 with SMTP id 27so8971533fxm.3 for ; Fri, 25 Dec 2009 12:36:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=GzSgTS9PBzO5sioZtBmu8cpgHEUWaPeXCD8O97riM6U=; b=G+Qx6Ycs6mDPVp+sXYKS+PEtGjmuAA24Ned/if1XJKfBbToFWJ5rc/ssu1KjJ0IXi2 gbfmvEAtG02MpwLqQANBaPgX2LgZ1wD1HDmil4plgkGI4uxFzF6zsL4oUjH+RY8s/t6j C5DecwNkMdelwcN/qj0cTROg5SIyrvjgCHoM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=DumzdLfGDXyllM08gzRHhsy278/nCWxwEdbYfxBDJ4sm1ih0XPNRO7KqJqhpBzXoUn oInDRg/JtmIhKamwI2t086N1jUEz9WJKIiDfiNPAXWhjq/LzAPCfXrdLDy52TPnDl09g uPSzC82QsTFOwGYdnB88WG63lWX//Kgs8ABZg= Received: by 10.223.19.200 with SMTP id c8mr4380920fab.55.1261773370532; Fri, 25 Dec 2009 12:36:10 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm3267918fxm.14.2009.12.25.12.36.09 (version=SSLv3 cipher=RC4-MD5); Fri, 25 Dec 2009 12:36:09 -0800 (PST) Sender: Alexander Motin Message-ID: <4B352239.8060509@FreeBSD.org> Date: Fri, 25 Dec 2009 22:36:09 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Yasir Khalid References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: snd_hda: no sound at all. 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: Fri, 25 Dec 2009 20:36:12 -0000 Yasir Khalid wrote: > hdac0: GPIO: 0x40000004 NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 This codec has 4 GPIO pins. In different systems they gave different meaning. In laptops they are often control external amplifiers an muters, so if not configured properly they may block the sound. You should try to set all 16 combinations of them with hint.hdac.0.config loader tunable. > hdac0: 3 associations found: > hdac0: Association 0 (1) out: > hdac0: Pin nid=20 seq=0 > hdac0: Pin nid=21 seq=15 > hdac0: Association 1 (2) out: > hdac0: Pin nid=30 seq=0 > hdac0: Association 2 (3) in: > hdac0: Pin nid=24 seq=0 > hdac0: Pin nid=25 seq=1 > hdac0: Tracing association 0 (1) > hdac0: Pin 20 traced to DAC 2 > hdac0: Pin 21 traced to DAC 2 and hpredir 0 > hdac0: Association 0 (1) trace succeeded > hdac0: Tracing association 1 (2) > hdac0: Pin 30 traced to DAC 6 > hdac0: Association 1 (2) trace succeeded > hdac0: Tracing association 2 (3) > hdac0: Pin 24 traced to ADC 7 > hdac0: Pin 25 traced to ADC 7 > hdac0: Association 2 (3) trace succeeded > hdac0: Tracing input monitor > hdac0: Tracing nid 11 to out > hdac0: nid 11 is input monitor > hdac0: Tracing nid 36 to out > hdac0: Tracing beeper > hdac0: nid 29 traced to out > hdac0: Enabling headphone/speaker audio routing switching: > hdac0: as=0 sense nid=21 [UNSOL] > hdac0: Pin sense: nid=21 res=0x00000000 Looking on this > When i _*do plug*_ an earphone i received message in dmesg like this > hdac0: Unsol Tag: 0x00000000 > hdac0: Pin sense: nid=21 res=0x80000000 > When _*I do unplug*_ > hdac0: Unsol Tag: 0x00000000 > hdac0: Pin sense: nid=21 res=0x00000000 and this I would say that codec detected properly. > And for your information, I am using laptop, which is having 2 jacks, > speaker and mic at front, see here for the picture > According to codec configuration you should have digital output somewhere also. May be front connector is somehow dual-functional and so it lights when you play via digital output device. May be switching is also controller by GPIOs. -- Alexander Motin