[Top] [All Lists]

Re: [alsa-devel] [RFC] SGI O2 MACE audio ALSA module

To: "" <>
Subject: Re: [alsa-devel] [RFC] SGI O2 MACE audio ALSA module
From: TJ <>
Date: Thu, 12 Jul 2007 14:24:00 +0100
Cc: "Linux MIPS List" <>, "ALSA Dev List" <>
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;; s=beta; 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; b=ddAbNMG4K7ohLWhXjIMWKf1DKBFOqglp2Uk6ah30R6FBKzOh1F0vCALzbcsKOZ7Pl/D9D0TCljNT9GRsZJOLMWUXNaIUIpsxx+uTZSqMJDxzwOsOmiu2pobgXZ55PKwv8Wd9sTecg+9VRBD2uhk4caXspcpJggbtsQqQMWayjow=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jf+cktcuIRwTxB3xvK2z12hdRQ1DhPubI6x9LrlB2zisUNqOqW8OCVZSYCfH+4fEzIVleCbavtJaCmv1Bjv1OP5uswSzqwAEj3JxJHLqPt5S4H4UluWknGB9kijFk3gCjWdA14nmqt3NWmjlIk/4PdRXSdsYa4JdEwTFS1jro0w=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <>

All playback sounds too fast, some players seem faster then others,
but I maybe wrong on that. The source file's sample rate seems to make
no difference, i've tried 22k,34k,44k,48k.

I have now been given a sin wave generator script, which I've been
meaning to try, but I lack an OCR so I will have to rely on my

ALSA doesn't need to change sample rate, nor will it if the sample is
within the range supported/reported by the driver (as far as i know).

Mace audio supports 8k to 48k. You can look at the set clock speed for
the DAC in /proc/asound/card0/ad1843

You can manually override the clock speed by playing with
ad1843_setup_dac in ad1843.c

You can try lying to ALSA by playing with snd_mace_audio_hw[1] (or
sma_audio_hw[1]) in mace_audio.c

If anyone can see why it plays too fast, please let me know.


On 12/07/07, <> wrote:
Okay, I got the module compiled and it and ALSA installed.

I noticed the timing bug, I doubt its a frequency issue as the ALSA guides
to downsample (i.e. if it were doing 48kHz instead of 44.1kHz) didn't

You mentioned on some players it would sound okay? I tried everything from
aplay to xmms and always seemed to play too fast. What CPU are you running
this on, by the way? Aplay does give underruns if I'm heavily
multitasking, though sound output seems the same.

<Prev in Thread] Current Thread [Next in Thread>