From: Takashi Iwai <tiwai@suse.de>
To: Laurent Canet <lc@tekila.org>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: HP PA-RISC harmony driver
Date: Mon, 09 Dec 2002 15:02:22 +0100 [thread overview]
Message-ID: <s5hlm2z8f4h.wl@alsa2.suse.de> (raw)
In-Reply-To: <20021206201002.409a6267.lc@tekila.org>
Hi,
At Fri, 6 Dec 2002 20:10:02 +0100,
Laurent Canet wrote:
>
> Hi,
>
> I've wrote an ALSA driver for the harmony chipset. This chipset
> is found in some HP PA-RISC workstations.
> My driver is in very early stage, so I would like your appreciations on
> the code.
most of the codes looks fine.
a few points / questions:
- the handling of buffers can be improved.
so far, it's implemented a bit incorrectly.
you shouldn't touch runtime->dma_bytes directly.
if the interrupt period is fixed in HARMONY_BUF_SIZE, the period and
the buffer size should be restricted via hw constraints:
- interger-constraint to PERIODS
- PERIOD_BYTES aligned to HARMONY_BUF_SIZE
- is mono channel handled correctly?
- a-law and mu-law formats look not implemented.
- disable/enable_interrupts() are necessary in the irq handler?
also, enable_interrupts() may be called many times.
- it would be safer to have timeouts in some infinite loops...
> The actual state of the driver is
> -initialisation of the driver works perfectly.
> -Playback open (with mpg321 -o alsa09) is successful.
> -But after 2-3 interrupts, and the first call to the pointer function,
> the libao stops the playback (stop trigger) and print an error on stderr
> (ALSA unknown error 1024). After this, it immediately restart the playback
>
> Some noise can be heard, but it's sluggish, probably due to printks in the
> interruption routine.
>
> (Compiling this driver is a little bit hard, since alsa-driver distributions
> don't have any support for the hppa platform. I suggest 'by hand' compiling
> with gcc)
it's not too difficult to add the support, copying the parisc comiple
flags from linux kernel, pasting it to the configure script, and
defining CONFIG_* variables, etc.
do you suppose that the driver will be compiled only for PARISC?
then i'll create a directory alsa-driver/parisc and put the stuff
there.
ciao,
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
prev parent reply other threads:[~2002-12-09 14:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-06 19:10 HP PA-RISC harmony driver Laurent Canet
2002-12-09 14:02 ` Takashi Iwai [this message]
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=s5hlm2z8f4h.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=lc@tekila.org \
/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