From owner-freebsd-i386@FreeBSD.ORG Mon May 28 20:10:04 2007 Return-Path: X-Original-To: freebsd-i386@hub.freebsd.org Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFB6016A46E for ; Mon, 28 May 2007 20:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id A21C413C489 for ; Mon, 28 May 2007 20:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4SKA4rl037056 for ; Mon, 28 May 2007 20:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4SKA48p037055; Mon, 28 May 2007 20:10:04 GMT (envelope-from gnats) Resent-Date: Mon, 28 May 2007 20:10:04 GMT Resent-Message-Id: <200705282010.l4SKA48p037055@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Konrad Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A04B316A53D for ; Mon, 28 May 2007 20:04:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9104113C457 for ; Mon, 28 May 2007 20:04:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4SK4FSh062795 for ; Mon, 28 May 2007 20:04:15 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4SK4FGH062794; Mon, 28 May 2007 20:04:15 GMT (envelope-from nobody) Message-Id: <200705282004.l4SK4FGH062794@www.freebsd.org> Date: Mon, 28 May 2007 20:04:15 GMT From: Konrad To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: i386/113101: Fix (enable) phone out for laptops with ALC655. X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2007 20:10:04 -0000 >Number: 113101 >Category: i386 >Synopsis: Fix (enable) phone out for laptops with ALC655. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 28 20:10:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Konrad >Release: 7.0-CURRENT >Organization: Gdansk University of Technology >Environment: FreeBSD predator.ether.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue May 8 13:49:52 CEST 2007 versus@predator.ether.net:/usr/src/sys/i386/compile/VERSUS i386 >Description: For a few months I was unable to use my laptop with external headphones. Today I tried ALSA under Knoppix, and saw interesting switch in alsamixer named front duplication or something, which made my headphones output sound. Then I downloaded ALC655 spec and found, that by default surround out is enabled in bit 0 of 0x6a reg, so the signal only does to front speakers, and headphones apparently aren't front speakers. :) In the sheet it's called: S-OUT is duplicated output of LINE-OUT. >How-To-Repeat: Install FreeBSD on Amilo Pro V2055, start xmms and connect headphones, or start mplayer in full screen (after patching the OpenChrome driver like I did), and connect your laptop to a sound system, and try to hear something. :) >Fix: --- old.c Mon May 28 21:47:55 2007 +++ ac97_patch.c Mon May 28 21:49:59 2007 @@ -94,4 +94,12 @@ default: break; } + + /* + * Amilo Pro V2055 with ALC655 has phone out by default + * disabled (surround on), leaving us only with internal speakers. This + * should really go to mixer. We write the Data Flow Control reg. + */ + ac97_wrcd(codec, 0x6a, ac97_rdcd(codec, 0x6a) | 1); + } >Release-Note: >Audit-Trail: >Unformatted: