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

i2s_stream: do not unconditionally install I2S driver (AUD-5119) #1130

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

Conversation

stintel
Copy link
Contributor

@stintel stintel commented Jan 2, 2024

Initializing an I2S stream currently unconditionally installs the I2S driver. When two I2S streams are needed, one for input and one for output, the following error occurs during initialization of the second stream:

E (21:53:24.782) i2s(legacy): i2s_check_cfg_validity(926): this i2s port is in use
E (21:53:24.791) i2s(legacy): i2s_driver_install(1582): I2S configuration is invalid

While these error messages are completely harmless, we keep getting downstream reports from people who think this is a problem. We have considered disabling logging for the legacy I2S driver, but that could lead to valid errors being suppressed.

Instead, add a new member to the i2s_stream_cfg_t struct that makes it possible to skip installing the I2S driver. It is added as true to all the macros, to not impact existing code.

Initializing an I2S stream currently unconditionally installs the I2S
driver. When two I2S streams are needed, one for input and one for
output, the following error occurs during initialization of the second
stream:

E (21:53:24.782) i2s(legacy): i2s_check_cfg_validity(926): this i2s port is in use
E (21:53:24.791) i2s(legacy): i2s_driver_install(1582): I2S configuration is invalid

While these error messages are completely harmless, we keep getting
downstream reports from people who think this is a problem. We have
considered disabling logging for the legacy I2S driver, but that could
lead to valid errors being suppressed.

Instead, add a new member to the i2s_stream_cfg_t struct that makes it
possible to skip installing the I2S driver. It is added as true to all
the macros, to not impact existing code.

Signed-off-by: Stijn Tintel <[email protected]>
@github-actions github-actions bot changed the title i2s_stream: do not unconditionally install I2S driver i2s_stream: do not unconditionally install I2S driver (AUD-5119) Jan 3, 2024
@jason-mao
Copy link
Collaborator

jason-mao commented Feb 1, 2024

@stintel I2S stream supports the new I2S driver on a32e66e, I think it can fix your issue, please test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants