Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2008 00:15:11 +0200
From:      "Marco Trillo" <marcotrillo@gmail.com>
To:        "Andreas Tobler" <andreast-list@fgznet.ch>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: Apple Screamer Audio: looking for testers
Message-ID:  <b9c23c9f0810071515hd29dd13p24f6cd88194e3bfd@mail.gmail.com>
In-Reply-To: <48EBCECC.4020802@fgznet.ch>
References:  <b9c23c9f0809300231q15466ea7m668838593ba288be@mail.gmail.com> <48EA1A3D.3010607@fgznet.ch> <b9c23c9f0810060848g4ed97109w11a4379c17816825@mail.gmail.com> <48EA7CD4.7040404@fgznet.ch> <b9c23c9f0810061513w765404bateb4ec2546c321ac8@mail.gmail.com> <48EBAF84.2090001@fgznet.ch> <b9c23c9f0810071347x6577507dgc0ff436203f8871@mail.gmail.com> <48EBCECC.4020802@fgznet.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Tue, Oct 7, 2008 at 11:04 PM, Andreas Tobler <andreast-list@fgznet.ch> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b9c23c9f0810071515hd29dd13p24f6cd88194e3bfd>