mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 13:38:02 +02:00
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:
parent
7cb1b8b92e
commit
f6dc1b3347
1 changed files with 4 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue