[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/11] audio: don't show unnecessary error messages
From: |
Volker Rümelin |
Subject: |
[PATCH v2 02/11] audio: don't show unnecessary error messages |
Date: |
Sat, 21 Jan 2023 10:47:26 +0100 |
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>
---
audio/audio_template.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/audio/audio_template.h b/audio/audio_template.h
index bfa94b4d22..ee320a2e3f 100644
--- a/audio/audio_template.h
+++ b/audio/audio_template.h
@@ -421,6 +421,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;
}
@@ -520,7 +521,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;
}
}
--
2.35.3
- [PATCH v2 05/11] audio/mixeng: use g_new0() instead of audio_calloc(), (continued)
- [PATCH v2 05/11] audio/mixeng: use g_new0() instead of audio_calloc(), Volker Rümelin, 2023/01/21
- [PATCH v2 03/11] audio: rename hardware store to backend, Volker Rümelin, 2023/01/21
- [PATCH v2 06/11] audio/alsaaudio: use g_new0() instead of audio_calloc(), Volker Rümelin, 2023/01/21
- [PATCH v2 08/11] audio/audio_template: use g_new0() to replace audio_calloc(), Volker Rümelin, 2023/01/21
- [PATCH v2 11/11] alsaaudio: reintroduce default recording settings, Volker Rümelin, 2023/01/21
- [PATCH v2 07/11] audio/audio_template: use g_malloc0() to replace audio_calloc(), Volker Rümelin, 2023/01/21
- [PATCH v2 02/11] audio: don't show unnecessary error messages,
Volker Rümelin <=
- [PATCH v2 09/11] audio: remove audio_calloc() function, Volker Rümelin, 2023/01/21
- [PATCH v2 01/11] audio: log unimplemented audio device sample rates, Volker Rümelin, 2023/01/21
- [PATCH v2 10/11] alsaaudio: change default playback settings, Volker Rümelin, 2023/01/21
- Re: [PATCH v2 00/11] audio: more improvements, Marc-André Lureau, 2023/01/31