From owner-freebsd-mobile Mon Mar 26 22:58: 6 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by hub.freebsd.org (Postfix) with ESMTP id 22C6837B719 for ; Mon, 26 Mar 2001 22:58:03 -0800 (PST) (envelope-from david@catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.10.0/8.10.0) id f2R6w2c13898 for mobile@freebsd.org; Mon, 26 Mar 2001 22:58:02 -0800 (PST) Date: Mon, 26 Mar 2001 22:58:02 -0800 (PST) From: David Wolfskill Message-Id: <200103270658.f2R6w2c13898@bunrab.catwhisker.org> To: mobile@freebsd.org Subject: Reality check on ESS Technology Maestro-2E h/w "mute" function? Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I was about to attend a meeting, so I wanted to fire up this laptop beforehand, because it makes various chirpy noises as it comes up. And in some -- possibly many -- circumstances, this is a reasonably Good Thing. But in a public meeting, that can be a little disruptive; there are times I'd like to be a little less obnoxious. :-} I could hit the Fn+Page Dn keys a bunch of times to make the sound softer, but it would seem that the Fn+End keys *should* do the trick in a single chord. So I tried that "mute" combination anyway, and saw the message: Mar 26 18:50:21 localhost /kernel: pcm0: pcm0: unknown HWVOL event 0x77 Oh. Well. Hmm.... Poked around, and found src/sys/dev/sound/pci/maestro_reg.h, which has: #define PORT_HWVOL_MASTER_SHADOW 0x1e /* BYTE RW */ #define PORT_HWVOL_MASTER 0x1f /* BYTE RW */ #define HWVOL_NOP 0x88 #define HWVOL_MUTE 0x99 #define HWVOL_UP 0xaa #define HWVOL_DOWN 0x66 and sure enough, there was no mention of 0x77 anywhere. So for a basic reality check, I replaced the "0x99" by "0x77" & re-built the kernel. After I got home, I tried it... and it works just fine, with that hack: I can now use the hardware "mute" function -- even just before the kernel gets loaded, and it doesn't chirp at all. The output from "mixer" says "vol 0:0". I hit the "mute" chord again, and it says "vol 75:75". Cool. So... is this Weird(er than usual) Hardware? Is the value 0x99 a useful one for someone, or do I get to file a PR requesting a change to the value 0x77? (If 0x99 *is* useful, I guess I need to figure out how to distinguish one from the other....) Thanks, david -- David H. Wolfskill david@catwhisker.org As a computing professional, I believe it would be unethical for me to advise, recommend, or support the use (save possibly for personal amusement) of any product that is or depends on any Microsoft product. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message