From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 7 22:15:13 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 C3A3D1065693 for ; Tue, 7 Oct 2008 22:15:13 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id 861398FC19 for ; Tue, 7 Oct 2008 22:15:13 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so3496049wfg.7 for ; Tue, 07 Oct 2008 15:15:11 -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=357wvCOf7Av+++3fSRQS++FGOAZlmYRMG2OvK5pAhBw=; b=widTqqQmzX5Sx7SFRJ3atQMqkBtJfcC/mqJUWWSG4nsb95S5Z2DAg0GSANvcU0PP3A jMglVuMXwusiB2QdNr40XcXvu25QCfLOKUTrdmrrosG3EyNdrFA8LL6PGIWF0j7LH6Cm fcVfDd0uQWHISD6FeIZhQE4qm/5fvjk9ZLu38= 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=VfHFzce6HxhS1Su5xlQmdv4i7QmklzKsSGSdykphc0TYxg/a9XWlodePR8jABhJLoK 0A2JS8CeNkjKgnVVSJSuV5sERm27GuDAVLjcPTMXkw/Mf9rH8V5RccZzIuGp8ZIzmVDh 4WgRW3RK0wTngA05oESMt2k8pOP7o6//ye05w= Received: by 10.143.4.16 with SMTP id g16mr2998296wfi.289.1223417711801; Tue, 07 Oct 2008 15:15:11 -0700 (PDT) Received: by 10.142.101.13 with HTTP; Tue, 7 Oct 2008 15:15:11 -0700 (PDT) Message-ID: Date: Wed, 8 Oct 2008 00:15:11 +0200 From: "Marco Trillo" To: "Andreas Tobler" In-Reply-To: <48EBCECC.4020802@fgznet.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48EA1A3D.3010607@fgznet.ch> <48EA7CD4.7040404@fgznet.ch> <48EBAF84.2090001@fgznet.ch> <48EBCECC.4020802@fgznet.ch> Cc: freebsd-ppc@freebsd.org Subject: Re: Apple Screamer Audio: looking for testers 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: Tue, 07 Oct 2008 22:15:14 -0000 Hi, On Tue, Oct 7, 2008 at 11:04 PM, Andreas Tobler wrote: >>> Ok, still building mpg321, was missing qt stuff etc. >> >> Hmm... I find odd that mpg321 depends on qt stuff... :-( . > > Hm, seems so. np so far, but having finished this build it will not get some > success so far. My expectation. Hmm... if you have finished the mpg321 build, can you try applying the following patch for aoa.c ? --- aoa.c.orig 2008-10-07 23:33:14.000000000 +0200 +++ aoa.c 2008-10-07 23:52:25.000000000 +0200 @@ -661,10 +661,20 @@ DPRINTF(("\n")); - if (d->device_id == 5) { + if (d->device_id == 5 || d->device_id == 11) { DPRINTF(("Enabling programmable output.\n")); x |= SCREAMER_PROG_OUTPUT0; - } + } + + if (d->device_id == 8 || d->device_id == 11) { + + /* iMac DV. */ + DPRINTF(("iMac DV.\n")); + + x &= ~SCREAMER_MUTE_SPEAKER; + if (mask & (1 << 0)) + x |= SCREAMER_PROG_OUTPUT1; /* enable speaker. */ + } Screamer_write_locked(d, SCREAMER_CODEC_ADDR1, x); d->output_mask = mask; I hope that it improves things with the iMac DV. These "programmable output" bits are another thing that is very machine-specific :-( . > >>> But nevertheless, I tried to play a bit around and I feel I have some >>> basic >>> issues which do not work. >>> You say cdcontrol does not need sound support at all, do I expect >>> correctly >>> that I should get some sound out of my box then? >> >> Yes, the CD analog output is connected to the sound device and can be >> mixed with the normal output -- this also applies to the modem for >> example. The current driver does not make this mixing configurable >> yet. >> However I think you get better results by playing the CD in digital >> mode using the system's device. Mac OS X for example does this. > > system's device? Which one? The computer's built-in audio device, in this case the "Screamer" chip, in contrast with the chip on the CD unit. > >>> Well, I do not get anything out of it right now. I followed the >>> handbook's advices and >>> cat'ed a file to /dev/dsp, nothing. >>> Just fyi, I discovered that I have three plugs to plugin headphones, two >>> on the front >>> side and one at the right side where all other plugs are located. (enet, >>> usb, etc.) >>> As said it's an imac. >>> If I plug my headphones in on the right side and cat a 'file' to /dev/dsp >>> I get some >>> noise. I do not get noise on speaker nor on the other plugs. >> >> The port on the right side is a line-out jack for use with an amplifier. >> >> Do you get any "Enabled outputs: ___" messages on the console when you >> plug and unplug the headphones on the left and right front ports? > > I see on all ports the activity I do, means, I see when I plugin/out a jack, > on all three. > Enabled outputs: Headphones/Speaker in the order I plug unplug the piece. Well, at least the port detection is working. Once again thanks for your patience, Marco.