Skip to content

ASoC: qcom: Refactor of_xlate_dai_name into common helper

Harendra Gautam linux-arm-msm linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: qcom: Add generic of_xlate_dai_name helper to commonsound/soc/qcom/common.c sound/soc/qcom/common.h+39 -00 replies
2/2ASoC: qcom: lpass-cpu: Use asoc_qcom_of_xlate_dai_name helpersound/soc/qcom/lpass-cpu.c+5 -141 reply

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: qcom: Refactor of_xlate_dai_name into common helper

Multiple Qualcomm ASoC CPU DAI drivers implement the same logic to resolve a sound-dai phandle argument to a DAI name: iterate the component's DAI driver array and match by ID. This is currently duplicated between lpass-cpu.c and qaif-cpu.c.

This series extracts the common logic into a shared helper asoc_qcom_of_xlate_dai_name() in common.c and refactors lpass-cpu.c to use it. The QAIF driver (in a separate series) will also use this helper instead of its own private implementation.

Patch 1: Add asoc_qcom_of_xlate_dai_name() to common.c/h Patch 2: Refactor lpass-cpu.c to use the new helper

Harendra Gautam (2):
ASoC: qcom: Add generic of_xlate_dai_name helper to common
ASoC: qcom: lpass-cpu: Use asoc_qcom_of_xlate_dai_name helper

 sound/soc/qcom/common.c    | 34 ++++++++++++++++++++++++++++++++++
 sound/soc/qcom/common.h    |  5 +++++
 sound/soc/qcom/lpass-cpu.c | 19 +++++--------------
 3 files changed, 44 insertions(+), 14 deletions(-)
Signature · 1 line
2.34.1