summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJuan Quintela2009-07-27 16:13:25 +0200
committerAnthony Liguori2009-07-27 21:10:55 +0200
commit2358a4940b7f9b863fa8084960f40517985df8c1 (patch)
tree5991a7b52556e56f016567504027ab0d5a712e93 /audio
parentrename USE_NPTL to CONFIG_USE_NPTL (diff)
downloadqemu-2358a4940b7f9b863fa8084960f40517985df8c1.tar.gz
qemu-2358a4940b7f9b863fa8084960f40517985df8c1.tar.xz
qemu-2358a4940b7f9b863fa8084960f40517985df8c1.zip
Generate config-host.h from config-host.mak
Generate CONFIG_AUDIO_DRIVERS. Order is important here, because the first driver in the list is the one used by default. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/audio.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c
index 694a83e4ec..0a3830dc43 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -37,8 +37,13 @@
#define SW_NAME(sw) (sw)->name ? (sw)->name : "unknown"
+
+/* Order of CONFIG_AUDIO_DRIVERS is import.
+ The 1st one is the one used by default, that is the reason
+ that we generate the list.
+*/
static struct audio_driver *drvtab[] = {
- AUDIO_DRIVERS
+ CONFIG_AUDIO_DRIVERS
&no_audio_driver,
&wav_audio_driver
};