2020-05-01 21:58:50 +07:00
|
|
|
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
|
2019-10-08 23:44:39 +07:00
|
|
|
/*
|
|
|
|
* Copyright 2019 NXP
|
|
|
|
*
|
|
|
|
* Author: Daniel Baluta <daniel.baluta@nxp.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INCLUDE_SOUND_SOF_DAI_IMX_H__
|
|
|
|
#define __INCLUDE_SOUND_SOF_DAI_IMX_H__
|
|
|
|
|
|
|
|
#include <sound/sof/header.h>
|
|
|
|
|
|
|
|
/* ESAI Configuration Request - SOF_IPC_DAI_ESAI_CONFIG */
|
|
|
|
struct sof_ipc_dai_esai_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;
|
|
|
|
|
2019-12-18 07:26:15 +07:00
|
|
|
/* 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;
|
2019-10-08 23:44:39 +07:00
|
|
|
#endif
|