From owner-freebsd-current@FreeBSD.ORG Tue Sep 28 15:21:12 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DA2C16A4CE for ; Tue, 28 Sep 2004 15:21:12 +0000 (GMT) Received: from it.buh.tecnik93.com (it.buh.tecnik93.com [81.196.204.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A08643D49 for ; Tue, 28 Sep 2004 15:21:09 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id D4B6B1AF; Tue, 28 Sep 2004 09:21:26 +0300 (EEST) Date: Tue, 28 Sep 2004 09:21:26 +0300 From: Ion-Mihai Tetcu To: Adam Smith Message-ID: <20040928092126.1ddeb093@it.buh.tecnik93.com> In-Reply-To: <20040928022301.GE33535@internode.com.au> References: <20040928022301.GE33535@internode.com.au> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: Mixer settings revert to zero X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 15:21:12 -0000 On Tue, 28 Sep 2004 11:53:02 +0930 Adam Smith wrote: > > Hi! > > With the recent changes to the sound drivers, will the mixer begin working > like it used to before 5.3 is released? The release notes for 5.3-BETA6 > say that "the sound(4) driver reads /boot/device.hints on startup, to allow > setting of default values for mixer channels." > > But this doesn't seem to be happening. The release notes also say the > device driver's name is still pcm, however I couldn't find this in > /boot/device.hints. In my particular case, I am using the device ich for > my sound. > > Because the mixer settings are not being picked up properly, upon boot, my > system's mixer settings all revert to zero. I have to fix them manually by > applying levels to 'pcm' and 'vol'. > > Is this a problem across the board at the moment with mixer settings, or > applicable to only certain drivers (such as ich?) Is there anything I can > do to fix the problem, or will it be fixed before 5.3? At least for me not the detection is the problem, but the result is the same: > From: Ion-Mihai Tetcu > Newsgroups: comp.unix.bsd.freebsd.misc > Subject: 5.3-BETA{3|4} mixer vol always 0:0 after reboot > Date: Mon, 13 Sep 2004 02:34:57 +0300 > > Hi, > > > Is anyone else seeing this ? > > For me it was OK until BETA2, it begun on BETA3 on it continues on > BETA4. > > The settings seems to be saved: > # cat /var/db/mixer0-state > vol 95:95 pcm 34:34 speaker 0:0 line 0:0 mic 0:0 cd 0:0 rec 0:0 ogain 0:0 line1 0:0 phin 0:0 phout 0:0 video 0:0 > > But I get vol 0:0 after reboot. > > I'm loading kld in /boot/ > # grep snd /boot/loader.conf > snd_via8233_load="YES" > > and the device is recognised: > /var/run/dmesg.boot: > ........ > Preloaded elf module "/boot/kernel/snd_via8233.ko" at 0xc0857448. > Preloaded elf module "/boot/kernel/sound.ko" at 0xc08574f8. > .......... > pcm0: port 0xe400-0xe4ff irq 22 at device 17.5 on pci0 > pcm0: Reserved 0x100 bytes for rid 0x10 type 4 at 0xe400 > pcm0: [GIANT-LOCKED] > pcm0: > pcm0: Codec features 20 bit DAC, 18 bit ADC, 5 bit master volume, Realtek 3D Stereo Enhancement > pcm0: Primary codec extended features variable rate PCM, double rate PCM, reserved 1, center DAC, s > urround DAC, LFE DAC, reserved 4 > pcm0: sndbuf_setmap 275000, 1000; 0xc2381000 -> 275000 > pcm0: sndbuf_setmap 293000, 1000; 0xc237f000 -> 293000 > pcm0: sndbuf_setmap 291000, 1000; 0xc237d000 -> 291000 > pcm0: sndbuf_setmap 26f000, 1000; 0xc237b000 -> 26f000 > pcm0: sndbuf_setmap 28d000, 1000; 0xc2379000 -> 28d000 > pcm0: sndbuf_setmap 2c3000, 1000; 0xc238f000 -> 2c3000 > ............. > > # cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0xe400 irq 22 kld snd_via8233 (5p/1r/0v channels duplex default) > > # ident /etc/rc.d/mixer > /etc/rc.d/mixer: > $FreeBSD: src/etc/rc.d/mixer,v 1.3 2004/03/27 09:26:22 dougb Exp $ -- IOnut Unregistered ;) FreeBSD "user"