Skip to content

Commit 133dc56

Browse files
bkokoszxslawblauciak
authored andcommitted
uapi: ipc: add new fields in ssp struct
I've added quirks and frame_pulse_width to sof_ipc_dai_ssp_params struct. Also I've defined QUIRKS macros. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
1 parent b33e575 commit 133dc56

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

src/include/uapi/ipc.h

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,23 @@ struct sof_ipc_compound_hdr {
226226
#define SOF_DAI_FMT_INV_MASK 0x0f00
227227
#define SOF_DAI_FMT_MASTER_MASK 0xf000
228228

229+
/* ssc1: TINTE */
230+
#define SOF_DAI_INTEL_SSP_QUIRK_TINTE (1 << 0)
231+
/* ssc1: PINTE */
232+
#define SOF_DAI_INTEL_SSP_QUIRK_PINTE (1 << 1)
233+
/* ssc2: SMTATF */
234+
#define SOF_DAI_INTEL_SSP_QUIRK_SMTATF (1 << 2)
235+
/* ssc2: MMRATF */
236+
#define SOF_DAI_INTEL_SSP_QUIRK_MMRATF (1 << 3)
237+
/* ssc2: PSPSTWFDFD */
238+
#define SOF_DAI_INTEL_SSP_QUIRK_PSPSTWFDFD (1 << 4)
239+
/* ssc2: PSPSRWFDFD */
240+
#define SOF_DAI_INTEL_SSP_QUIRK_PSPSRWFDFD (1 << 5)
241+
/* here is the possibility to define others aux macros */
242+
243+
244+
#define SOF_DAI_INTEL_SSP_FRAME_PULSE_WIDTH_MAX 38
245+
229246
/** \brief Types of DAI */
230247
enum sof_ipc_dai_type {
231248
SOF_DAI_INTEL_NONE = 0, /**< None */
@@ -259,8 +276,10 @@ struct sof_ipc_dai_ssp_params {
259276
uint32_t bclk_keep_active;
260277
uint32_t fs_keep_active;
261278

262-
//uint32_t quirks; // FIXME: is 32 bits enough ?
279+
uint16_t frame_pulse_width;
280+
uint32_t quirks; // FIXME: is 32 bits enough ?
263281

282+
uint16_t padding;
264283
/* private data, e.g. for quirks */
265284
//uint32_t pdata[10]; // FIXME: would really need ~16 u32
266285
} __attribute__((packed));

0 commit comments

Comments
 (0)