Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2005 22:00:17 +0200
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: As promised: Soft volume mixer controller
Message-ID:  <20050920220017.584539ba.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <20050919080124.6966330a.skywizard@MyBSD.org.my>
References:  <20050913075835.5f055747.skywizard@MyBSD.org.my> <200509141241.22914.lofi@freebsd.org> <20050914201600.383df2ce.skywizard@MyBSD.org.my> <200509141618.06677.lofi@freebsd.org> <20050914233049.70de9af6.skywizard@MyBSD.org.my> <20050919011112.6fb1bdde.torfinn.ingolfsen@broadpark.no> <20050919080124.6966330a.skywizard@MyBSD.org.my>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 19 Sep 2005 08:01:24 +0800
Ariff Abdullah <skywizard@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@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@kg-jobbpc3.kg4.no:/storage/usr/obj/storage/usr/src/sys/T41_NOUHID 
i386

Before patch:
-----------------
tingo@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@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@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@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@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@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@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@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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050920220017.584539ba.torfinn.ingolfsen>