From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 22 10:17:50 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D2091065674 for ; Wed, 22 Oct 2008 10:17:50 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id F14A08FC1E for ; Wed, 22 Oct 2008 10:17:49 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so2756837wfg.7 for ; Wed, 22 Oct 2008 03:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=AOni1Z4kjhKO7GC3+bUMQuhDLGEig0NssFECVNWwWTU=; b=nUt7I7HANUqu/4Tbd12hg7LyO95oYvIrPtCLnnTX2uY9CDaPgmWqLT8O2Fu8Myivkb Gtp6SuK3nulDPMY5vjBddaIJmAEqJpdqh4Fn1h8LIPcbLe7OJ3r8gvUQzOaQ4+hmK2lI pKHs9ngVpYSD7PnpToYOIN7JVZoqZ53p6KgiI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=nUxPtbK//OaUFeeToAoAD+s9Emcqm0KXXTJm7GOn+wOTlsljUnwhGpXHjjUlmllo2P i8uBLLBRSHH8qAvVwzYlwn3oo2+lGClrAzsn3H5+Ee4r3Aj/GhAmVFOfc534KTZ+ZF0w u8vbXaSydBiwAtgGRyZXkbIzFZOnU6AX9HppU= Received: by 10.142.156.19 with SMTP id d19mr4255519wfe.261.1224670669631; Wed, 22 Oct 2008 03:17:49 -0700 (PDT) Received: by 10.142.89.18 with HTTP; Wed, 22 Oct 2008 03:17:49 -0700 (PDT) Message-ID: Date: Wed, 22 Oct 2008 12:17:49 +0200 From: "Marco Trillo" To: "=?ISO-8859-1?Q?Horst_G=FCnther_Burkhardt_III?=" In-Reply-To: <1224668347.10591.76.camel@horst-tla> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <48FE33D7.3080505@fgznet.ch> <1224657584.10591.72.camel@horst-tla> <1224668347.10591.76.camel@horst-tla> Cc: FreeBSD PowerPC ML Subject: Re: Resignation, X being a , and assorted questions. X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 10:17:50 -0000 Hi, On Wed, Oct 22, 2008 at 11:39 AM, Horst G=FCnther Burkhardt III wrote: > >> >> The Crystal chip is indeed the sound codec -- it can be either the >> "Burgundy" (CS4211) chip, used on original iMacs, or the "Screamer" >> (CS4212) chip, used on iMac DVs and late iMac G3s. What model of iMac >> is this? > > CS4212-KL so it's a Screamer. This isn't an iMac though - i'm just > saying it's the same sort of physical chip as the iMac's sound chip. > > This is a Power Mac G4 Gigabit Ethernet / ADC (also known as a > PowerMac3,3 in gestaltid nomenclature) Nice, I also have a PowerMac G4 with a Screamer chip which I used to develop the driver, so it should work fine there. > >> I have a driver and patch that supports both of these devices -- >> currently audio output only. It should apply at least to 8.0-current >> and to 7.x -- let me know if you are interested on testing it . > > I'm interested in testing it, and a good thing too as I'm going to > compile a new kernel soon - so I can remove some of the unneeded stuff > like fwe :) > Ok :) The driver is available at: The tar.gz file includes the "sound/macio" subdirectory to include in the kernel, something like this: $ cp -R sound/macio /usr/src/sys/dev/sound/macio The "powermac/" and "patches/" subdirectories can be ignored, as they are not needed for Screamer devices. To register the new driver you can just append the following lines to the /usr/src/sys/conf/files.powerpc file : dev/sound/macio/aoa.c optional powermac davbus dev/sound/macio/davbus.c optional powermac davbus (Alternatively you can apply "patches/files.patch" in /usr/src/sys/conf, but it's possible that it does not apply cleanly to 7.x or recent -current.) To enable the driver you can add the following lines to GENERIC or your kernel config file: device sound device davbus (Or alternatively apply "patches/generic.patch" in /usr/src/sys/powerpc/conf, but as before it may not apply cleanly to 7.x or recent -current.) When booting the new kernel you should get a "pcm0" device, so you can just use any digital player to play sound files, and the "mixer" utility to configure the volume. If you plug something to the rear panel output jack, the internal speaker will be muted automatically. Thanks! Marco