qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* hw/display/xlinx-dp: fixing comment
@ 2023-08-26 10:20 Michael Tokarev
  2023-08-27 13:58 ` Frederic Konrad
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Tokarev @ 2023-08-26 10:20 UTC (permalink / raw)
  To: Frederic Konrad; +Cc: QEMU Developers, Peter Maydell

Hi!

Hopefully this address still works. If not, let's just commit Peter's comment.

Back in 2016, this commit introduced xlinx-dp.c:

commit 58ac482a66de09a7590f705e53fc6a3fb8a055e8
Author: Frederic Konrad <konrad.frederic@yahoo.fr>
Date:   Tue Jun 14 15:59:15 2016 +0100

     introduce xlnx-dp

     This is the implementation of the DisplayPort.
     It has an aux-bus to access dpcd and edid.


This commit has the following comment in it:

+static void xlnx_dp_audio_callback(void *opaque, int avail)
+{
+    /*
+     * Get some data from the DPDMA and compute these datas.
+     * Then wait for QEMU's audio subsystem to call this callback.
+     */

As it is, the commit is difficult to understand and has spelling
error in it (datas).  Is the following interpretation by Peter
Maydell correct?

    /*
     * Get the individual left and right audio streams from
     * the DPDMA, and fill the output buffer with the
     * combined stereo audio data adjusted by the volume
     * controls.
     * QEMU's audio subsystem will call this callback
     * repeatedly; we return it the data from the output
     * buffer until it is emptied, and then we will read
     * data from the DPDMA again.
     */

Thanks,

/mjt


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: hw/display/xlinx-dp: fixing comment
  2023-08-26 10:20 hw/display/xlinx-dp: fixing comment Michael Tokarev
@ 2023-08-27 13:58 ` Frederic Konrad
  0 siblings, 0 replies; 2+ messages in thread
From: Frederic Konrad @ 2023-08-27 13:58 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: QEMU Developers, Peter Maydell

[-- Attachment #1: Type: text/plain, Size: 1454 bytes --]

 Hi,
Yes that comment makes sense thanks.

Best Regards,Fred

    Le samedi 26 août 2023 à 12:20:35 UTC+2, Michael Tokarev <mjt@tls.msk.ru> a écrit :  
 
 Hi!

Hopefully this address still works. If not, let's just commit Peter's comment.

Back in 2016, this commit introduced xlinx-dp.c:

commit 58ac482a66de09a7590f705e53fc6a3fb8a055e8
Author: Frederic Konrad <konrad.frederic@yahoo.fr>
Date:  Tue Jun 14 15:59:15 2016 +0100

    introduce xlnx-dp

    This is the implementation of the DisplayPort.
    It has an aux-bus to access dpcd and edid.


This commit has the following comment in it:

+static void xlnx_dp_audio_callback(void *opaque, int avail)
+{
+    /*
+    * Get some data from the DPDMA and compute these datas.
+    * Then wait for QEMU's audio subsystem to call this callback.
+    */

As it is, the commit is difficult to understand and has spelling
error in it (datas).  Is the following interpretation by Peter
Maydell correct?

    /*
    * Get the individual left and right audio streams from
    * the DPDMA, and fill the output buffer with the
    * combined stereo audio data adjusted by the volume
    * controls.
    * QEMU's audio subsystem will call this callback
    * repeatedly; we return it the data from the output
    * buffer until it is emptied, and then we will read
    * data from the DPDMA again.
    */

Thanks,

/mjt
  

[-- Attachment #2: Type: text/html, Size: 3552 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-27 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-26 10:20 hw/display/xlinx-dp: fixing comment Michael Tokarev
2023-08-27 13:58 ` Frederic Konrad

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).