mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa: skip eld initialization if hctl_handle is NULL
Due to a misconfiguration on my side my hdmi card didn't load with snd-hda-codec-hdmi but through the fallback mechanism. Pulseaudio would crash during early because hctl_handle was null, so skip init_eld_ctls when hctl_handle is null to prevent a crash. Thanks to David Henningsson for helping me find the underlying issue. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
This commit is contained in:
parent
a3f5eeadc8
commit
77347e1e91
1 changed files with 3 additions and 0 deletions
|
|
@ -437,6 +437,9 @@ static void init_eld_ctls(struct userdata *u) {
|
||||||
void *state;
|
void *state;
|
||||||
pa_device_port *port;
|
pa_device_port *port;
|
||||||
|
|
||||||
|
if (!u->hctl_handle)
|
||||||
|
return;
|
||||||
|
|
||||||
PA_HASHMAP_FOREACH(port, u->card->ports, state) {
|
PA_HASHMAP_FOREACH(port, u->card->ports, state) {
|
||||||
pa_alsa_port_data *data = PA_DEVICE_PORT_DATA(port);
|
pa_alsa_port_data *data = PA_DEVICE_PORT_DATA(port);
|
||||||
snd_hctl_elem_t* hctl_elem;
|
snd_hctl_elem_t* hctl_elem;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue