diff options
author | Krzysztof Kozlowski <[email protected]> | 2024-05-20 16:19:58 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2024-05-27 01:31:00 +0100 |
commit | 5d5dd9bb227a1bdbef5ec7d167ac65775d1b99dc (patch) | |
tree | feaef83532296567500cf9cc3f007bbeddfead91 /tools/perf/scripts/python/syscall-counts.py | |
parent | 22ad2e3c21281802cd519454544009da7e7a8ea4 (diff) |
ASoC: qcom: qdsp6: Set channel mapping instead of fixed defaults
When constructing packets to DSP, the Audioreach code uses 'struct
audioreach_module_config' to configure parameters like number of
channels, bitrate, sample rate etc, but uses defaults for the channel
mapping.
Rework this code to copy the channel mapping from 'struct
audioreach_module_config', instead of using the default. This requires
all callers to fill that structure: add missing initialization of
channel mapping.
Entire patch makes code more logical and easier to follow:
1. q6apm-dai and q6apm-lpass-dais code which allocates 'struct
audioreach_module_config' initializes it fully, so fills both
the number of channels and the channel mapping.
2. Audioreach code, which uses 'struct audioreach_module_config' when
constructing packets, copies entire contents of passed config, not
only pieces of it.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://msgid.link/r/20240520-asoc-x1e80100-4-channel-mapping-v4-3-f657159b4aad@linaro.org
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions