Re: [PATCH 4/5] ASoC: qcom: sc8280xp: Add per-card data
From: Dmitry Baryshkov
Date: Sun Jun 07 2026 - 03:49:58 EST
On Sun, Jun 07, 2026 at 02:58:20AM +0800, Hongyang Zhao wrote:
> The sc8280xp machine driver currently uses the OF match data only as a
> driver name, which makes it difficult to describe board-specific MI2S
> codec requirements.
>
> Convert the match data to a per-card data structure and add data for
> the QCS6490 RubikPi3. The RubikPi3 data configures the ES8316 MI2S DAI
> format, MCLK rate, BE hardware parameters and headset jack pins.
Please don't mix refactoring and actual changes in a single patch. Split
this commit, performing one logical change per commit.
>
> Add a common headset jack helper which accepts board-specific DAPM pins
> for codecs that are not connected through the WCD TX codec DMA path.
>
> Signed-off-by: Hongyang Zhao <hongyang.zhao@xxxxxxxxxxxxxxx>
> ---
> sound/soc/qcom/common.c | 75 ++++++++---
> sound/soc/qcom/common.h | 6 +-
> sound/soc/qcom/sc8280xp.c | 319 ++++++++++++++++++++++++++++++++++++++++++----
> 3 files changed, 357 insertions(+), 43 deletions(-)
>
--
With best wishes
Dmitry