From: Takashi Iwai <tiwai@suse.de>
To: TJ <tj.trevelyan@gmail.com>
Cc: "Linux MIPS List" <linux-mips@linux-mips.org>,
ALSA Dev List <alsa-devel@alsa-project.org>
Subject: Re: [alsa-devel] [RFC] SGI O2 MACE audio ALSA module
Date: Tue, 03 Jul 2007 12:20:05 +0200 [thread overview]
Message-ID: <s5hejjpaiwa.wl%tiwai@suse.de> (raw)
In-Reply-To: <6849c8890707020427q47704326od05ebb8241c3cf@mail.gmail.com>
At Mon, 2 Jul 2007 12:27:58 +0100,
TJ wrote:
>
> Hi,
>
> It's been a while since I last posted something. Here is the latest
> version of my code. It is somewhat of a mess at the moment, but I plan
> to tidy it all up when it works better, any // comments are not
> permanent features. I have been using trial and error to find why it
> play too fast.
>
> I am glad to say that it does play sound correctly, bar one little
> issue that has me stuck at the moment, it plays too fast (for any
> sample frequency). Also how fast appears to depend on the player
> (tried aplay and ogg123).
>
> I have cc the ALSA dev too in the hope that between the two lists
> someone may spot something. Please can anyone who replies cc me.
>
> The patch was built against (applies to) linux-2.6.19.7 from
> linux-mips.org. It'll probably work on other versions.
The patch includes old typdefed structs which were already removed
from the upstream, such as, snd_card_t. Please replace them
appropriately. You can find the replacement in
include/sound/typedefs.h (in the old kernel tree).
Similarly, I'd recommend to avoid typedefs in your own code, too.
People don't like it :)
Other things I noticed through a quick glance:
- Follow the standard coding style, e.g. 80 chars in a line, don't put
if-block in a single line, etc.
- Avoid non-ASCII letters, especially outside the comments
- You don't need *_irqsave() in get/put callbacks of the control API.
It's always schedulable, so, spin_lock_irq() suffices.
- ad1843_lock could be better implemented with mutex if you have long
delays inside the spinlock (except for the calls from irq handler)
- please remove uneeded debug printks. If they are useful, keep it in
another macro form.
Could you fix these and repost?
thanks,
Takashi
next parent reply other threads:[~2007-07-03 10:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6849c8890707020427q47704326od05ebb8241c3cf@mail.gmail.com>
2007-07-03 10:20 ` Takashi Iwai [this message]
2007-07-09 21:07 ` [alsa-devel] [RFC] SGI O2 MACE audio ALSA module TJ
2007-07-11 5:14 ` sknauert
2007-07-11 8:55 ` TJ
2007-07-11 9:25 ` Takashi Iwai
2007-07-11 9:49 ` Takashi Iwai
2007-07-12 7:50 ` sknauert
2007-07-12 13:24 ` TJ
2007-07-04 8:25 ` Fwd: " TJ
2007-07-04 11:20 ` Ralf Baechle
2007-07-06 8:10 ` sknauert
2007-07-06 8:30 ` TJ
2007-07-06 9:01 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hejjpaiwa.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-mips@linux-mips.org \
--cc=tj.trevelyan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox