You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/audio
Michal Privoznik 4cd78a3db2 audio/pw: Report more accurate error when connecting to PipeWire fails
According to its man page [1], pw_context_connect() sets errno on
failure:

  Returns a Core on success or NULL with errno set on error.

It may be handy to see errno when figuring out why PipeWire
failed to connect. That leaves us with just one possible path to
reach 'fail_error' label which is then moved to that path and
also its error message is adjusted slightly.

1: https://docs.pipewire.org/group__pw__core.html#ga5994e3a54e4ec718094ca02a1234815b

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <3a78811ad5b0e87816b7616ab21d2eeef00b9c52.1726647033.git.mprivozn@redhat.com>
2 months ago
..
alsaaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
audio-hmp-cmds.c audio: return Error ** from audio_state_by_name 1 year ago
audio.c audio/audio.c: remove trailing newline in error_setg 11 months ago
audio.h audio: reintroduce default audio backend for VNC 1 year ago
audio_int.h audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
audio_template.h audio: commonize voice initialization 1 year ago
audio_win_int.c Remove qemu-common.h include from most units 3 years ago
audio_win_int.h Windows Waveform Audio driver (no ADC support yet) 15 years ago
coreaudio.m audio: Drop ifdef for macOS versions older than 12.0 5 months ago
dbusaudio.c ui: add more tracing for dbus 4 months ago
dsound_template.h dsoundaudio: replace GetForegroundWindow() 4 years ago
dsoundaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
jackaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
meson.build meson: remove unnecessary dependency 6 months ago
mixeng.c audio: make recording packet length calculation exact 2 years ago
mixeng.h audio: spelling fixes 1 year ago
mixeng_template.h audio: fix saturation nonlinearity in clip_* functions 5 years ago
noaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
ossaudio.c audio/ossaudio: Fix compiler warning with -Wshadow 1 year ago
paaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
pwaudio.c audio/pw: Report more accurate error when connecting to PipeWire fails 2 months ago
rate_template.h audio: make the resampling code greedy 2 years ago
sdlaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
sndioaudio.c audio: remove QEMU_AUDIO_* and -audio-help support 1 year ago
spiceaudio.c audio: allow returning an error from the driver init 1 year ago
trace-events ui: add more tracing for dbus 4 months ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
wavaudio.c audio: don't abort on f32 audio format in wav backend 1 year ago
wavcapture.c monitor: Use getter/setter functions for cur_mon 4 years ago