Repository navigation
Keep HDMI audio from being picked for transmit - #10
Merged
Merged
Conversation
Without ALSACaptureDevice/ALSAPlaybackDevice set, the gateway took the first device whose name contains "i2s". On a Raspberry Pi the HDMI output is usually card 0 and named "MAI PCM i2s-hifi-0", so playback went to HDMI and the hotspot received but could not transmit. Capture was unaffected, since HDMI cannot record. Device selection is now shared by capture and playback and tested without hardware: - A configured device always wins and must match. - Otherwise playback is taken from the same card as the capture device, which is the SX1255's card. - Otherwise an I2S device that is not HDMI, then any non-HDMI device, then any device. The settings now also accept hw:CARD,DEVICE (and hw:CARD) besides the device name and the /dev/snd path, and an unmatched setting gives an error naming the accepted forms. The chosen device is logged at INFO, all devices found at DEBUG. The sample config documents the formats. Not yet tested on SX1255 hardware.
Owner
|
Thanks! I tested on-air with my SX1255 HAT and it seemed to work. (I don't have the HDMI device issue, so I couldn't test that.) |
…tion Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without ALSACaptureDevice/ALSAPlaybackDevice set, the gateway took the first device whose name contains "i2s". On a Raspberry Pi the HDMI output is usually card 0 and named "MAI PCM i2s-hifi-0", so playback went to HDMI and the hotspot received but could not transmit. Capture was unaffected, since HDMI cannot record.
Device selection is now shared by capture and playback and tested without hardware:
The settings now also accept hw:CARD,DEVICE (and hw:CARD) besides the device name and the /dev/snd path, and an unmatched setting gives an error naming the accepted forms. The chosen device is logged at INFO, all devices found at DEBUG. The sample config documents the formats.
Not yet tested on SX1255 hardware.