[alsa-devel] [PATCH] ALSA: Support Media Vision Jazz16 chips
Rask Ingemann Lambertsen
rask at sygehus.dk
Wed Mar 28 22:03:30 CEST 2007
On Wed, Mar 28, 2007 at 01:11:35AM +0200, Rene Herman wrote:
>
> Nothing much I'd say. As far as I know, the card's half-duplex.
It is clearly only half-duplex when the DSP is in high-speed mode. It is
less clear what will happen in low-speed mode if one tries to capture during
playback or vice versa. I don't know if the Jazz16 needs high-speed mode at
all, so I'll do some testing.
> I just
> now installed the Media Vision DOS driver (*) and it allows the
> following settings. Defaults starred:
>
> Jazz I/O Port: 210, *220, 230, 240, 250, 260 (<-- align 10?)
> Jazz IRQ: 2, 3, *5, 7, 10, 15
> 8 bit DMA: *1, 3
> 16 bit DMA: 1, 3, *5, 7
> MPU-401 Enable: Yes (<-- yes, no "No")
> MPU-401 I/O Port: 300, 310, 320, *330
> MPU-401 IRQ: *2, 3, 5, 7 (<-- you're also listing 10 and 15?)
I don't recall having ever managed to generate an MPU interrupt. I have
no MIDI hardware.
> CD ROM Port: 320, *340
>
> That "CD ROM Port" seems to be a version glitch; mine only has an NCR
> SCSI chip with a 2x8 pin connector but the install asked me if I had a
> Sony, Panasonic or Mitsumi CD-ROM (those old proprietary CD-ROM interfaces).
Mine has an IDE port, jumper A for 0x1f0/0x3f6, jumper B for 0x1f0/0x376,
jumper "CDROM IRQ" for 10, 11, 14 or 15. J9 & J10: 1-2 AMP OFF, 2-3: AMP ON.
Note that my board is rather anonymous. For all I know, it could be an
OEM one.
> Not much idea what that 1 and 3 are doing under "16-bit DMA". Things do
> seem to work when I pick 1 for the 8-bit and 3 for the 16-bit. But the
> DOS drivers at least don't list 5 and 7 as valid 8-bit DMAs...
Here goes (following a change of DMA maps in the PnP driver):
# echo 'set irq 10 dma 5 dma 1' > /sys/bus/pnp/devices/03\:01/resources
# modprobe snd-jazz16
$ cat /proc/asound/cards
0 [CMI8738 ]: CMI8738 - C-Media PCI CMI8738
C-Media PCI CMI8738 (model 37) at 0xd800, irq 9
1 [Jazz16 ]: Jazz16 - Media Vision Jazz16
Sound Blaster Pro (Jazz16) at 0x220, irq 10, dma8 5, dma16 1
$ aplay -v -D hw:Jazz16,0 /tmp/jazz16ting/TESTDMA.WAV
Playing WAVE '/tmp/jazz16ting/TESTDMA.WAV' : Unsigned 8 bit, Rate 11025 Hz, Mono
Hardware PCM card 1 'Media Vision Jazz16' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : U8
subformat : STD
channels : 1
rate : 10989
exact rate : 10989 (1000000/91)
msbits : 8
buffer_size : 5495
period_size : 1374
period_time : 125022
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1374
xfer_align : 1374
start_threshold : 4122
stop_threshold : 5495
silence_threshold: 0
silence_size : 0
boundary : 1440481280
pointer (0x1578) for DMA #5 is greater than transfer size (0x1577)
(repeats four times - note 0x1577 = 5495 = buffer size above)
Playback sounds normal except for a click for each "pointer ..." message.
Any ideas? /proc/interrupts increments by 11.
$ aplay -v -D hw:Jazz16,0 /tmp/male.wav
Playing WAVE '/tmp/male.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Hardware PCM card 1 'Media Vision Jazz16' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (1000000/125)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 4000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 4000
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000
aplay: pcm_write:1257: write error: Ind/ud-fejl
No sound, no interrupts and this message from /var/log/kernel:
kernel: playback write error (DMA or IRQ trouble?)
> Would you happen to have a description of the DIP switches/jumpers? On
> mine, there's a red block of 8 DIP switches marked
>
> MAB0 | MAB1 | DISMPU | DAB2 | DAB1 | DAB0 | DISJS | <empty>
>
> which with the exception of the two DIS switches isn't completely
> self-evident;
Guesswork: MAB0/1 to select SCSI BIOS memory address, DAB0-2 to select
NCR chip SCSI device ID - does it happen to be set to 7? DAB0-2 could also
tbe the NCR chip base address.
> especially not since the chip's not on the bus before
> being programmed to be through software.
Does that also include the SCSI part?
> There's also two 2x3 jumper
> blocks J10 and J11 that I've no idea about.
Line out left/right amplifier on/off, I guess.
--
Rask Ingemann Lambertsen
More information about the Alsa-devel
mailing list