mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/display/xlnx_dp: update comments
Clarify somewhat misleading code comments. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
3202d8e404
commit
d864cf2592
1 changed files with 6 additions and 3 deletions
|
@ -380,13 +380,16 @@ static inline void xlnx_dp_audio_mix_buffer(XlnxDPState *s)
|
||||||
static void xlnx_dp_audio_callback(void *opaque, int avail)
|
static void xlnx_dp_audio_callback(void *opaque, int avail)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Get some data from the DPDMA and compute these data.
|
* Get the individual left and right audio streams from the DPDMA,
|
||||||
* Then wait for QEMU's audio subsystem to call this callback.
|
* 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 the data from the output buffer until it is emptied,
|
||||||
|
* and then we will read data from the DPDMA again.
|
||||||
*/
|
*/
|
||||||
XlnxDPState *s = XLNX_DP(opaque);
|
XlnxDPState *s = XLNX_DP(opaque);
|
||||||
size_t written = 0;
|
size_t written = 0;
|
||||||
|
|
||||||
/* If there are already some data don't get more data. */
|
|
||||||
if (s->byte_left == 0) {
|
if (s->byte_left == 0) {
|
||||||
s->audio_data_available[0] = xlnx_dpdma_start_operation(s->dpdma, 4,
|
s->audio_data_available[0] = xlnx_dpdma_start_operation(s->dpdma, 4,
|
||||||
true);
|
true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue