From owner-freebsd-multimedia@FreeBSD.ORG Tue Sep 20 20:00:20 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 400EE16A424 for ; Tue, 20 Sep 2005 20:00:20 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 732F343D46 for ; Tue, 20 Sep 2005 20:00:19 +0000 (GMT) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IN40087NT0PFN60@osl1smout1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 20 Sep 2005 22:02:49 +0200 (CEST) Received: from kg-work.kg4.no ([80.203.92.30]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0IN400JZVT1RRI20@osl1sminn1.broadpark.no> for freebsd-multimedia@freebsd.org; Tue, 20 Sep 2005 22:03:28 +0200 (CEST) Date: Tue, 20 Sep 2005 22:00:17 +0200 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <20050919080124.6966330a.skywizard@MyBSD.org.my> To: freebsd-multimedia@freebsd.org Message-id: <20050920220017.584539ba.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed version 1.0.5 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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> Subject: Re: As promised: Soft volume mixer controller X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Sep 2005 20:00:20 -0000 On Mon, 19 Sep 2005 08:01:24 +0800 Ariff Abdullah 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: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on pci0 pcm0: 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: port 0x18c0-0x18ff,0x1c00-0x1cff mem 0xc0000800-0xc00008ff,0xc0000c00-0xc0000dff irq 11 at device 31.5 on pci0 pcm0: 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: at io 0x1c00, 0x18c0 irq 11 bufsz 16384 kld snd_ich (1p/0s/1r/4v channels duplex default) pcm1: 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: 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