-
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
Conversation
|
There's an open with ABI minor version. Seems like firmware is ahead by one in minor version and I think the FW and kernel side PRs for DMIC IPC change should propose the same ABI minor version. |
|
There's good feedback for kernel side PR. I'll soon update both PRs the same way. |
7c445bd to
93c20d8
Compare
|
New version to sync with kernel. I changed the macro name to SOF_DAI_INTEL_DMIC_NUM_CTRL. It helps to avoid to confuse this with microphones or channels count. |
src/include/ipc/dai-intel.h
Outdated
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.
Whats the rational behind this change, it's missing from 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.
Yep, need to add.
There's fair amount of comments on kernel side and I'll do the same updates for firmware too.
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.
Commit text is now updated and header file comments are in sync with kernel.
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.
Sorry, diffing revealed a difference of one "." so new version again. There's also lot of other changes but I'll complete my part.
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.
Done. Finally same DMIC configuration headers as in kernel PR version.
lgirdwood
left a comment
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.
Needs ABI classification
b5dbb3a to
b87002e
Compare
This patch was created due to kernel driver code enhancement. The DMIC was the only DAI type that used variable length arrays for configuration IPC. It complicated the driver topology parsing more than necessary. Since the header files for IPC are common also the firmware side needs similar changes. The flexible array member pdm[] is changed into a fixed array of four that is the max. number of stereo PDM controllers in the current Intel platforms. The DMIC driver code needs minor changes to correctly handle the changed IPC struct size. The IPC logic remains as before: The IPC PDM entries do not correspond to hardware PDM controllers. They are applied per provided index in each entry. Depending on number of PDM controllers there is now zeros data after the last defined controller that will be omitted. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This patch fixes the topo in word "microphone". Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Since the SOF kernel and firmware headers need to be the same the rename is also done on firmware side. The fifo_bits_b parameter was deprecated in firmware ABI version 3.0.1 and the value has been ignored. Since the kernel sets this in case of ABI version 3.0.0 or earlier the name reserved_2 is not appropriate. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
b87002e to
f948977
Compare
|
SOFCI TEST |
| * 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. |
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.
ranj063
left a comment
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.
looks good @singalsu. I commented on a minor typo on the commit message in the second patch. But no biggie!
|
Jenkins all green |
|
SOFCI TEST |
|
@lgirdwood wrote:
Ack, the kernel side PR (thesofproject/linux#1924) is all good to go. Just needs to be refreshed on latest sof-dev. |
|
@lgirdwood Are we good to go? Kernel side is approved and ready thesofproject/linux#1924 |
|
SOFCI TEST |
|
@kv2019i sorry, it looks like this one was missing from full CI tests. rerunning. |
|
Travis all green, but showing pending. Jenkins known issues. @kv2019i merged, good for kernel side now. |
Thanks @lgirdwood , kernel merged now as well. |
|
@kv2019i great :) I will tag v1.5-rc1 now. |
No description provided.