As promised: Soft volume mixer controller

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Tue Sep 20 13:00:20 PDT 2005


On Mon, 19 Sep 2005 08:01:24 +0800
Ariff Abdullah <skywizard at MyBSD.org.my> wrote:

> Hope that helps.

Yes, that helped. thanks!
Here's the report:
I  tried "snd_RELENG_5_20050916_043softvol.diff" on a ThinkPad T41.
tingo at kg-jobbpc3$ uname -a
FreeBSD kg-jobbpc3.kg4.no 5.4-STABLE FreeBSD 5.4-STABLE #0: Tue Sep 20
20:58:18 CEST 2005    
root at kg-jobbpc3.kg4.no:/storage/usr/obj/storage/usr/src/sys/T41_NOUHID 
i386

Before patch:
-----------------
tingo at kg-jobbpc3$ dmesg | grep pcm
pcm0: <Intel ICH4 (82801DB)> port 0x18c0-0x18ff,0x1c00-0x1cff mem
0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on
pci0 pcm0: <Analog Devices AD1981B AC97 Codec>

tingo at kg-jobbpc3$ /usr/sbin/mixer
Mixer vol      is currently set to  62:62
Mixer pcm      is currently set to  87:87
Mixer line     is currently set to   0:0
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to   0:0
Mixer rec      is currently set to   0:0
Mixer ogain    is currently set to   0:0
Mixer line1    is currently set to   0:0
Mixer phin     is currently set to   0:0
Mixer phout    is currently set to   0:0
Recording source: mic

  'pciconf -lv'
pcm0 at pci0:31:5: class=0x040100 card=0x05371014
chip=0x24c58086 rev=0x01 hdr=0x00    vendor   = 'Intel Corporation'
    device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio
Controller'    class    = multimedia
    subclass = audio

After patch:
---------------
tingo at kg-jobbpc3$ dmesg | grep pcm
pcm0: <Intel ICH4 (82801DB)> port 0x18c0-0x18ff,0x1c00-0x1cff mem
0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on
pci0 pcm0: <Analog Devices AD1981B AC97 Codec>

tingo at kg-jobbpc3$ /usr/sbin/mixer
Mixer vol      is currently set to  62:62
Mixer pcm      is currently set to  87:87
Mixer line     is currently set to   0:0
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to   0:0
Mixer rec      is currently set to   0:0
Mixer ogain    is currently set to   0:0
Mixer line1    is currently set to   0:0
Mixer phin     is currently set to   0:0
Mixer phout    is currently set to   0:0
Recording source: mic

 'pciconf -lv'
pcm0 at pci0:31:5: class=0x040100 card=0x05371014 chip=0x24c58086 rev=0x01
hdr=0x00    vendor   = 'Intel Corporation'
    device   = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio
Controller'    class    = multimedia
    subclass = audio

And the volume works fine.

Over to the usb audio speakers (pcm1 below):
tingo at kg-jobbpc3$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel ICH4 (82801DB)> at io 0x1c00, 0x18c0 irq 11 bufsz 16384 kld
snd_ich (1p/0s/1r/4v channels duplex default)
pcm1: <USB Audio> at addr ? (1p/0s/0r/1v channels duplex)

I'm sorry, I don't have a "before" list for those.
After the patch:
--------------------
tingo at kg-jobbpc3$ dmesg | grep pcm1
pcm1: <USB Audio> on uaudio0
pcm1: chn_init(pcm1:record:0) failed: err = 19
pcm1: pcm_chn_create(ua_chan, -1, 0xc2778d00) failed

tingo at kg-jobbpc3$ /usr/sbin/mixer -f /dev/mixer1
Mixer pcm      is currently set to   7:7
Mixer speaker  is currently set to  75:75
Recording source: mic

And they also work fine. I don't know what this error message above
means, but the volume works now (tested with xmms). Before it would
"escalate" until it was so high that I didn't risk trying anymore.
Oh, the error message; these are USB speakers, they have no record input
anywhere.

Nice work!
-- 
Yours,
Torfinn Ingolfsen,
Norway



More information about the freebsd-multimedia mailing list