Skip to content

add selectable Camera_NHX configs for CAMX validation#435

Open
smuppand wants to merge 5 commits intoqualcomm-linux:mainfrom
smuppand:camera-yavta
Open

add selectable Camera_NHX configs for CAMX validation#435
smuppand wants to merge 5 commits intoqualcomm-linux:mainfrom
smuppand:camera-yavta

Conversation

@smuppand
Copy link
Copy Markdown
Contributor

@smuppand smuppand commented May 1, 2026

This PR extends Camera_NHX so CAMX validation can run selected NHX scenarios instead of only the default preview flow.

It adds target-specific NHX JSON configs for Kodiak, Lemans, Monaco, and Talos, adds --json/--target support in Camera_NHX, stages selected configs under /etc/camera/test/NHX as required by nhx.sh, and updates CAMX DT matching to recognize current camera overlay compatibles.

Default behavior remains unchanged when no JSON is passed, while LAVA/manual runs can now explicitly validate preview, video, preview+video, and snapshot flows.

Update Runner/suites/Multimedia/Camera/Camera_NHX/run.sh to improve
cam-server handling and post-run reporting around NHX execution.

Changes in this update:
- stop cam-server only when the service is actually active
- avoid misleading stop/start log messages when cam-server is already
  inactive or restart is not needed
- log post-NHX cam-server actions as start attempts and verify active
  state separately
- skip dump validation when nhx.sh exits early
- avoid appending dump-related failure reasons when NHX already failed
  before dumps were expected

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add nhx_resolve_json_file() to resolve NHX JSON configs from an
absolute path, Camera_NHX-relative path, or target-specific folder.

The helper supports Kodiak, Lemans, Monaco, and Talos config layouts and
returns a distinct status when a basename matches multiple target folders,
allowing run.sh to request --target for disambiguation.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Extend Camera_NHX to accept --json and --target arguments, while keeping
the existing default nhx.sh behavior unchanged when no JSON is provided.

The test now resolves the requested JSON through lib_camera.sh and passes
the selected config to nhx.sh, enabling preview, video, preview+video, and
snapshot validation through LAVA or manual CLI without auto-running all
available JSON files.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add NHX JSON configs for supported camera validation scenarios across
Kodiak, Lemans, Monaco, and Talos.

The configs enable targeted execution of preview, video, preview+video,
and snapshot scenarios through Camera_NHX --json/--target selection.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Update Camera_NHX README with the new --json/--target usage,
target-specific NHX JSON layout, and nhx.sh staging behavior under
/etc/camera/test/NHX.

Document default behavior, manual and LAVA invocation examples, supported
targets, output summary fields, and troubleshooting notes for selected NHX
configs.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@smuppand smuppand requested review from Vkenjam and bhargav0610 May 1, 2026 02:25
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.

1 participant