Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3c25bc9 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "HAL: Add headset device check in get backend index"

parents 65ddcddb 541897b9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4814,6 +4814,9 @@ int platform_get_backend_index(snd_device_t snd_device)
                else if (strncmp(backend_tag_table[snd_device], "headphones",
                            sizeof("headphones")) == 0)
                        port = HEADPHONE_BACKEND;
                else if (strncmp(backend_tag_table[snd_device], "headset",
                            sizeof("headset")) == 0)
                        port = HEADPHONE_BACKEND;
                else if (strcmp(backend_tag_table[snd_device], "hdmi") == 0)
                        port = HDMI_RX_BACKEND;
                else if (strcmp(backend_tag_table[snd_device], "display-port") == 0)