Sound Card Volume isn't adjustable (Sis 7012/snd_ich)
Ariff Abdullah
skywizard at time.net.my
Fri Oct 29 11:50:06 PDT 2004
On Fri, 29 Oct 2004 12:14:45 -0600
Jason Sheets <jason.sheets at hp.com> 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: <SiS 7012> port 0x9000-0x907f,0x9400-0x94ff irq 18 at device
> 2.7 on pci0
> pcm0: [GIANT-LOCKED]
> pcm0: <C-Media Electronics CMI9739 AC97 Codec>
>
> 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: <SiS 7012> 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)
More information about the freebsd-questions
mailing list