mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
don't enabled tsched on software ALSA devices
This commit is contained in:
parent
3813034cef
commit
e3f15104cf
4 changed files with 26 additions and 1 deletions
|
|
@ -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.");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue