m-si-audio-adapter: add 'disable.dsp' configuration property

If 'disable.dsp' is set to TRUE, the adapter will always be configured in
passthrough mode. Then, if 2 adapters want to be linked with different formats,
the si-standard-link session item will automatically reconfigure one of the
adapters in convert mode so that the format matches.
This commit is contained in:
Julian Bouzas
2021-09-29 13:31:22 -04:00
parent 133249399a
commit 151ba8425e
2 changed files with 25 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ function addItem (node, item_type)
if not items[id]:configure {
["node"] = node,
["enable.monitor"] = true,
["disable.dsp"] = false,
["item.plugged.usec"] = GLib.get_monotonic_time(),
} then
Log.warning(items[id], "failed to configure item for node " .. tostring(id))