Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Aug 1997 22:09:14 -0700 (PDT)
From:      Howard Lew <hlew@www2.shoppersnet.com>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        multimedia@freebsd.org
Subject:   Re: sound driver
Message-ID:  <Pine.BSF.3.91.970803214948.23747A-100000@www2.shoppersnet.com>
In-Reply-To: <199708031249.OAA09265@labinfo.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi Luigi,

kernel config now has:
controller isa0
controller pnp0

--------
I found a little compile warning for pnp.c (line 411).  It is a warning 
about a comment:
    /* pnp_write(CONFIG_CONTROL, 0x02); /* All cards in WaitForKey */

Anyway, it appears that removing the preceding /* doesn't help the pcm 
probe, so I commented out the whole line.
    /* pnp_write(CONFIG_CONTROL, 0x02);  All cards in WaitForKey */

--------
Here's how the dmesg probe looks like:

Probing for PnP devices:
Trying Read_Port at 203
CSN 1 Vendor ID: OPT0925 [0x2509143e] Serial 0xffffffff
Probing for devices on the ISA bus:

It's looking better :) ... The pcm0 probe shows:
pcm0 at 0xffff irq 5 drq 1 mem 0x00000000 flags 0x00000008 en 1 confl 0
no address supplied, try default 0x0530
I/O address inactive (ff), try pseudo_mss
no address supplied, try default
sb_reset_dsp failed
pcm0 not found at 0xffffffff

I think the problem is that this card has an oddball serial of 0xffffffff.

Anyway, I also tried Sujal M. Patel's pnpinfo.
If I just type make, it says:

shell: {33} ls
Makefile        pnp.h           pnpinfo.8.gz    pnpinfo.h
audio.h         pnpinfo.8       pnpinfo.c
shell: {34} make
Warning: Object directory not changed from original /home/howard/pnpinfo
cc -Wall   -c pnpinfo.c
pnpinfo.c: In function `dump_resdata':
pnpinfo.c:551: warning: unused variable `d'
cc -Wall    -o pnpinfo pnpinfo.o

Is the -Wall flag needed?  (it compiles clean without the -Wall; Output 
is the same)

Output is:
# ./pnpinfo
Checking for Plug-n-Play devices...
Trying Read_Port at 203...

Card assigned CSN #1

Board Vendor ID OPT0925, Serial Number 0xffffffff
PnP Version 1.0, Vendor Version 0
Device Description: Super Sound32

Logical Device ID: PNP0600 0x0006d041 #0
        Vendor register funcs 00
Device Description: IDE CD
TAG Start DF
    I/O Range 0x36e .. 0x376, alignment 0x8, len 0x2
        [16-bit addr]
    I/O Range 0x168 .. 0x170, alignment 0x8, len 0x8
        [16-bit addr]
    IRQ: 10 15  - only one type (true/edge)
TAG Start DF
    I/O Range 0x3ee .. 0x3f6, alignment 0x8, len 0x2
        [16-bit addr]
    I/O Range 0x1e8 .. 0x1f0, alignment 0x8, len 0x8
        [16-bit addr]
    IRQ: 11  - only one type (true/edge)
TAG Start DF
    I/O Range 0x36e .. 0x3fe, alignment 0x8, len 0x2
        [16-bit addr]
    I/O Range 0x168 .. 0x1f8, alignment 0x8, len 0x8
        [16-bit addr]
    IRQ: 5 7 9 10 11 15  - only one type (true/edge)
TAG End DF

Logical Device ID: OPT9250 0x5092143e #1
        Vendor register funcs 00
Device Description: Super Sound32
TAG Start DF
    I/O Range 0x220 .. 0x240, alignment 0x20, len 0x10
        [16-bit addr]
    I/O Range 0x530 .. 0x604, alignment 0xd4, len 0x8
        [16-bit addr]
    I/O Range 0x380 .. 0x3f0, alignment 0x10, len 0xc
        [16-bit addr]
    I/O Range 0xf8d .. 0xf8d, alignment 0x1, len 0x10
        [16-bit addr]
    IRQ: 5 7 10  - only one type (true/edge)
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
TAG Start DF
    I/O Range 0x220 .. 0x240, alignment 0x20, len 0x10
        [16-bit addr]
    I/O Range 0x530 .. 0x604, alignment 0xd4, len 0x8
        [16-bit addr]
    I/O Range 0x380 .. 0x3f0, alignment 0x10, len 0xc
        [16-bit addr]
    I/O Range 0xf0d .. 0xf0d, alignment 0x1, len 0x10
        [16-bit addr]
    IRQ: 5 7 10  - only one type (true/edge)
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
TAG Start DF
    I/O Range 0x220 .. 0x240, alignment 0x20, len 0x10
        [16-bit addr]
    I/O Range 0x530 .. 0xff0, alignment 0x8, len 0x8
        [16-bit addr]
    I/O Range 0x380 .. 0x3f0, alignment 0x10, len 0xc
        [16-bit addr]
    I/O Range 0xf8d .. 0xf8d, alignment 0x1, len 0x10
        [16-bit addr]
    IRQ: 5 7 10  - only one type (true/edge)
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
TAG Start DF
    I/O Range 0x220 .. 0x240, alignment 0x20, len 0x10
        [16-bit addr]
    I/O Range 0x530 .. 0xff0, alignment 0x8, len 0x8
        [16-bit addr]
    I/O Range 0x380 .. 0x3f0, alignment 0x10, len 0xc
        [16-bit addr]
    I/O Range 0xf0d .. 0xf0d, alignment 0x1, len 0x10
        [16-bit addr]
    IRQ: 5 7 10  - only one type (true/edge)
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
TAG Start DF
    I/O Range 0x220 .. 0x240, alignment 0x20, len 0x10
        [16-bit addr]
    I/O Range 0x530 .. 0xff0, alignment 0x8, len 0x8
        [16-bit addr]
    I/O Range 0x380 .. 0x3f0, alignment 0x10, len 0xc
        [16-bit addr]
    I/O Range 0xf0d .. 0xfed, alignment 0x20, len 0x10
        [16-bit addr]
    IRQ: 5 7 9 10 11  - only one type (true/edge)
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
    DMA: channel(s) 0 1 3 
        8-bit, not a bus master, count by byte, , Type F
TAG End DF

Logical Device ID: PNPb02f 0x2fb0d041 #2
        Vendor register funcs 00
Device Description: Game Port
    I/O Range 0x200 .. 0x207, alignment 0x1, len 0x1
        [16-bit addr]

Logical Device ID: OPT0002 0x0200143e #3
        Vendor register funcs 00
Device Description: MPU401
    I/O Range 0x300 .. 0x330, alignment 0x10, len 0x2
        [16-bit addr]
    IRQ: 5 7 9 10  - only one type (true/edge)
End Tag

Successfully got 65 resources, 4 logical fdevs
-- card select # 0x0001

Logical device #0
IO:  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 0 0
DMA 4 4
IO range check 0x00 activate 0x00

Logical device #1
IO:  0x0220 0x0000 0x0000 0x0f0d 0x0000 0x0000 0x0000 0x0000
IRQ 0 0
DMA 4 4
IO range check 0x00 activate 0x00

Logical device #2
IO:  0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 0 0
DMA 4 4
IO range check 0x00 activate 0x00

Logical device #3
IO:  0x0300 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
IRQ 9 0
DMA 4 4
IO range check 0x00 activate 0x00

----

Let me know when you have a newer driver okay?  Keep up the good work.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970803214948.23747A-100000>