From owner-freebsd-questions@FreeBSD.ORG Mon Feb 10 20:54:47 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 63609B5E for ; Mon, 10 Feb 2014 20:54:47 +0000 (UTC) Received: from mout.web.de (mout.web.de [212.227.15.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0E346184A for ; Mon, 10 Feb 2014 20:54:46 +0000 (UTC) Received: from macmini.ror.de ([91.47.94.195]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0MMFB7-1W7A380htV-0086GF for ; Mon, 10 Feb 2014 21:54:39 +0100 Received: by macmini.ror.de (Postfix, from userid 1001) id D0C3F4E624; Mon, 10 Feb 2014 21:54:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by macmini.ror.de (Postfix) with ESMTP id C68824E622; Mon, 10 Feb 2014 21:54:24 +0100 (CET) Date: Mon, 10 Feb 2014 21:54:24 +0100 (CET) From: Volker Nebel X-X-Sender: volker@macmini.ror.de To: Ajtim Subject: Re: No sound on Macmini with FreeBSD 10 In-Reply-To: <1482573.eBeQ4SjVDB@lumiwa.farms.net> Message-ID: References: <1482573.eBeQ4SjVDB@lumiwa.farms.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Provags-ID: V03:K0:VrnexqGLJ9X+hLOLYvOpidKFo8gCn8bZSW6SRLNIpHm77Y0Ezbi I0x4wITfW43lHIPxG46FPSfVmLqZxekhcl29x5gl0GMqNVUSur8p29lnQyrsVm1ejScmq8n UM8nVbVBRxVifgUetNLgi1ClFFgME6P/fg5qZg5WrVf9xZ1jlx1MH+N6csmTNagZNIqsW7v xDxOvhMvYFQM23uTIoOJA== Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 20:54:47 -0000 On Mon, 27 Jan 2014, Ajtim wrote: > On Monday 27 January 2014 21:56:34 Volker Nebel wrote: >> Good morning! >> >> Since a few days my Macmini 6.1 is running on FreeBSD 10.0 (yeah, and >> FreeBSD alone)! Unfortunately, it does not (yet) produce any sound, and I >> really need help on this. I followed the handbook and it looks like, >> driver snd_hda is used. [CMD=" "]dmesg | grep hda[/CMD] gives the output >> shown below. Soundcard seems to be Cirrus Logic CS4206. >> I tried the following steps: >> - Find a specific driver for this sound card: Nothing. >> - Turn volume up with [CMD=" "]mixer pcm 100 vol 100[/CMD]. Still nothing >> to hear. >> - Change the value of hw.snd.default_unit to 0,1,2. No effect. >> Has anybody a good idea how to proceed? >> Don't know, whether the following is relevant: [CMD=" "]kldload >> snd_driver[/CMD] gives 6 times "ppc0: cannot reserve I/O port range". When >> booting, I get this message once. >> >> Best regards, >> Volker >> >> >> dmseg | grep hda gives: >> >> hdac0: mem 0xa0710000-0xa0713fff irq 22 at device 27.0 on pci0 >> hdacc0: at cad 0 on hdac0 >> hdaa0: at nid 1 on hdacc0 >> pcm0: at nid 11 and 12 on hdaa0 >> pcm1: at nid 16 and 15 on hdaa0 >> pcm2: at nid 10 on hdaa0 >> hdacc1: at cad 3 on hdac0 >> hdaa1: at nid 1 on hdacc1 >> hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (6) in association 1! Disabling association. >> hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (7) in association 1! Disabling association. >> hdac0: mem 0xa0710000-0xa0713fff irq 22 at device 27.0 on pci0 >> hdacc0: at cad 0 on hdac0 >> hdaa0: at nid 1 on hdacc0 >> pcm0: at nid 11 and 12 on hdaa0 >> pcm1: at nid 16 and 15 on hdaa0 >> pcm2: at nid 10 on hdaa0 >> hdacc1: at cad 3 on hdac0 >> hdaa1: at nid 1 on hdacc1 >> hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (6) in association 1! Disabling association. >> hdaa1: hdaa_audio_as_parse: Duplicate pin 0 (7) in association 1! Disabling association. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > I don't know if will help you but anyway > I have iMac 11,1 and: > cat /dev/sndstat > Installed devices: > pcm0: (play) > pcm1: (play/rec) default > pcm2: (rec) > pcm3: (play/rec > > I did play with hint and on my computer works: > /boot/loader,conf: > hint.hdaa.1.gpio_config="3=set" > hint.hdaa.1.nid9.config="as=4 seq=15" > > After the first one I got sound through internal speakers but not headphones. Than I add the second one and I got sound through headphones but at the same time as through speakers. > > I hope that will help you too. > Dear Ajtim, thank you for the hints! The example in the man page for snd_hda and [CMD]sysctl dev.hdac.0.pindump=1[/CMD] helped me understand the logic how to address the outputs and inputs. Really getting a sound required some testing with dev.hdaa.0.gpio_config. Now my /boot/loader.conf has: hint.hdaa.0.nid10.config="as=2 seq=15" hint.hdaa.0.nid11.config="as=2 seq=0" hint.hdaa.0.nid12.config="as=1" hint.hdaa.0.nid15.config="as=4" hint.hdaa.0.gpio_config="1=set 3=set" Best regards, Volker