Apple Screamer Audio: looking for testers

Marco Trillo marcotrillo at gmail.com
Tue Oct 7 22:15:14 UTC 2008


Hi,

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


More information about the freebsd-ppc mailing list