qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "andrzej zaborowski" <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC][PATCH 4/4] Add support for Marvell 88w8618 / MusicPal
Date: Thu, 17 Apr 2008 02:46:28 +0200	[thread overview]
Message-ID: <fb249edb0804161746r175b201cpb238605323a42139@mail.gmail.com> (raw)
In-Reply-To: <fb249edb0804161724k41985897q46f71c8a0cc94de@mail.gmail.com>

On 17/04/2008, andrzej zaborowski <balrogg@gmail.com> wrote:
>  On 13/04/2008, Jan Kiszka <jan.kiszka@web.de> wrote:
>  > This is the board emulation for Freecom's MusicPal, featuring
>  >   - rudimentary PIT and PIC
>  >   - up to 2 UARTs
>  >   - 88W8xx8 Ethernet controller
>  >   - 88W8618 audio controller
>  >   - Wolfson WM8750 mixer chip (volume control and mute only)
>
> Are you sure that hw/wm8750.c is not reusable?  It's probably better
>  to extend it with volume control, and audio data transmission through
>  i2c, instead of having two implementations in QEMU.
>
>  Regarding volume control, since there are only 0x7f possible values
>  it's nicer to use a const table than pull in math.h.  Actually I
>  wouldn't worry about that at all because the layout of volume levels
>  on the host is not guaranteed to be linear (I think?), it may very
>  well be already exponential.  For example the Linux WM8750 driver
>  doesn't do the reverse transformation which would mean that on a host
>  whose ALSA output device is a WM8750, the Qemu vm would have a wrong
>  volume scale.

Ah, we're multiplying the samples, rather than setting volume on host.
 Please ignore the above comment, but it would still be good to avoid
pow() (especially if return value is invariant across the loop and
perhaps across many buffer fills).
-- 
Please do not print this email unless absolutely necessary. Spread
environmental awareness.

  reply	other threads:[~2008-04-17  0:46 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13 10:11 [Qemu-devel] [RFC][PATCH 4/4] Add support for Marvell 88w8618 / MusicPal Jan Kiszka
2008-04-13 20:52 ` malc
2008-04-14  6:59   ` [Qemu-devel] " Jan Kiszka
2008-04-14 13:12     ` Stuart Brady
2008-04-14 16:21       ` Jan Kiszka
2008-04-14 16:49     ` malc
2008-04-14 17:47       ` Jan Kiszka
2008-04-15 17:38         ` malc
2008-04-15 21:03           ` Jan Kiszka
2008-04-16 18:40             ` malc
2008-04-17 19:06               ` Jan Kiszka
2008-04-14 19:21 ` Jan Kiszka
2008-04-14 21:34   ` Jan Kiszka
2008-04-17  0:24 ` [Qemu-devel] " andrzej zaborowski
2008-04-17  0:46   ` andrzej zaborowski [this message]
2008-04-17 19:06   ` [Qemu-devel] " Jan Kiszka
2008-04-18 18:12     ` Jan Kiszka
2008-04-18 18:43       ` andrzej zaborowski
2008-04-19 19:01         ` Jan Kiszka
2008-04-20  4:11           ` andrzej zaborowski
2008-04-20 15:52             ` Jan Kiszka
2008-04-20 17:38               ` andrzej zaborowski
2008-04-20 16:32 ` [Qemu-devel] [PATCH] " 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=fb249edb0804161746r175b201cpb238605323a42139@mail.gmail.com \
    --to=balrogg@gmail.com \
    --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).