don't enabled tsched on software ALSA devices

This commit is contained in:
Lennart Poettering 2009-03-30 18:00:23 +02:00
parent 3813034cef
commit e3f15104cf
4 changed files with 26 additions and 1 deletions

View file

@ -1482,6 +1482,11 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p
u->use_tsched = use_tsched = FALSE;
}
if (use_tsched && !pa_alsa_pcm_is_hw(u->pcm_handle)) {
pa_log_info("Device is not a hardware device, disabling timer-based scheduling.");
u->use_tsched = use_tsched = FALSE;
}
if (u->use_mmap)
pa_log_info("Successfully enabled mmap() mode.");