[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC][PATCH 4/4] Add support for Marvell 88w8618 / Musi

From: andrzej zaborowski
Subject: Re: [Qemu-devel] [RFC][PATCH 4/4] Add support for Marvell 88w8618 / MusicPal
Date: Thu, 17 Apr 2008 02:24:58 +0200


On 13/04/2008, Jan Kiszka <address@hidden> 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.

>   - 128×64 display with brightness control
>   - all input buttons
>  Using up to 32 MB flash, I hit a limit /wrt phys_ram_size. I worked
>  around this for now by extending MAX_BIOS_SIZE to 32 MB, surely not a
>  nice solution.

You can use -m 150 or similar.

Please also format the code similarly to rest of Qemu.
Please do not print this email unless absolutely necessary. Spread
environmental awareness.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]