RFC ASoC: tegra: ASRC ratio control updates
Get series with b4
b4 am [email protected]Versions newest first
- v2 RFC Latest2 patches 2 repliesIn review
Changes in v2 from the cover letter
- Split the Stream6 input threshold fix out as a separate non-RFC patch, since that fix is independent of this ABI discussion.
- Expanded the ABI-change description with legacy userspace commands and the new paired control command.
- Clarified why the driver keeps conditional unlock/relock handling for active stream ratio updates.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ASoC: tegra: Update ASRC ratio controlssound/ sound/ | +276 | 0 replies | |
| 2/2 | ASoC: tegra: Cache ASRC ratios until streams are activesound/ sound/ | +89 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jon Hunter |
|---|---|
| Series | A-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH v2 0/2] ASoC: tegra: ASRC ratio control updates
This RFC updates the Tegra ASRC software ratio controls so userspace programs the integer and fractional ratio parts through one paired ALSA mixer control.
This is a userspace-visible ALSA mixer control ABI change. Existing userspace that programs the ratio with separate controls must switch from the legacy commands:
amixer -c APE cset name="ASRC1 Ratio<N> Integer Part" \
<integer part>
amixer -c APE cset name="ASRC1 Ratio<N> Fractional Part" \
<fractional part>to the paired control:
amixer -c APE cset name="ASRC1 Ratio<N>" \
"<integer part>,<fractional part>"For example:
amixer -c APE cset name="ASRC1 Ratio1" "0,715827882"
The ABI change is needed because the previous separate controls can expose hardware to a transient mixed ratio when one part has been updated but the other still contains the old value. The paired control lets the driver validate and program the full ratio together.
For active streams, the driver only unlocks and re-locks the stream when the new software ratio differs from the cached ratio by more than 20%. Hardware allows direct updates for smaller ratio changes, while larger jumps require the stream lock to be refreshed.
Changes in v2:
- Split the Stream6 input threshold fix out as a separate non-RFC patch, since that fix is independent of this ABI discussion.
- Expanded the ABI-change description with legacy userspace commands and the new paired control command.
- Clarified why the driver keeps conditional unlock/relock handling for active stream ratio updates.
Sheetal (2):
ASoC: tegra: Update ASRC ratio controls
ASoC: tegra: Cache ASRC ratios until streams are active
sound/soc/tegra/tegra186_asrc.c | 511 +++++++++++++++++++++----------- sound/soc/tegra/tegra186_asrc.h | 5 + 2 files changed, 346 insertions(+), 170 deletions(-)
Signature · 1 line
2.43.0