diff options
| author | Volker Rümelin <vr_qemu@t-online.de> | 2023-01-21 10:47:26 +0100 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-06 10:30:23 +0400 |
| commit | 90394fe15f95f58ad34684541cd480422b31d0af (patch) | |
| tree | 9a81c72866b4fd4c04dfd778707529bfc967c751 | |
| parent | b9ae74e2e497154f77b109743c77fa97c71d71c1 (diff) | |
| download | focaccia-qemu-90394fe15f95f58ad34684541cd480422b31d0af.tar.gz focaccia-qemu-90394fe15f95f58ad34684541cd480422b31d0af.zip | |
audio: don't show unnecessary error messages
Let the audio_pcm_create_voice_pair_* functions handle error reporting. This avoids an additional error message in case the guest selected an unimplemented sample rate. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230121094735.11644-2-vr_qemu@t-online.de>
| -rw-r--r-- | audio/audio_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_template.h b/audio/audio_template.h index dbfb4fee4c..f0ef262ab3 100644 --- a/audio/audio_template.h +++ b/audio/audio_template.h @@ -441,6 +441,7 @@ static SW *glue(audio_pcm_create_voice_pair_, TYPE)( hw = glue(audio_pcm_hw_add_, TYPE)(s, &hw_as); if (!hw) { + dolog("Could not create a backend for voice `%s'\n", sw_name); goto err2; } @@ -540,7 +541,6 @@ SW *glue (AUD_open_, TYPE) ( } else { sw = glue(audio_pcm_create_voice_pair_, TYPE)(s, name, as); if (!sw) { - dolog ("Failed to create voice `%s'\n", name); return NULL; } } |