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

Fix speaker disabling issue after closing microphone app #6383

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

alitekin-saha
Copy link
Contributor

This pull request addresses an issue in the Raspberry Pi Voice HAT driver where the speaker is disabled after the microphone app is closed. The root cause of the issue was incorrect handling of the SDMODE pin, which led to unintended behavior when both the microphone and speaker were used together.

@pelwell
Copy link
Contributor

pelwell commented Sep 24, 2024

From the looks of it, the problem would occur if both playback and record streams are active - stopping the record stream would mute the playback stream. An explanation along those lines needs to go in the commit message, along with your "Signed-off-by:" line.

@pelwell
Copy link
Contributor

pelwell commented Sep 25, 2024

Hint: We don't (always?) receive notifications for pushes, so it's always wise to leave a comment to say if you've pushed a change that requires attention.

Resolves improper handling of the SDMODE pin, which caused issues when the microphone and speaker were used simultaneously. The playback stream check is now correctly based on `substream->stream == SNDRV_PCM_STREAM_PLAYBACK`, ensuring proper control of the audio amplifier.

Signed-off-by: Ali Tekin <[email protected]>
@alitekin-saha
Copy link
Contributor Author

Hint: We don't (always?) receive notifications for pushes, so it's always wise to leave a comment to say if you've pushed a change that requires attention.

Thanks for the reminder, I've added more lines to the comment.

@pelwell pelwell merged commit d52d2bd into raspberrypi:rpi-6.6.y Sep 26, 2024
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Sep 26, 2024
See: raspberrypi/linux#6368

kernel: tty/serial: pl011: Also unregister pl011_axi_platform_driver
See: raspberrypi/linux#6380

kernel: overlays: wm8960-soundcard: Fix clock declaration
See: raspberrypi/linux#6387

kernel: Fix speaker disabling issue after closing microphone app
See: raspberrypi/linux#6383

kernel: ASoC: bcm2835-i2s: Set the PERIOD_BYTES min to 256
See: raspberrypi/linux#6386

kernel: drivers: media: imx500: Simplify the vblank control init
See: raspberrypi/linux#6388
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Sep 26, 2024
See: raspberrypi/linux#6368

kernel: tty/serial: pl011: Also unregister pl011_axi_platform_driver
See: raspberrypi/linux#6380

kernel: overlays: wm8960-soundcard: Fix clock declaration
See: raspberrypi/linux#6387

kernel: Fix speaker disabling issue after closing microphone app
See: raspberrypi/linux#6383

kernel: ASoC: bcm2835-i2s: Set the PERIOD_BYTES min to 256
See: raspberrypi/linux#6386

kernel: drivers: media: imx500: Simplify the vblank control init
See: raspberrypi/linux#6388
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