mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05: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
|
|
@ -1716,10 +1716,11 @@ char *pa_alsa_get_driver_name(int card) {
|
|||
|
||||
char *pa_alsa_get_driver_name_by_pcm(snd_pcm_t *pcm) {
|
||||
int card;
|
||||
|
||||
snd_pcm_info_t* info;
|
||||
snd_pcm_info_alloca(&info);
|
||||
|
||||
pa_assert(pcm);
|
||||
|
||||
if (snd_pcm_info(pcm, info) < 0)
|
||||
return NULL;
|
||||
|
||||
|
|
@ -1749,3 +1750,15 @@ char *pa_alsa_get_reserve_name(const char *device) {
|
|||
|
||||
return pa_sprintf_malloc("Audio%i", i);
|
||||
}
|
||||
|
||||
pa_bool_t pa_alsa_pcm_is_hw(snd_pcm_t *pcm) {
|
||||
snd_pcm_info_t* info;
|
||||
snd_pcm_info_alloca(&info);
|
||||
|
||||
pa_assert(pcm);
|
||||
|
||||
if (snd_pcm_info(pcm, info) < 0)
|
||||
return FALSE;
|
||||
|
||||
return snd_pcm_info_get_card(info) >= 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue