diff options
author | Volker RĂ¼melin <vr_qemu@t-online.de> | 2021-05-17 21:46:03 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-06-17 11:54:09 +0200 |
commit | 37a54d054f5aac43cb5721c68954b8b76d0db12d (patch) | |
tree | 891a4c1664a5e9e8867008e657d19ccec246afea /audio/paaudio.c | |
parent | 50db82d84ce24e893932ecb1aa90cc9c5560fc91 (diff) | |
download | qemu-37a54d054f5aac43cb5721c68954b8b76d0db12d.zip qemu-37a54d054f5aac43cb5721c68954b8b76d0db12d.tar.gz qemu-37a54d054f5aac43cb5721c68954b8b76d0db12d.tar.bz2 |
audio: move code to audio/audio.c
Move the code to generate the pa_context_new() application name
argument to a function in audio/audio.c. The new function
audio_application_name() will also be used in the jackaudio
backend.
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-Id: <20210517194604.2545-3-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio/paaudio.c')
-rw-r--r-- | audio/paaudio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/audio/paaudio.c b/audio/paaudio.c index 14b4269..75401d5 100644 --- a/audio/paaudio.c +++ b/audio/paaudio.c @@ -2,7 +2,6 @@ #include "qemu/osdep.h" #include "qemu/module.h" -#include "qemu-common.h" #include "audio.h" #include "qapi/opts-visitor.h" @@ -753,7 +752,6 @@ static int qpa_validate_per_direction_opts(Audiodev *dev, /* common */ static void *qpa_conn_init(const char *server) { - const char *vm_name; PAConnection *c = g_malloc0(sizeof(PAConnection)); QTAILQ_INSERT_TAIL(&pa_conns, c, list); @@ -762,9 +760,8 @@ static void *qpa_conn_init(const char *server) goto fail; } - vm_name = qemu_get_vm_name(); c->context = pa_context_new(pa_threaded_mainloop_get_api(c->mainloop), - vm_name ? vm_name : "qemu"); + audio_application_name()); if (!c->context) { goto fail; } |