mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
refuse to initialize on modem devices
This commit is contained in:
parent
f7083280f8
commit
77a1e3876b
4 changed files with 24 additions and 0 deletions
|
|
@ -1617,6 +1617,11 @@ pa_sink *pa_alsa_sink_new(pa_module *m, pa_modargs *ma, const char*driver, pa_ca
|
|||
pa_assert(u->device_name);
|
||||
pa_log_info("Successfully opened device %s.", u->device_name);
|
||||
|
||||
if (pa_alsa_pcm_is_modem(u->pcm_handle)) {
|
||||
pa_log_notice("Device %s is modem, refusing further initialization.", u->device_name);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (profile)
|
||||
pa_log_info("Selected configuration '%s' (%s).", profile->description, profile->name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue