mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 21:42:06 -06:00
Merge remote-tracking branch 'kraxel/audio.3' into staging
# By Gerd Hoffmann # Via Gerd Hoffmann * kraxel/audio.3: ossaudio: check for oss support in oss_audio_init Revert "ossaudio: do not enable by default" Message-id: 1383823947-5132-1-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori <aliguori@amazon.com>
This commit is contained in:
commit
9f43a3f541
1 changed files with 5 additions and 1 deletions
|
@ -849,6 +849,10 @@ static int oss_ctl_in (HWVoiceIn *hw, int cmd, ...)
|
||||||
|
|
||||||
static void *oss_audio_init (void)
|
static void *oss_audio_init (void)
|
||||||
{
|
{
|
||||||
|
if (access(conf.devpath_in, R_OK | W_OK) < 0 ||
|
||||||
|
access(conf.devpath_out, R_OK | W_OK) < 0) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
return &conf;
|
return &conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -932,7 +936,7 @@ struct audio_driver oss_audio_driver = {
|
||||||
.init = oss_audio_init,
|
.init = oss_audio_init,
|
||||||
.fini = oss_audio_fini,
|
.fini = oss_audio_fini,
|
||||||
.pcm_ops = &oss_pcm_ops,
|
.pcm_ops = &oss_pcm_ops,
|
||||||
.can_be_default = 0,
|
.can_be_default = 1,
|
||||||
.max_voices_out = INT_MAX,
|
.max_voices_out = INT_MAX,
|
||||||
.max_voices_in = INT_MAX,
|
.max_voices_in = INT_MAX,
|
||||||
.voice_size_out = sizeof (OSSVoiceOut),
|
.voice_size_out = sizeof (OSSVoiceOut),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue