Skip to content

ASoC: fix hw_params/hw_free validity checks

Jerome Brunet alsa-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: fix valid stream conditionsound/soc/soc-pcm.c+2 -23 replies
2/2ASoC: skip hw_free on codec dai for which the stream is invalidsound/soc/soc-pcm.c+6 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ASoC: fix hw_params/hw_free validity checks

While working on a codec, I have found an odd situation. The hw_params callback which was provided by the codec dai was not called as expected. However, the hw_free callback was called, even if hw_params was skipped.

After debugging, I found out that the dai was considered invalid because it did not specify any rates, only rate_min and rate_max. That's a first problem.

If a codec dai is considered invalid, hw_free should probably not be called either, that's a 2nd issue.

This patchset is meant to solve both issues.

Jerome Brunet (2):
ASoC: fix valid stream condition
ASoC: skip hw_free on codec dai for which the stream is invalid

 sound/soc/soc-pcm.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1