Skip to content
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

tests: drivers: audio: dmic_api: Enable test execution on nrf54l15 #82436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nordic-segl
Copy link
Contributor

Enable execution of dmic_api test on nrf54l15:

  • add 'dmic' to the list of supported peripherals;
  • add overlay for nrf54l15;
  • align Nordic's implementation of PDM driver to pass the test.

@nordic-segl
Copy link
Contributor Author

FYI: @mstasiaknordic , @nordic-piks

@@ -365,7 +365,6 @@ static int dmic_nrfx_pdm_configure(const struct device *dev,

channel->act_num_streams = 1;
channel->act_chan_map_hi = 0;
channel->act_chan_map_lo = def_map;
Copy link
Contributor Author

@nordic-segl nordic-segl Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is test with LEFT/RIGHT channels swapped:
https://github.com/zephyrproject-rtos/zephyr/blob/main/tests/drivers/audio/dmic_api/src/main.c#L158

Without this change, test is failing on this assert:
https://github.com/zephyrproject-rtos/zephyr/blob/main/tests/drivers/audio/dmic_api/src/main.c#L94

In current/previous implementation, actual channel map is always def_map.
Even if the user requested values equal to the alt_map.

Enable execution of dmic_api test on nrf54l15:
- add 'dmic' to the list of supported peripherals;
- add overlay for nrf54l15;
- align Nordic's implementation of PDM driver to pass the test.

Signed-off-by: Sebastian Głąb <[email protected]>
@nordic-segl nordic-segl force-pushed the NRFX-6619_Enable-PDM-driver-test-on-nrf54l15 branch from 7ea2a8d to 8ad6bed Compare December 3, 2024 06:12
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Dec 3, 2024
tests: drivers: audio: dmic_api: Enable test execution on nrf54l15
nrfconnect/sdk-zephyr#2325
zephyrproject-rtos/zephyr#82436

Signed-off-by: Sebastian Głąb <[email protected]>
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Dec 3, 2024
tests: drivers: audio: dmic_api: Enable test execution on nrf54l15
nrfconnect/sdk-zephyr#2325
zephyrproject-rtos/zephyr#82436

Signed-off-by: Sebastian Głąb <[email protected]>
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Dec 3, 2024
tests: drivers: audio: dmic_api: Enable test execution on nrf54l15
nrfconnect/sdk-zephyr#2325
zephyrproject-rtos/zephyr#82436

Signed-off-by: Sebastian Głąb <[email protected]>
nordic-segl added a commit to nordic-segl/sdk-nrf that referenced this pull request Dec 3, 2024
tests: drivers: audio: dmic_api: Enable test execution on nrf54l15
nrfconnect/sdk-zephyr#2325
zephyrproject-rtos/zephyr#82436

Signed-off-by: Sebastian Głąb <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants