]> git.proxmox.com Git - qemu.git/commit - audio/ossaudio.c
ossaudio: check for oss support in oss_audio_init
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Nov 2013 11:24:41 +0000 (12:24 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Nov 2013 11:26:00 +0000 (12:26 +0100)
commit73204cffe55ce65b3a344afc3da637d67beb8c32
tree8d28629c90dfeec418c5808887cdd04baa715731
parent926de75432d57cade393750da8102f3ba1eeb4a0
ossaudio: check for oss support in oss_audio_init

Check whenever the device path (/dev/dsp by default) exists and qemu is
allowed to access it.  Return NULL if it isn't, so ossaudio will not
be used on systems wihtout oss support (increasinly common on modern
linux systems).

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/ossaudio.c