[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/1] hw/audio/sb16.c: missing break statement
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH 1/1] hw/audio/sb16.c: missing break statement |
Date: |
Thu, 8 Feb 2018 13:51:09 +0000 |
On 8 February 2018 at 13:34, Philippe Mathieu-Daudé <address@hidden> wrote:
> Now I see Fabrice comment "FT2 sets output freq with this, go figure"
> and agree with him.
>
> I like to think this is a bug in Fast Tracker 2, so Peter suggestion
> about using LOG_GUEST_ERROR here might be clever.
>
>>
>> So imho the simpler/safer fix would be:
>>
>> case 0x42:
>> if (dsp_get_hilo(s) != s->freq) {
>> qemu_log_mask(LOG_UNIMP,
>> "input sampling freq different than "
>> "output not implemented");
>> }
>> /* fallthrough */
>> case 0x41:
>> ...
Wouldn't this falsely report a warning for guest code that really
is trying to set the input sampling frequency and doesn't care
about output?
>> and the correct fix would be split s->freq in {s->freq_in, s->freq_out}
...but that would differ from the hardware implementation, which
(apparently) uses a single frequency for both.
thanks
-- PMM