Date: Wed, 7 Jun 2000 23:24:41 -0400 From: Randall Hopper <aa8vb@nc.rr.com> To: Oliver Brandmueller <ob@e-Gitt.NET> Cc: multimedia@freebsd.org Subject: Re: [gandalf@vilnya.demon.co.uk: Re: Problems with the ES137x driver] Message-ID: <20000607232441.A7335@nc.rr.com> In-Reply-To: <20000606093347.B3659@e-Gitt.NET>; from ob@e-Gitt.NET on Tue, Jun 06, 2000 at 09:33:47AM %2B0200 References: <20000606093347.B3659@e-Gitt.NET>
next in thread | previous in thread | raw e-mail | index | archive | help
I don't see how this behavior cannot be a bug. The driver is talking a different convention for set and get values for volumes: Udo Erdelhoff: |The result is consistent for all mixer devices: |Input Value Output Value |0 0 |1 4 |2 4 |3 4 |4 7 |5 7 |6 7 |7 10 Set a 1, get a 4, set a 4, get a 7, set a 7, get a 10. That sure looks like an off-by-one error to me. Even if this is fixed in the driver (which will solve "walking volume" problem), the presence of the rounding behavior by itself seems strange. Voxware virtualizes volume levels to 1% accuracy. It's a good thing because some sound cards only have 6 or so levels. OSS borrowed the Voxware interface. That OSS doesn't follow Voxware convention for volume query accuracy would seem to be an OSS bug. Or maybe I'm missing something. Randall Oliver Brandmueller: |Hello all, | |about the problem with the ES137x driver I had (fxtv getting louder |everytime I switch the channel) I mailed Cameron Grant, maintainer of the |driver, about my problem and received the following answer from him. Due |to problems with his mail account he doesn't post it himself to the list |at the moment but allowed me to forward this mail. | |Randall, if I understand it in the right way, Cameron thinks, the |behaviour of fxtv should be slightly different regarding the volume |setting. | | |Thanx, Oliver | |----- Forwarded message from Cameron Grant <gandalf@vilnya.demon.co.uk> ----- | |From: "Cameron Grant" <gandalf@vilnya.demon.co.uk> |To: "Oliver Brandmueller" <ob@e-Gitt.NET> |Subject: Re: Problems with the ES137x driver |Date: Sat, 3 Jun 2000 04:49:09 +0100 |X-Mailer: Microsoft Outlook Express 5.00.2919.6700 | |> as recently discussed on the multimedia list, I have a little problem with |> the ES137x sound driver (and others do have the same). The problem is, |> that setting and then getting the volume doesn't give the same value. I |> noticed it together with fxtv, which gets louder ewverytime I switch the |> channel or just get over it with the mouse. |> |> The problem can best be tracked with "mixer" on the command line: |> |> (14:04) ob@draculas:ttyp3 [~] mixer pcm 40 |> Setting the mixer pcm to 40:40. |> (14:04) ob@draculas:ttyp3 [~] mixer pcm |> Mixer pcm is currently set to 42:42 |> (14:15) ob@draculas:ttyp3 [~] mixer pcm 42 |> Setting the mixer pcm to 42:42. |> (14:15) ob@draculas:ttyp3 [~] mixer pcm |> Mixer pcm is currently set to 46:46 |> (14:15) ob@draculas:ttyp3 [~] mixer pcm 46 |> Setting the mixer pcm to 46:46. |> (14:16) ob@draculas:ttyp3 [~] mixer pcm |> Mixer pcm is currently set to 49:49 |> |> and so on. |> |> Here are the basic facts about my system: |> |> FreeBSD draculas.gruft.de 4.0-STABLE FreeBSD 4.0-STABLE #2: Fri May 26 |> 18:09:49 CEST 2000 root@draculas.gruft.de:/usr/src/sys/compile/DRACULA |> i386 |> |> pci0: <unknown card> (vendor=0x109e, dev=0x0878) at 8.1 irq 10 |> pcm0: <AudioPCI ES1371> port 0xe000-0xe03f irq 10 at device 9.0 on pci0 |> |> es137x.c: $FreeBSD: src/sys/dev/sound/pci/es137x.c,v 1.13.2.1 2000/05/12 |04:13:47 cg Exp $ |> |> es137x.h: $FreeBSD: src/sys/dev/sound/pci/es137x.h,v 1.3.2.1 2000/05/12 |04:13:47 cg Exp $ |> |> |> Hope I mailed the right one... Sorry, I'm not a coder (just an admin ;)) |> so I can't give you any patches to solve the problem yet. Do you think, |> you could have a look at it? I'm starting to annoy my neighbour with |> zapping ;;) (just a joke!). | |this will occur with all cards, as the generic mixer code returns the actual |value set instead of the value it was told to set. according to the oss |specification, this is the expected behaviour. i am aware of the issue, and |if it continues to affect a significant number of applications, i will |adjust the mixer code. | | -cg | | |----- End forwarded message ----- | |-- || Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | || Fon +49-172-3130856 | Fax +49-172-3145027 | http://www.obh.snafu.de/~ob/ | || Ich bin das Internet. Sowahr ich Gott helfe. | || Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | | | |To Unsubscribe: send mail to majordomo@FreeBSD.org |with "unsubscribe freebsd-multimedia" in the body of the message -- Randall Hopper aa8vb@nc.rr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000607232441.A7335>