From: Jan Kiszka <jan.kiszka@web.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Enable volume control globally (was: First cut at WM8750 volume control)
Date: Mon, 05 May 2008 20:43:18 +0200 [thread overview]
Message-ID: <481F5546.6070207@web.de> (raw)
In-Reply-To: <fb249edb0805041659l68e7dfeax276a91ac9a122562@mail.gmail.com>
andrzej zaborowski wrote:
> On 04/05/2008, Jan Kiszka <jan.kiszka@web.de> wrote:
>> andrzej zaborowski wrote:
>> > On 04/05/2008, Jan Kiszka <jan.kiszka@web.de> wrote:
>> >> -#define NOVOL
>> >> +//#define NOVOL
>> >>
>> >> /* 8 bit */
>> >> #define ENDIAN_CONVERSION natural
>> >>
>> >> to make the MusicPal work out-of-the-box (muting is now broken again,
>> >> causing loud noise during channel switches and while in suspended mode).
>> >
>> > Right, as I said you need to disable NOVOL manually if you want volume
>> > control. Changing this would affect users of all machines of all
>> > architectures and until now everyone was fine with using the host
>> > mixer instead of software mixing in qemu.
>>
>>
>> Well, this is a weak argument. So far there was no alternative available.
>
> I'm sure there would be an alternative if anybody wanted it.
>
>> I don't let you go with this ;): How should we find out what needs to be
>> fixed - given that hardly anyone is able to test on its own all the
>> supported boards with appropriate sound scenarios? What regressions are
>> you aware of when we switch NOVOL off?
>
> The regression is the overhead of two 32bit multiplications per sample
> per channel even if the virtual sound card you use has no volume
> control. For the wm8750 that's not easily noticeable but I'm
> personally not making it a default and not globally. (But I won't
> oppose if there's a wider agreement).
Well, let's start like below, and if someone complains, think about a
step-wise move towards out-of-the-box mixer support in QEMU.
----------
As we now have the possibility to set per-channel volume levels, thus to
emulated sound hardware more realistically, we just need to enable the
application of this values by disabling 'NOVOL'. Users can still disable
this support if desired or required, but it should be the aim now to
fix potential remaining issues of the soft-mixer.
This patch also unbreaks the MusicPal emulation, which depends on the
mute control so that users have to tweak the source code right now.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
---
audio/mixeng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/audio/mixeng.c
===================================================================
--- a/audio/mixeng.c
+++ b/audio/mixeng.c
@@ -28,7 +28,7 @@
#define AUDIO_CAP "mixeng"
#include "audio_int.h"
-#define NOVOL
+//#define NOVOL
/* 8 bit */
#define ENDIAN_CONVERSION natural
next prev parent reply other threads:[~2008-05-05 18:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-04 10:21 [Qemu-devel] [4321] First cut at WM8750 volume control (Jan Kiszka) Andrzej Zaborowski
2008-05-04 10:47 ` Jan Kiszka
2008-05-04 12:31 ` andrzej zaborowski
2008-05-04 15:49 ` andrzej zaborowski
2008-05-04 17:31 ` Jan Kiszka
2008-05-04 17:31 ` Jan Kiszka
2008-05-04 23:59 ` andrzej zaborowski
2008-05-05 18:43 ` Jan Kiszka [this message]
2008-05-04 21:33 ` [Qemu-devel] [PATCH] musicpal: doc fragment Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=481F5546.6070207@web.de \
--to=jan.kiszka@web.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).