audioadapter: fix EnumPortConfig without converter

If we don't have a converter, we always work in passthrough mode and
EnumPortConfig can use the same code as PortConfig in all cases.

See !2265
This commit is contained in:
Wim Taymans 2025-01-28 12:39:31 +01:00
parent 0814bafef1
commit 110d8572c0

View file

@ -214,7 +214,6 @@ next:
switch (id) { switch (id) {
case SPA_PARAM_EnumPortConfig: case SPA_PARAM_EnumPortConfig:
return convert_enum_port_config(this, seq, id, start, num, filter, &b.b);
case SPA_PARAM_PortConfig: case SPA_PARAM_PortConfig:
if (this->mode == SPA_PARAM_PORT_CONFIG_MODE_passthrough) { if (this->mode == SPA_PARAM_PORT_CONFIG_MODE_passthrough) {
switch (result.index) { switch (result.index) {