OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Alejo Sanchez (core.lists.openbsd-techcore-sdi.com)
Date: Mon Apr 23 2001 - 17:27:21 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi,

    on my clcs this command
    # sudioctl -w play.gain=XXX
    doesn't work. whatever number on XXX it gives
    "Invalid parameter". Is this a bug or a lack
    of support on the soundcard?

    Also tried this patch, and doesn't work.
    whatever number on XXX it goes again to 127,
    but it doesn't give the error.

    here's the patch and dmesg attached.

    Thanks a lot in advance.

    http://cvsweb.netbsd.org/bsdweb.cgi/syssrc/sys/dev/audio.c.diff?r1=1.123&r2=1.124

    Please note that diffs are not public domain; they are subject to the
    copyright notices on the relevant files.

    ===================================================================
    RCS file: /ftp/cvs/cvsroot/syssrc/sys/dev/audio.c,v
    retrieving revision 1.123
    retrieving revision 1.124
    diff -u -r1.123 -r1.124
    --- syssrc/sys/dev/audio.c 2000/03/26 10:01:32 1.123
    +++ syssrc/sys/dev/audio.c 2000/05/01 17:10:40 1.124
    -1,4 +1,4
    -/* $NetBSD: audio.c,v 1.123 2000/03/26 10:01:32 augustss Exp $ */
    +/* $NetBSD: audio.c,v 1.124 2000/05/01 17:10:40 augustss Exp $ */
     
     /*
      * Copyright (c) 1991-1993 Regents of the University of California.
    -293,10 +293,12
     
             iclass = oclass = -1;
             sc->sc_inports.index = -1;
    + sc->sc_inports.master = -1;
             sc->sc_inports.nports = 0;
             sc->sc_inports.isenum = 0;
             sc->sc_inports.allports = 0;
             sc->sc_outports.index = -1;
    + sc->sc_outports.master = -1;
             sc->sc_outports.nports = 0;
             sc->sc_outports.isenum = 0;
             sc->sc_outports.allports = 0;
    -324,8 +326,10
                         (strcmp(mi.label.name, AudioNmonitor) == 0))
                             sc->sc_monitor_port = mi.index;
             }
    - DPRINTF(("audio_attach: inputs ports=0x%x, output ports=0x%x\n",
    - sc->sc_inports.allports, sc->sc_outports.allports));
    + DPRINTF(("audio_attach: inputs ports=0x%x, input master=%d, "
    + "output ports=0x%x, output master=%d\n",
    + sc->sc_inports.allports, sc->sc_inports.master,
    + sc->sc_outports.allports, sc->sc_outports.master));
     }
     
     int

    OpenBSD 2.9 (MONA) #1: Mon Apr 23 18:58:11 ART 2001
        alejomona:/usr/src/sys/arch/i386/compile/MONA
    cpu0: Intel Celeron (Mendocino) ("GenuineIntel" 686-class, 128KB L2 cache) 334 MHz
    cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
    real mem = 66629632 (65068K)
    avail mem = 59924480 (58520K)
    using 838 buffers containing 3432448 bytes (3352K) of memory
    mainbus0 (root)
    bios0 at mainbus0: AT/286+(9a) BIOS, date 09/01/00, BIOS32 rev. 0 0xfb270
    apm0 at bios0: Power Management spec V1.2
    apm0: AC on, battery charge unknown
    pcibios0 at bios0: rev. 2.1 0xf0000/0xb6f8
    pcibios0: PCI IRQ Routing Table rev. 1.0 0xfde50/144 (7 entries)
    pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB PCI-ISA" rev 0x00)
    pcibios0: PCI Exclusive IRQs: 9 10 11
    pcibios0: PCI bus #1 is the last bus
    bios0: ROM list: 0xc0000/0x8000 0xc8000/0x800
    pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
    pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x03
    ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
    pci1 at ppb0 bus 1
    pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
    pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
    wd0 at pciide0 channel 0 drive 0: <SAMSUNG SV2046D>
    wd0: 16-sector PIO, LBA, 19600MB, 16383 cyl, 16 head, 63 sec, 40142592 sectors
    pciide0: channel 0 interrupting at irq 14
    wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
    atapiscsi0 at pciide0 channel 1
    scsibus0 at atapiscsi0: 2 targets
    cd0 at scsibus0 targ 0 lun 0: <E-IDE, CD-ROM 50X, 32> SCSI0 5/cdrom removable
    pciide0: channel 1 interrupting at irq 15
    cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
    "Intel 82371AB USB" rev 0x01 at pci0 dev 7 function 2 not configured
    "Intel 82371AB Power Management" rev 0x02 at pci0 dev 7 function 3 not configured
    vga0 at pci0 dev 15 function 0 "S3 Trio32/64" rev 0x00
    wsdisplay0 at vga0: console (80x25, vt100 emulation)
    wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
    xl0 at pci0 dev 16 function 0 "3Com 3c905C 100Base-TX" rev 0x6c: irq 10 address 00:50:da:72:ed:d0
    exphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 4
    clcs0 at pci0 dev 18 function 0 "Cirrus Logic CS4614" rev 0x01 irq 9
    ac97: codec id 0x43525913 (Cirrus Logic CS4297A)
    ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Spatializer 3D
    audio0 at clcs0
    isa0 at pcib0
    isadma0 at isa0
    pckbc0 at isa0 port 0x60/5
    pckbd0 at pckbc0 (kbd slot)
    pckbc0: using irq 1 for kbd slot
    wskbd0 at pckbd0: console keyboard, using wsdisplay0
    pcppi0 at isa0 port 0x61
    sysbeep0 at pcppi0
    lpt0 at isa0 port 0x378/4 irq 7
    npx0 at isa0 port 0xf0/16: using exception 16
    pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
    pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
    fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
    fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
    biomask c040 netmask c440 ttymask c4c2
    pctr: 686-class user-level performance counters enabled
    mtrr: Pentium Pro MTRR support
    dkcsum: wd0 matched BIOS disk 80
    root on wd0a
    rootdev=0x0 rrootdev=0x300 rawdev=0x302

    --- For a personal reply use alejocore-sdi.com