diff options
author | Guido Roncarolo <guido.roncarolo@nxp.com> | 2019-12-18 01:26:15 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-12-18 20:54:07 +0100 |
commit | 9c1d4cf6ac26f890d82278326f6c7552c53ffb65 (patch) | |
tree | 16890d0c1580c4d2c7ec55ff6406f9e10b2eab38 /include/sound/sof/dai-imx.h | |
parent | ASoC: Intel: boards: fix incorrect HDMI Kconfig dependency (diff) | |
download | linux-9c1d4cf6ac26f890d82278326f6c7552c53ffb65.tar.xz linux-9c1d4cf6ac26f890d82278326f6c7552c53ffb65.zip |
ASoC: SOF: imx: Describe SAI parameters to be sent to DSP
Introduce sof_ipc_dai_sai_params to keep information that
we get from topology and we send to DSP FW.
For the moment it is identical to ESAI one but it will
evolve shortly independently
Signed-off-by: Guido Roncarolo <guido.roncarolo@nxp.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191218002616.7652-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/sof/dai-imx.h')
-rw-r--r-- | include/sound/sof/dai-imx.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/sound/sof/dai-imx.h b/include/sound/sof/dai-imx.h index e02fb0b0fae1..ff9088dcc6f2 100644 --- a/include/sound/sof/dai-imx.h +++ b/include/sound/sof/dai-imx.h @@ -31,4 +31,24 @@ struct sof_ipc_dai_esai_params { uint16_t reserved2; /* alignment */ } __packed; +/* SAI Configuration Request - SOF_IPC_DAI_SAI_CONFIG */ +struct sof_ipc_dai_sai_params { + struct sof_ipc_hdr hdr; + + /* MCLK */ + uint16_t reserved1; + uint16_t mclk_id; + uint32_t mclk_direction; + + uint32_t mclk_rate; /* MCLK frequency in Hz */ + uint32_t fsync_rate; /* FSYNC frequency in Hz */ + uint32_t bclk_rate; /* BCLK frequency in Hz */ + + /* TDM */ + uint32_t tdm_slots; + uint32_t rx_slots; + uint32_t tx_slots; + uint16_t tdm_slot_width; + uint16_t reserved2; /* alignment */ +} __packed; #endif |