From owner-freebsd-questions@FreeBSD.ORG Fri Oct 29 18:50:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B570116A4CE for ; Fri, 29 Oct 2004 18:50:06 +0000 (GMT) Received: from tomoyo.MyBSD.org.my (duke.void.net.my [202.157.186.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EAE843D46 for ; Fri, 29 Oct 2004 18:50:01 +0000 (GMT) (envelope-from skywizard@time.net.my) Received: from kasumi.MyBSD.org.my (unknown [219.95.135.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 23BED6CC23; Sat, 30 Oct 2004 02:54:17 +0800 (MYT) Date: Sat, 30 Oct 2004 02:50:24 +0800 From: Ariff Abdullah To: Jason Sheets Message-Id: <20041030025024.7932648f.skywizard@time.net.my> In-Reply-To: <1099073685.609.11.camel@jsheets-ux.boi.hp.com> References: <1099073685.609.11.camel@jsheets-ux.boi.hp.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: Sound Card Volume isn't adjustable (Sis 7012/snd_ich) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 18:50:06 -0000 On Fri, 29 Oct 2004 12:14:45 -0600 Jason Sheets wrote: > Hello everyone, > > I'm having trouble controlling the sound level of my sound card, > specifically volume adjustments using mixer and other volume control > tools don't change the actual volume. > > For example when playing a MP3 at 1% volume the sound is unbearably > loud and moving the volume to 100% doesn't affect the volume, at 0% > there is no sound. > > I have tried using mixer with no -f argument and also tried > adjusting the volume for each dsp entry in /dev with no effect. > > Configuration: > > OS: 5.3-RC1 FreeBSD 5.3-RC1 #2: Fri Oct 29 10:30:21 MDT 2004 > Sound Card: ASuS P48SX onboard audio > > Driver: snd_ich, sound card detected as SiS 7012, driver loaded via > kldload > > dmesg: > > pcm0: port 0x9000-0x907f,0x9400-0x94ff irq 18 at device > 2.7 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: > > kldstat > > 1 12 0xc0400000 4ffbe4 kernel > 2 14 0xc0900000 537f0 acpi.ko > 3 1 0xc1c67000 5000 linprocfs.ko > 4 1 0xc1c70000 17000 linux.ko > 5 1 0xc1e36000 5000 snd_ich.ko > 6 1 0xc1e3b000 18000 sound.ko > > cat /dev/sndstat > > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x9400, 0x9000 irq 18 bufsz 16384 kld snd_ich > (1p/1r/2v channels duplex default) > [pcm0:play:0]: spd 44100/48000, fmt 0x10000010, flags > 0x00003020, 0x00000010 > interrupts 45586, underruns 7126, ready 0 > {userland} -> feeder_vchan_s16(0x10000010) -> > feeder_rate(44100 > -> 48000) -> {hardware} > [pcm0:record:0]: spd 48000, fmt 0x00000008/0x10000010, flags > 0x00000000, 0x00000000 > interrupts 0, overruns 0, hfree 16384, sfree 131072 > {hardware} -> feeder_root(0x10000010) -> > feeder_sign16le(0x10000010 -> 0x10000080) -> > feeder_stereotomono16(0x10000080 -> 0x00000080) -> > feeder_16leto8(0x00000080 -> 0x00000008) -> {userland} > pcm0:play:0[pcm0:virtual:0]: spd 32000/48000, fmt > 0x00000010/0x10000010, flags 0x10003030, 0x00000010, pid 34433 > interrupts 0, underruns 0, ready 65536 > {userland} -> feeder_root(0x00000010) -> > feeder_monotostereo16(0x00000010 -> 0x10000010) -> feeder_rate(32000 > -> 48000) -> {hardware} > pcm0:play:0[pcm0:virtual:1]: spd 8000/48000, fmt > 0x00000008/0x10000010, flags 0x10000000, 0x00000010 > interrupts 0, underruns 0, ready 0 > {userland} -> feeder_root(0x00000008) -> > feeder_sign8(0x00000008 > -> 0x00000040) -> feeder_monotostereo8(0x00000040 -> 0x10000040) -> > feeder_8to16le(0x10000040-> 0x10000010) -> feeder_rate(8000 -> > 48000) ->{hardware} > > File Versions: > $FreeBSD: src/sys/dev/sound/pci/ich.c,v 1.42.2.2 2004/10/07 18:38:55 > ps Exp $ > $FreeBSD: src/sys/dev/sound/isa/sndbuf_dma.c,v 1.2 2003/09/07 > 16:28:02 cg Exp $ > $FreeBSD: src/sys/dev/sound/pcm/vchan.c,v 1.16 2004/01/28 08:02:15 > truckman Exp $ > $FreeBSD: src/sys/dev/sound/pcm/ac97_patch.c,v 1.2 2003/08/21 > 15:44:55 orion Exp $ > $FreeBSD: src/sys/dev/sound/pcm/feeder.c,v 1.32 2003/09/07 16:28:03 > cg Exp $ > $FreeBSD: src/sys/dev/sound/pcm/sound.c,v 1.92 2004/07/16 03:59:09 > tanimura Exp $ > $FreeBSD: src/sys/dev/sound/pcm/fake.c,v 1.13 2003/09/07 16:28:03 cg > Exp$ > $FreeBSD: src/sys/dev/sound/pcm/sndstat.c,v 1.17.2.1 2004/09/14 > 06:43:46 truckman Exp $ > $FreeBSD: src/sys/dev/sound/pcm/dsp.c,v 1.77 2004/07/02 15:31:44 > netchild Exp $ > $FreeBSD: src/sys/dev/sound/pcm/mixer.c,v 1.40 2004/06/25 16:34:33 > josef Exp $ > $FreeBSD: src/sys/dev/sound/pcm/ac97.c,v 1.51 2004/05/08 03:41:40 > sanpei Exp $ > $FreeBSD: src/sys/dev/sound/pcm/feeder_rate.c,v 1.10 2003/04/20 > 17:08:56 orion Exp $ > $FreeBSD: src/sys/dev/sound/pcm/channel.c,v 1.97 2004/02/28 19:47:02 > truckman Exp $ > $FreeBSD: src/sys/dev/sound/pcm/feeder_fmt.c,v 1.13 2003/09/07 > 16:28:03 cg Exp $ > $FreeBSD: src/sys/dev/sound/pcm/buffer.c,v 1.23 2004/04/29 02:51:59 > green Exp $ > Try this patch: http://staff.mybsd.org.my/skywizard/FreeBSD/ac97.c.diff -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4)