]> git.proxmox.com Git - mirror_qemu.git/commit - audio/noaudio.c
audio: add driver registry
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 6 Mar 2018 07:40:47 +0000 (08:40 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 12 Mar 2018 10:18:26 +0000 (11:18 +0100)
commitd3893a39eb0165809325071ab07984797d78e57a
treead48738682ee38a743635bc79a99c62515f3998b
parenta88afc649e53adc1cac00bb5803fbafdd4d99994
audio: add driver registry

Add registry for audio drivers, using the existing audio_driver struct.
Make all drivers register themself.  The old list of audio_driver struct
pointers is now a list of audio driver names, specifying the priority
(aka probe order) in case no driver is explicitly asked for.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20180306074053.22856-2-kraxel@redhat.com
12 files changed:
audio/alsaaudio.c
audio/audio.c
audio/audio_int.h
audio/coreaudio.c
audio/dsoundaudio.c
audio/noaudio.c
audio/ossaudio.c
audio/paaudio.c
audio/sdlaudio.c
audio/spiceaudio.c
audio/wavaudio.c
scripts/create_config