• Herve Codina's avatar
    ASoC: fsl: fsl_qmc_audio: Identify the QMC channel involved in completion routines · 5e51a1f9
    Herve Codina authored
    The current QMC audio driver uses only one QMC channel per DAI. The
    context used by QMC channel transfer (read and write) completion
    routines does not contains any QMC channel and the only one available
    per DAI is used to schedule the next transfer.
    This works pretty well with only one QMC channel per DAI.
    
    The future support for non-inlerleave mode will use several QMC channel
    per DAI. In that case, QMC channel transfer completion routines need to
    identify the QMC channel related to the completion.
    
    In order to fill this lack, even if identifying the current QMC channel
    among several QMC channels is not needed for the current code, add one
    indirection level and introduce the qmc_dai_chan data structrure.
    This structure contains the QMC channel involved in the completion and
    refererences to the runtime context (capture and playback) used by the
    DAI.
    Signed-off-by: default avatarHerve Codina <herve.codina@bootlin.com>
    Link: https://patch.msgid.link/20240701113038.55144-5-herve.codina@bootlin.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    5e51a1f9
fsl_qmc_audio.c 19.7 KB