ASoC: Intel: avs: Conditional path support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ASoC: Intel: avs: Parse conditional path tuplesinclude/ sound/ sound/ | +133 | 0 replies | |
| 2/2 | ASoC: Intel: avs: Conditional-path supportsound/ sound/ | +280 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] ASoC: Intel: avs: Conditional path support
The code presented here is a lighter version of what was initially discussed in 2021 [1]. Later, we've had a more general discussion [2] "what if the feature was part of the ASoC core instead?". The discussion turned towards leaving a simplified version within the avs/, so here is the final outcome.
What's removed when compared to the older [1] version?
- conditional path priorities
- conditional path overriding
The background:
Conditional path (condpath) helps facilitate modern audio usecases such as Echo Cancellations and Noise Reduction. These are not invoked by the means of userspace application opening an endpoint (FrontEnd) but are a "side effect" of selected PCMs running simultaneously e.g.: if both Speaker (source) and Microphone Array (sink) are running, reference data from the Speaker and take it into account when processing capture for better voice command detection ratio.
Which PCMs are needed for given conditional path to be spawned is determinated by the driver when registering the condpath.
Two patches implement the feature:
1) update the topology parser to acknowledge the new tuples
2) update the path-creation and functions that participate in the PCM-runtime e.g.: run/pause.
The runtime update is needed to keep streaming sane - all the path operations shall be synchronized when a condpath is being spawned or its status is about to change.
[1]: https://lore.kernel.org/alsa-devel/[email protected]/
[2]: https://lore.kernel.org/linux-sound/[email protected]/
Cezary Rojewski (2):
ASoC: Intel: avs: Parse conditional path tuples
ASoC: Intel: avs: Conditional-path support
include/uapi/sound/intel/avs/tokens.h | 15 ++ sound/soc/intel/avs/path.c | 267 ++++++++++++++++++++++++++ sound/soc/intel/avs/path.h | 13 ++ sound/soc/intel/avs/topology.c | 110 +++++++++++ sound/soc/intel/avs/topology.h | 8 + 5 files changed, 413 insertions(+)
Signature · 1 line
2.25.1