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

Skip to content
Commit c589a49b authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

PatchPanel: Fix typo in patch validation

This piece of logic does not seem to be correct:

(patch->sinks[i].type == AUDIO_PORT_TYPE_MIX ||
 patch->sinks[i].ext.mix.hw_module != srcModule)

I assume it should be:

(patch->sinks[i].type == AUDIO_PORT_TYPE_MIX ||
    (patch->sinks[i].type == AUDIO_PORT_TYPE_DEVICE &&
     patch->sinks[i].ext.device.hw_module != srcModule)

Was working fine because 'hw_module' is the first field both
in audio_port_config_device_ext and audio_port_config_mix_ext.

Test: make
Change-Id: Icf80cec701048bddc4d63eaedf00fc75b5b891dd
parent f1040d20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment