alsa-monitor: handle snd_aloop devices better

Place Loopback as the device description for snd_aloop devices.

Fixes pipewire#2214
This commit is contained in:
Wim Taymans 2022-12-13 15:19:06 +01:00
parent 7cb1b8b92e
commit f6dc1b3347

View file

@ -228,8 +228,11 @@ function prepareDevice(parent, id, obj_type, factory, properties)
local d = nil
local f = properties["device.form-factor"]
local c = properties["device.class"]
local n = properties["api.alsa.card.name"]
if f == "internal" then
if n == "Loopback" then
d = I18n.gettext("Loopback")
elseif f == "internal" then
d = I18n.gettext("Built-in Audio")
elseif c == "modem" then
d = I18n.gettext("Modem")