[alsa-devel] [PATCH] ALSA: Support Media Vision Jazz16 chips

Rask Ingemann Lambertsen rask at sygehus.dk
Thu Apr 5 19:26:19 CEST 2007


On Sun, Apr 01, 2007 at 02:37:59AM +0200, Rene Herman wrote:
> On 03/31/2007 06:22 PM, Rask Ingemann Lambertsen wrote:
> 
> >Thanks for your testing. Could you also test playback of 16-bit
> >sounds through an 8-bit DMA channel in DOS?
> 
> This works fine. With the "8 bit DMA" set to 1 and the "16 bit DMA" to 
> 3, 8 and 16-bit wave files play without problem.

   OK, I will see if DOSemu or so has facilities to log and pass through
I/O-port access.

> >While IRQ 15 works fine for me with an AD1816A card, I can not get
> >IRQ 15 to work with the Jazz on the same machine. Over the weekend
> >I'll try to use autoprobing to figure out exactly what is and isn't
> >supported. I'll also look at circuit board traces and the ISA bus
> >connector pinout for clues.
> 
> I got IRQ 15 to work. From looking at the traces, I could identify 
> jumpers J10 as the "CD-ROM IRQ", with it being set to IRQ15 (with 
> possibilities 11, 12 and 15). When I set it to something else, IRQ15 
> starts working both for the Jazz and the MPU-401 IRQ. That is, all of 3, 
> 5, 7, 9, 10 and 15 now work for both IRQs for me.

   I looked at my board, and IRQ 15 is definitely connected to the Jazz16
chip. On to the probing with probe_irq_on() and probe_irq_mask(). If I turn
off the secondary IDE port of the legacy-mode PIIX chip, I get

jazz16pnp: irq_config  0 -> irq_mask 000000.
jazz16pnp: irq_config  1 -> irq_mask 000040 (bit 5 set).
jazz16pnp: irq_config  2 -> irq_mask 001000 (bit 9 set).
jazz16pnp: irq_config  3 -> irq_mask 000010 (bit 3 set).
jazz16pnp: irq_config  4 -> irq_mask 000200 (bit 7 set).
jazz16pnp: irq_config  5 -> irq_mask 002000 (bit 10 set).
jazz16pnp: irq_config  6 -> irq_mask 000000.
jazz16pnp: irq_config  7 -> irq_mask 000000.

Setting irq_config 8-15 works just like irq_config 0-7. It only gets weirder
with the secondary IDE port enabled:

jazz16pnp: irq_config  0 -> irq_mask 0000000.
jazz16pnp: irq_config  1 -> irq_mask 0000040 (bit 5 set).
jazz16pnp: irq_config  2 -> irq_mask 0001000 (bit 9 set).
jazz16pnp: irq_config  3 -> irq_mask 0000010 (bit 3 set).
jazz16pnp: irq_config  4 -> irq_mask 0000200 (bit 7 set).
jazz16pnp: irq_config  5 -> irq_mask 0002000 (bit 10 set).
jazz16pnp: irq_config  6 -> irq_mask 0100000 (bit 15 set).
jazz16pnp: irq_config  7 -> irq_mask 0000000.

   Here IRQ 15 does work. I don't know what is going on.

> >>Lastly, how would you feel about setting the DOS/Windows default 
> >>resource values as the preffered values and all the others as mere 
> >>acceptable?

   I've decided to go with this, with the exception that I'll ask for just a
16-bit channel since there is currently little use for the 8-bit one.

-- 
Rask Ingemann Lambertsen


More information about the Alsa-devel mailing list