docs(accessories): use single-line command for HDMI audio capture test - #2132
Merged
Milir-Radxa merged 1 commit intoSep 20, 2026
Merged
Milir-Radxa merged 1 commit into
Milir-Radxa merged 1 commit into
Conversation
Combine the video capture and audio recording steps into one 'bash -c' command so users can copy and run it directly, and align the Chinese and English versions.
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.
What this PR does
Follow-up to #2130 (merged): the HDMI audio capture test on the HK628 page is now a single-line command that can be copied and run directly.
bash -c 'v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=NV12 --stream-mmap=3 --stream-poll --stream-count=480 --stream-to=/dev/null >/dev/null 2>&1 & video_pid=$!; sleep 1; arecord -D hw:CARD=sai2capture,DEV=0 -f S16_LE -r 48000 -c 2 -d 5 -t wav rk628-audio.wav; wait "$video_pid"'Previously the same steps were written as a multi-line shell snippet with
\continuations and a blank-line separatedVIDEO_PID=$!/wait "$VIDEO_PID". Copy-pasting it was error-prone; the single-line form keeps the same behaviour (video pipeline stays alive whilearecordrecords) but is safe to paste in one go.The change is made in the shared template
docs/common/accessories/_hdmi-in-to-mipi-csi2-usage.mdx, and the board name / video node / sound card are still template parameters, so other boards inherit it automatically.Scope
Docs only — Chinese (
docs/) and English (i18n/en/) updated together. Requested during review of the adapter usage tutorial.