From owner-freebsd-drivers@FreeBSD.ORG Wed May 28 09:57:51 2014 Return-Path: Delivered-To: drivers@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 33AC799E; Wed, 28 May 2014 09:57:51 +0000 (UTC) Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 29181235D; Wed, 28 May 2014 09:57:49 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id mc6so7221132lab.16 for ; Wed, 28 May 2014 02:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b+8U2PmzX5vcD/K8DEu16mWukXlMEjxl5hTRmGvyOFY=; b=Yaz643poV/YlczmfcpfrfedHg7KR8m5YScy1ONSb2XwO5REfhxJ3i0csczeu0kZlVR 2XwoExBO3JgKNSRI7l8DvvuEqrCyQetHUowt6wthDLtqAa00FjVpO4pcnH24X7/k40kM d/aVsQ1HsItIownaR+molpSyQXd9PvRwx6OZTWeBb2bvnLIT0XQtBAzyHrL96vQl8R26 A0P2LCYCAw2WJYgeu8JWEyWDLX4uWqBv/WU7iafieqHglhIaHYA0ki4PQWOPxBkcrm2/ EIaIvllYV42dkqIbGdKyp+fl1VJNSDiM86yzChBwY9evsYf4o+f/MN1KuFoeWudwFJAM RkhA== MIME-Version: 1.0 X-Received: by 10.112.13.35 with SMTP id e3mr27514557lbc.44.1401271067673; Wed, 28 May 2014 02:57:47 -0700 (PDT) Received: by 10.112.224.3 with HTTP; Wed, 28 May 2014 02:57:47 -0700 (PDT) In-Reply-To: <4330793.VelBuH8Ztb@lumiwa.farms.net> References: <4330793.VelBuH8Ztb@lumiwa.farms.net> Date: Wed, 28 May 2014 17:57:47 +0800 Message-ID: Subject: Re: snd_hda doesn't automatic switch output between headphone and speaker on Macbook Pro 2012 From: suken woo To: lumiwa@gmail.com Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: freebsd-multimedia@freebsd.org, mobile@freebsd.org, multimedia@freebsd.org, drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2014 09:57:51 -0000 In my case the only way i can do is just change hw.snd.default_unit=4 if I gonna use headphone 2014-05-28 16:59 GMT+08:00 Ajtim : > On Wednesday 28 May 2014 16:22:42 suken woo wrote: > > hi all: > > just setting on /boot/loader.conf below > > > > hw.snd.default_unit="3" > > hint.hdaa.1.gpio_config="3=set" > > hint.hdaa.1.nid11.config="as=0" > > > > speaker works with very good sound quality.headphone have no sound but > > sounds still came out of speaker > > when I plug in earphones. > > if I set hint.hdaa.1.nid9.config="as=1" on loader.conf file > > sounds come out from both speaker and headphone. > > any trick to overwrite the pins configuration and make it works as > > expected? > > > > cat /dev/sndstat > > pcm0: (play) > > pcm1: (play) > > pcm2: (play) > > pcm3: (play) default > > pcm4: (play) > > pcm5: (play) > > > > I had the same problem on my iMc 11, about one year. > pcm0: (play) > pcm1: (play/rec) default > pcm2: (rec) > pcm3: (play/rec) > > And as I know is the problem with drivers. I gave up and I use headphones. > BTW: On Linux works without problems. > > -- > ajtiM > -------- > http://www.redbubble.com/people/lumiwa > -- --wsk