-
Notifications
You must be signed in to change notification settings - Fork 349
DMIC: Fixed length IPC #2610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DMIC: Fixed length IPC #2610
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,6 +57,9 @@ | |
| /* bclk idle */ | ||
| #define SOF_DAI_INTEL_SSP_CLKCTRL_BCLK_IDLE_HIGH BIT(5) | ||
|
|
||
| /* DMIC max. four controllers for eight microphone channels */ | ||
| #define SOF_DAI_INTEL_DMIC_NUM_CTRL 4 | ||
|
|
||
| /* SSP Configuration Request - SOF_IPC_DAI_SSP_CONFIG */ | ||
| struct sof_ipc_dai_ssp_params { | ||
| uint32_t reserved0; | ||
|
|
@@ -143,7 +146,7 @@ struct sof_ipc_dai_dmic_pdm_ctrl { | |
| * version number used in configuration data is checked vs. version used by | ||
| * device driver src/drivers/dmic.c need to match. It is incremented from | ||
| * initial value 1 if updates done for the to driver would alter the operation | ||
| * of the microhone. | ||
| * of the microphone. | ||
| * | ||
| * Note: The microphone clock (pdmclk_min, pdmclk_max, duty_min, duty_max) | ||
| * parameters need to be set as defined in microphone data sheet. E.g. clock | ||
|
|
@@ -168,6 +171,7 @@ struct sof_ipc_dai_dmic_pdm_ctrl { | |
| * met. The unit for both is microseconds (us). Exceed of 100 ms will be | ||
| * treated as an error. | ||
| */ | ||
|
|
||
| struct sof_ipc_dai_dmic_params { | ||
| uint32_t reserved0; | ||
| uint32_t driver_ipc_version; /**< Version (1..N) */ | ||
|
|
@@ -178,12 +182,13 @@ struct sof_ipc_dai_dmic_params { | |
| uint32_t fifo_fs; /**< FIFO sample rate in Hz (8000..96000) */ | ||
| uint32_t reserved_1; /**< Reserved */ | ||
| uint16_t fifo_bits; /**< FIFO word length (16 or 32) */ | ||
| uint16_t reserved_2; /**< Reserved */ | ||
| uint16_t fifo_bits_b; /**< Deprecated since firmware ABI 3.0.1 */ | ||
|
|
||
| uint16_t duty_min; /**< Min. mic clock duty cycle in % (20..80) */ | ||
| uint16_t duty_max; /**< Max. mic clock duty cycle in % (min..80) */ | ||
|
|
||
| uint32_t num_pdm_active; /**< Number of active pdm controllers */ | ||
| uint32_t num_pdm_active; /**< Number of active pdm controllers. */ | ||
| /**< Range is 1..SOF_DAI_INTEL_DMIC_NUM_CTRL */ | ||
|
|
||
| uint32_t wake_up_time; /**< Time from clock start to data (us) */ | ||
| uint32_t min_clock_on_time; /**< Min. time that clk is kept on (us) */ | ||
|
|
@@ -192,8 +197,8 @@ struct sof_ipc_dai_dmic_params { | |
| /* reserved for future use */ | ||
| uint32_t reserved[5]; | ||
|
|
||
| /**< variable number of pdm controller config */ | ||
| struct sof_ipc_dai_dmic_pdm_ctrl pdm[0]; | ||
| /**< PDM controllers configuration */ | ||
| struct sof_ipc_dai_dmic_pdm_ctrl pdm[SOF_DAI_INTEL_DMIC_NUM_CTRL]; | ||
|
||
| } __attribute__((packed)); | ||
|
|
||
| #endif /* __IPC_DAI_INTEL_H__ */ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This I found hilarious :) you left a typo in the word typo itself in the commit message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, I only now noticed it!! Can I still fix this without restarting the approval process?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lgirdwood @kv2019i Should I fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@singalsu no need I think. its just the commit message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, I'll leave this funny bit into the history.