Subject: problem recording with CS4236B audio chip
To: netbsd-users <netbsd-users@netbsd.org>
From: philippe.sam-long <philippe.sam-long@laposte.net>
List: netbsd-users
Date: 12/07/2005 22:33:59
hello,

it has been impossible for me to record anything using a
CS4236B onboard audio chip on a dell optiplex gx1. 

"audiorecord test.au" returns "audiorecord: failed to set
audio info: Invalid argument" (the dmesg produced by just
booting and typing this line after boot is at the end of the
e-mail).

neither is it possible to run skype, setting full duplex mode
then running skype hangs the application, then resets the full
duplex flag.

did someone have this problem, or did i missed something? 

i found this on the freebsd mailing list, about a similar
problem:
http://lists.freebsd.org/pipermail/freebsd-i386/2005-July/002783.html

but i have no idea if it is possible to test this driver on
netbsd.

best regards,
--
Philippe Sam-Long

-- beginning of dmesg --
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
2004, 2005
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights
reserved.

NetBSD 3.99.11 (GENERIC_DEBUG) #1: Wed Dec  7 22:07:19 CET 2005
	phil@shubnigurath.crevette.fr:/usr/src/sys/arch/i386/compile/GENERIC_DEB=
UG
total memory =3D 127 MB
avail memory =3D 116 MB
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 448.64 MHz, id 0x672
cpu0: features
383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: L2 cache 512 KB 32B/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 32 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
agp0 at pchb0: aperture at 0xf4000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface
(rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: ATI Technologies 3D Rage Pro
(AGP) (rev. 0x5c)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB (PIIX4) PCI-ISA Bridge (rev. 0x02)
piixide0 at pci0 dev 7 function 1
piixide0: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 7 function 2: Intel 82371AB (PIIX4) USB Host
Controller (rev. 0x01)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB (PIIX4) Power Management Controller
(miscellaneous bridge, revision 0x02) at pci0 dev 7 function 3
not configured
rtk0 at pci0 dev 14 function 0: Realtek 8139 10/100BaseTX
rtk0: interrupting at irq 11
rtk0: Ethernet address 00:50:fc:45:8b:38
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ex0 at pci0 dev 17 function 0: 3Com 3c905B-TX 10/100 Ethernet
(rev. 0x24)
ex0: interrupting at irq 11
ex0: MAC address 00:c0:4f:51:47:23
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
attimer0 at isa0 port 0x40-0x43: AT Timer
ad_detect_A ff
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
pcppi0: attached to attimer0
isapnp0: read port 0x203
wss1 at isapnp0 port 0x534/4,0x388/4,0x220/16 irq 5 drq 1,0
wss1: CS4236B WSS/SBad1848_reset
ad1848 status=3Dcc regs: 28 28 08 08 08 08 08 08 00 00 02 00 ca
00 00 00 00 00 08 08 00 00 00 94 00 03 84 00 00 00 00 00 
ad1848_set_rec_gain: 220:220
ad1848_set_rec_port: 0x0
: CS4236B
audioprobe: type=3D0 sa=3D0xc0992b40 hw=3D0xc0733ac0
audio0 at wss1: full duplex, mmap
audiosetinfo sc=3D0xc0ccf800 ai=3D0xc0992650
audiosetinfo() Setting record params: enc=3D1 1ch 8/8bit 8000Hz
audiosetinfo() Setting play params: enc=3D1 1ch 8/8bit 8000Hz
ad1848_set_params: 1 8 1 8000
ad1848_set_params succeeded, bits=3D1
audio_setup_pfilters: HW-buffer=3D0xc0ccfa40 pustream=3D0xc0ccfa40
[HW] enc=3D1 1ch 8/8bit 8000Hz
audio_setup_rfilters: HW-buffer=3D0xc0ccfaa4 pustream=3D0xc0ccfaa4
[HW] enc=3D1 1ch 8/8bit 8000Hz
audiosetinfo: filter setup is completed.
audio_calc_blksize: record blksize=3D400
audio_calc_blksize: play blksize=3D400
audiosetinfo() After setting record params: enc=3D1 1ch 8/8bit
8000Hz
audiosetinfo() After setting play params: enc=3D1 1ch 8/8bit 8000Hz
ad1848_mute_wave_output: 1, 1
ad1848: Auto calibration started.
ad1848_mute_wave_output: 1, 0
audio_initbufs: mode=3D0x0
audio_init_ringbuffer: MI blksize=3D400
audio_init_ringbuffer: final blksize=3D400
audio_init_ringbuffer: MI blksize=3D400
audio_init_ringbuffer: final blksize=3D400
audio_calcwater: plow=3D48900 phigh=3D65200 rlow=3D0 rhigh=3D64800
audio_attach: inputs ports=3D0x5, input master=3D3, output
ports=3D0x0, output master=3D-1
audioprobe: type=3D2 sa=3D0xc0992bb0 hw=3D0x0
opl0 at wss1: model OPL3
midi1 at opl0: WSS Yamaha OPL3
isapnp0: <CS4236B, CSC000F, , Game> port 0x3a0/8 not configured
isapnp0: <CS4236B, CSC0010, , Ctrl> port 0xf00/8 not configured
isapnp0: <CS4236B, CSC0003, , MPU> port 0x330/2 not configured
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
raidattach: Asked for 8 units
Kernelized RAIDframe activated
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Logitech USB Receiver, rev 1.10/9.10, addr 2, iclass 3/1
ums0 at uhidev0: 5 buttons and Z dir.
wsmouse0 at ums0 mux 0
wd0 at atabus0 drive 0: <SAMSUNG SV1533D>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 14598 MB, 29660 cyl, 16 head, 63 sec, 512 bytes/sect x
29897280 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
(Ultra/66)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2
(Ultra/33) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <Hewlett-Packard CD-Writer Plus
8100, PJD268Q8D9, 1.0g> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 3, DMA mode 1
cd0(piixide0:1:0): using PIO mode 0, DMA mode 1 (using DMA)
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying lfs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
audio_open: flags=3D0x1 sc=3D0xc0ccf800 hdl=3D0xc0cc5900
ad1848_isa_open: sc=3D0xc0cc5900
ad1848_mute_wave_output: 0, 1
ad1848_open: sc=3D0xc0cc5900
ad1848_open: enable intrs
ad1848 status=3Dcc regs: ad ad 04 04 04 04 88 88 20 00 02 00 ca
fc 00 00 00 00 04 04 00 00 00 94 00 03 8f 00 20 00 00 00 
ad1848_isa_open: opened
audiosetinfo sc=3D0xc0ccf800 ai=3D0xcad3bc44
ad1848_set_params: 1 8 1 8000
ad1848_set_params succeeded, bits=3D1
audiosetinfo: filter setup is completed.
ad1848_mute_wave_output: 1, 1
ad1848: Auto calibration started.
ad1848_mute_wave_output: 1, 0
audio_initbufs: mode=3D0x2
audio_init_ringbuffer: MI blksize=3D400
audio_init_ringbuffer: final blksize=3D400
audio_init_ringbuffer: MI blksize=3D400
audio_init_ringbuffer: final blksize=3D400
audio_calcwater: plow=3D48900 phigh=3D65200 rlow=3D0 rhigh=3D64800
audio_open: done sc_mode =3D 0x2
audio_ioctl(136,'A',21)
AUDIO_GETINFO
audio_ioctl(136,'A',21) result 0
audio_ioctl(136,'A',22)
AUDIO_SETINFO mode=3D0x2
audiosetinfo sc=3D0xc0ccf800 ai=3D0xc0d73a00
audiosetinfo() Setting record params: enc=3D1 1ch 8/8bit 8000Hz
ad1848_set_params: 1 8 1 8000
ad1848_set_params succeeded, bits=3D1
audio_setup_rfilters: HW-buffer=3D0xc0ccfaa4 pustream=3D0xc0ccfaa4
[HW] enc=3D1 1ch 8/8bit 8000Hz
audiosetinfo: filter setup is completed.
audio_calc_blksize: record blksize=3D400
audio_calc_blksize: play blksize=3D400
audiosetinfo() After setting record params: enc=3D1 1ch 8/8bit
8000Hz
audio_ioctl(136,'A',22) result 22
audio_close: sc=3D0xc0ccf800
ad1848_isa_close: stop DMA
ad1848_mute_wave_output: 2, 0
ad1848_close: disable intrs
ad1848 status=3Dcc regs: ad ad 04 04 04 04 88 88 20 00 00 00 ca
fc 00 00 00 00 04 04 00 00 00 94 00 03 8f 00 20 00 00 00 
audio_close: done
-- end of dmesg --=0A=0AAcc=E9dez au courrier =E9lectronique de La Poste =
: www.laposte.net ;=0AJusqu'au 25 d=E9cembre, participez  au grand jeu du=
 Calendrier de l'Avent et=0A=A0gagnez tous les jours de nombreux lots, + =
de 300 cadeaux en jeu !=0A=0A