All of lore.kernel.org
 help / color / mirror / Atom feed
* Aureal VOrtex update and MPU401 survey
@ 2003-03-13  4:28 Manuel Jander
  2003-03-13  9:10 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Jander @ 2003-03-13  4:28 UTC (permalink / raw)
  To: alsa-devel

Hi everyone.

Aurela Vortex:
I'm pleased to announce that the Vortex driver PCM is working.
Its not 100% perfect yet, sometimes it skips, but that will be done
in the next week (i'll try to add Scatter Gather support).

MPU401 survey:
I though about a modification for the mpu401_uart driver, to allow
a more versatil handling of different IO types. I observed that
at least the SBLive, appart from the Vortex have a standart MPU401 port, 
but the hardware IO is slighdely different enough to prevent the usage 
of the existing MPU401 driver. That means the driver is copy pasted and 
only the Register access (inb and outb) calls are modified.

Know there are too options: allow replacement functions for inb and 
outb, or to use wrappers that accept the mpu type as parameter so that a 
more sophisticated IO handling can be done. THat means:

case 1

typedef mpu401_t {
   ....
   void (*write) (u8 data, u32 addr);
   u8 (*write) (u32 addr);
   ....
}
.....

mpu->write = outb;
mpu->read = inb;


----------- < OR >-------------------
case 2

typedef mpu401_t {
   ....
   void (*write) (mpu401_t *mpu, u8 data, u32 addr);
   u8 (*write) (mpu401_t *mpu, u32 addr);
   ....
}

...

mpu->write = mpu_write;
mpu->read = mpu_read;


... and implemented in the specific card driver:

void mpu_write(mpu401_t *mpu, u8 data, u32 addr) {
     some_iohardware_write(mpu->private_data, data, addr);
}

void mpu_write(mpu401_t *mpu, u8 data, u32 addr) {
     return some_iohardware_read(mpu->private_data, addr);
}


The question is: Can anyone take advantage of having the "mpu" object 
avaiable inside a IO wrapper ? The SBLive should, but are the 
maintainers of the SBLive in the mood to actually make use of that ?

-If the mpu401_uart driver assigns per default the apropiate functions 
to mpu->write and mpu->read, -no change in the API is needed-.
-At least case 1 is needed to avoid having to copy paste the driver for 
the Aureal Vortex since it uses mmio instead of port io.

Best Regards

Manuel Jander.




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-13  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13  4:28 Aureal VOrtex update and MPU401 survey Manuel Jander
2003-03-13  9:10 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.