Skip to contentSkip to conversation

Qemu-devel Digest, Vol 189, Issue 424

Qemu-devel Programmingkid 2 participants 5 messages Jan 1, 2019 – Jan 4, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 122 lines · On Dec 31, 2018, at 12:00 PM, [email protected] wrote:

Message: 2
Date: Mon, 31 Dec 2018 16:50:47 +0100
From: "=?UTF-8?B?S8WRdsOhZ8OzIFpvbHTDoW4=?=" <[email protected]>
To: Programmingkid <[email protected]>
Cc: QEMU Developers <[email protected]>, Gerd Hoffmann
<[email protected]>
Subject: Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

Quoted 97 lines · Programmingkid
Quoted 97 lines · Zolt?n K?v?g?
Quoted 79 lines · Programmingkid
Quoted 79 lines · K?v?g? Zolt?n
Quoted 63 lines · Programmingkid
Quoted 9 lines · K?v?g? Zolt?n

Hi,

I've pushed it to my github (modulo some random fixes not yet on the mailing list):
https://github.com/DirtYiCE/qemu/tree/audio-51-2018

Quoted 36 lines

I don't have a mac so I have no idea whether it works or not.

Regards,
Zoltan

Quoted 29 lines · Programmingkid
Quoted 13 lines · On Dec 23, 2018, at 3:52 PM, [email protected] wrote:

Message: 4
Date: Sun, 23 Dec 2018 21:51:36 +0100
From: "=?UTF-8?q?K=C5=91v=C3=A1g=C3=B3=2C=20Zolt=C3=A1n?="
<[email protected]>
To: [email protected]
Cc: Gerd Hoffmann <[email protected]>
Subject: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

Quoted 7 lines

Hi,

I've updated my audio patchset to the current git master. Other than that not much happened since my last update [1], fixed a few small problems that I noticed while rebasing my patches.

Please review.

<snip>

Hi I would like to run your patches. Do you have a repository that I may clone?

Also have you been able to test these patches using a Mac OS X guest yet?

Thank you.

Hi, thanks for the link. This is what I did:

- git clone https://github.com/DirtYiCE/qemu.git
- git checkout audio-51-2018
- ./configure --target-list=ppc-softmmu
- make -j 4

The result was unfortunately some errors:

CC audio/coreaudio.o
audio/coreaudio.c:413:49: error: unknown type name 'HWVocieOut'; did you mean
'HWVoiceOut'?
COREAUDIO_WRAPPER_FUNC(get_buffer_out, void *, (HWVocieOut *hw, size_t *size),

                                             ^~~~~~~~~~
                                             HWVoiceOut
Quoted 7 lines

audio/coreaudio.c:578:29: error: passing 'struct audio_pcm_info' to parameter of
incompatible type 'struct audio_pcm_info *'; take the address with &

     coreaudio_get_flags(hw->info, as);
                         ^~~~~~~~
                         &

Hi,

I pushed an updated version, it should fix the compile errors (hopefully).

Quoted 9 lines
Quoted 2 lines

Regards,
Zoltan

Thank you for the update. I tested this series using a Mac OS 10.4 and Windows 2000 guest. Both were using a USB sound card. The sound that comes out of my speakers is demonic! It is the loudest, scariest sound I have ever heard. I'm sorry but this patch series ruins the USB sound card.

I am happy to test out any future updates that you make this patch series.

Thank you.

I'm sorry to hear that. Could you please test it with some other card, like the hda? Even though usb works fine for me on Linux with alsa so the problem is probably with the coreaudio backend.

Quoted 9 lines
Quoted 2 lines

Regards,
Zoltan

I tried ac97 with a Windows 2000 guest in qemu-system-i386 - same demonic sound.
With the above configuration but with an es1370 sound card I heard the same sound. I kept seeing "es1370: warning: non looping mode" being printed in the terminal. This problem might need its own patch. Using the sb16 sound card I heard the same unsettling sound.

I could not test the HDA driver due to problems with my Windows 7 VM.

Quoted 8 lines

I have a feeling that bf870a0cf5e2c2dd7438e65473b4fca1fb0ca5d1 (coreaudio: port to the new audio backend api) is the commit which breaks it, but without a mac I don't know how could I debug it. The way it initializes coreaudio changed a bit, that can cause problems. Could you please test whether this commit is the culprit or not?

Regards,
Zoltan

Hi how do you want me to test your theory? Revert the patch? If I did would QEMU still compile?

#2 lore raw

Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches

Quoted 122 lines · On Dec 31, 2018, at 12:00 PM, [email protected] wrote:

Message: 2
Date: Mon, 31 Dec 2018 16:50:47 +0100
From: "=?UTF-8?B?S8WRdsOhZ8OzIFpvbHTDoW4=?=" <[email protected]>
To: Programmingkid <[email protected]>
Cc: QEMU Developers <[email protected]>, Gerd Hoffmann
<[email protected]>
Subject: Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8

Quoted 97 lines · Programmingkid
Quoted 97 lines · Zolt?n K?v?g?
Quoted 79 lines · Programmingkid
Quoted 79 lines · K?v?g? Zolt?n
Quoted 63 lines · Programmingkid
Quoted 9 lines · K?v?g? Zolt?n

Hi,

I've pushed it to my github (modulo some random fixes not yet on the mailing list):
https://github.com/DirtYiCE/qemu/tree/audio-51-2018

Quoted 36 lines

I don't have a mac so I have no idea whether it works or not.

Regards,
Zoltan

Quoted 29 lines · Programmingkid
Quoted 13 lines · On Dec 23, 2018, at 3:52 PM, [email protected] wrote:

Message: 4
Date: Sun, 23 Dec 2018 21:51:36 +0100
From: "=?UTF-8?q?K=C5=91v=C3=A1g=C3=B3=2C=20Zolt=C3=A1n?="
<[email protected]>
To: [email protected]
Cc: Gerd Hoffmann <[email protected]>
Subject: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8

Quoted 7 lines

Hi,

I've updated my audio patchset to the current git master. Other than that not much happened since my last update [1], fixed a few small problems that I noticed while rebasing my patches.

Please review.

<snip>

Hi I would like to run your patches. Do you have a repository that I may clone?

Also have you been able to test these patches using a Mac OS X guest yet?

Thank you.

Hi, thanks for the link. This is what I did:

- git clone https://github.com/DirtYiCE/qemu.git
- git checkout audio-51-2018
- ./configure --target-list=ppc-softmmu
- make -j 4

The result was unfortunately some errors:

CC audio/coreaudio.o
audio/coreaudio.c:413:49: error: unknown type name 'HWVocieOut'; did you mean
'HWVoiceOut'?
COREAUDIO_WRAPPER_FUNC(get_buffer_out, void *, (HWVocieOut *hw, size_t *size),

                                            ^~~~~~~~~~
                                            HWVoiceOut
Quoted 7 lines

audio/coreaudio.c:578:29: error: passing 'struct audio_pcm_info' to parameter of
incompatible type 'struct audio_pcm_info *'; take the address with &

    coreaudio_get_flags(hw->info, as);
                        ^~~~~~~~
                        &

Hi,

I pushed an updated version, it should fix the compile errors (hopefully).

Quoted 9 lines
Quoted 2 lines

Regards,
Zoltan

Thank you for the update. I tested this series using a Mac OS 10.4 and Windows 2000 guest. Both were using a USB sound card. The sound that comes out of my speakers is demonic! It is the loudest, scariest sound I have ever heard. I'm sorry but this patch series ruins the USB sound card.

I am happy to test out any future updates that you make this patch series.

Thank you.

I'm sorry to hear that. Could you please test it with some other card, like the hda? Even though usb works fine for me on Linux with alsa so the problem is probably with the coreaudio backend.

Quoted 9 lines
Quoted 2 lines

Regards,
Zoltan

I tried ac97 with a Windows 2000 guest in qemu-system-i386 - same demonic sound.
With the above configuration but with an es1370 sound card I heard the same sound. I kept seeing "es1370: warning: non looping mode" being printed in the terminal. This problem might need its own patch. Using the sb16 sound card I heard the same unsettling sound.

I could not test the HDA driver due to problems with my Windows 7 VM.

Quoted 8 lines

I have a feeling that bf870a0cf5e2c2dd7438e65473b4fca1fb0ca5d1 (coreaudio: port to the new audio backend api) is the commit which breaks it, but without a mac I don't know how could I debug it. The way it initializes coreaudio changed a bit, that can cause problems. Could you please test whether this commit is the culprit or not?

Regards,
Zoltan

Hi how do you want me to test your theory? Revert the patch? If I did I don't think QEMU would still compile.

#3 lore raw

Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches

Quoted 1 line · Programmingkid
Quoted 1 line · Programmingkid

[snip]

Quoted 15 lines
Quoted 15 lines
Quoted 7 lines

I tried ac97 with a Windows 2000 guest in qemu-system-i386 - same demonic sound.
With the above configuration but with an es1370 sound card I heard the same sound. I kept seeing "es1370: warning: non looping mode" being printed in the terminal. This problem might need its own patch. Using the sb16 sound card I heard the same unsettling sound.

I could not test the HDA driver due to problems with my Windows 7 VM.

I have a feeling that bf870a0cf5e2c2dd7438e65473b4fca1fb0ca5d1 (coreaudio: port to the new audio backend api) is the commit which breaks it, but without a mac I don't know how could I debug it. The way it initializes coreaudio changed a bit, that can cause problems. Could you please test whether this commit is the culprit or not?

Quoted 5 lines
Quoted 2 lines

Regards,
Zoltan

Hi how do you want me to test your theory? Revert the patch? If I did I don't think QEMU would still compile.

No, don't revert it, that would generate too many conflicts. Just

git checkout bf870a0c

and

git checkout bf870a0c~

should give you two versions that you can compare.

Regards,
Zoltan

#4 lore raw

Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches

Quoted 25 lines · Zoltán Kővágó
Quoted 1 line · Programmingkid
Quoted 1 line · Programmingkid

[snip]

Quoted 19 lines
Quoted 17 lines
Quoted 7 lines

I tried ac97 with a Windows 2000 guest in qemu-system-i386 - same demonic sound.
With the above configuration but with an es1370 sound card I heard the same sound. I kept seeing "es1370: warning: non looping mode" being printed in the terminal. This problem might need its own patch. Using the sb16 sound card I heard the same unsettling sound.

I could not test the HDA driver due to problems with my Windows 7 VM.

I have a feeling that bf870a0cf5e2c2dd7438e65473b4fca1fb0ca5d1 (coreaudio: port to the new audio backend api) is the commit which breaks it, but without a mac I don't know how could I debug it. The way it initializes coreaudio changed a bit, that can cause problems. Could you please test whether this commit is the culprit or not?

Regards,
Zoltan

Quoted 5 lines
Quoted 1 line

Hi how do you want me to test your theory? Revert the patch? If I did I don't think QEMU would still compile.

No, don't revert it, that would generate too many conflicts. Just

git checkout bf870a0c

This causes the very disturbing sound to play.

Quoted 4 lines

and

git checkout bf870a0c~

This also causes the very disturbing sound to play.

Quoted 5 lines

should give you two versions that you can compare.

Regards,
Zoltan

Thank you.

#5 lore raw

Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches

Quoted 41 lines · Programmingkid
Quoted 25 lines · Zoltán Kővágó
Quoted 1 line · Programmingkid
Quoted 1 line · Programmingkid

[snip]

Quoted 19 lines
Quoted 17 lines
Quoted 7 lines

I tried ac97 with a Windows 2000 guest in qemu-system-i386 - same demonic sound.
With the above configuration but with an es1370 sound card I heard the same sound. I kept seeing "es1370: warning: non looping mode" being printed in the terminal. This problem might need its own patch. Using the sb16 sound card I heard the same unsettling sound.

I could not test the HDA driver due to problems with my Windows 7 VM.

I have a feeling that bf870a0cf5e2c2dd7438e65473b4fca1fb0ca5d1 (coreaudio: port to the new audio backend api) is the commit which breaks it, but without a mac I don't know how could I debug it. The way it initializes coreaudio changed a bit, that can cause problems. Could you please test whether this commit is the culprit or not?

Regards,
Zoltan

Quoted 5 lines
Quoted 1 line

Hi how do you want me to test your theory? Revert the patch? If I did I don't think QEMU would still compile.

No, don't revert it, that would generate too many conflicts. Just

git checkout bf870a0c

This causes the very disturbing sound to play.

Quoted 4 lines

and

git checkout bf870a0c~

This also causes the very disturbing sound to play.

Quoted 1 line
Quoted 7 lines
Quoted 4 lines

should give you two versions that you can compare.

Regards,
Zoltan

Thank you.

That's worrying, since before that commit I didn't really do any big refactoring on coreaudio itself, and without a Mac I have no idea how could I debug it.
Could you at least try a git bisect and figure out which commit broke it?

Thanks,
Zoltan