Skip to content

Enable ACPI firmware node path in MediaCtlConfig - #28

Closed
changchingyew wants to merge 7 commits into
intel:mainfrom
changchingyew:i2cfix
Closed

Enable ACPI firmware node path in MediaCtlConfig#28
changchingyew wants to merge 7 commits into
intel:mainfrom
changchingyew:i2cfix

Conversation

@changchingyew

Copy link
Copy Markdown

No description provided.

The v4l2 entity name includes i2c adaptor number that is
dynamically allocated so it's hard to configured statically
in json file

Use ACPI firmware_node path ,i.e. \\_SB_.PC00.DES0 as configured
in json file as below

{
-   "name": "max96724 1-0027", "sinkPad": 0, "sinkStream": 0, "srcPad": 4,
+   "acpiName": "\\_SB_.PC00.DES0", "sinkPad": 0, "sinkStream": 0, "srcPad": 4,
    "srcStream": 0, "flag": 1
},

Signed-off-by: Yew, Chang Ching <[email protected]>
Signed-off-by: Yew, Chang Ching <[email protected]>
Comment thread src/platformdata/CameraSensorsParser.cpp Outdated
Comment thread src/v4l2/MediaControl.cpp Outdated

@123456987789 123456987789 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you just need to add acpiName to entity and transfer acpi name to entity name.
Sensor name is just a configuration name, not related with entity.

@changchingyew

Copy link
Copy Markdown
Author

Hi @qingwuzh, @123456987789 has approved this PR and would like your review on this PR too. Thanks

Comment thread src/platformdata/CameraSensorsParser.cpp Outdated
Comment thread src/platformdata/CameraSensorsParser.cpp Outdated
Comment thread src/v4l2/MediaControl.cpp Outdated
Comment thread src/v4l2/MediaControl.cpp Outdated
@changchingyew

Copy link
Copy Markdown
Author

Hi @daxingli, need your approval for this PR. Thanks

@khaiwenng khaiwenng mentioned this pull request Apr 30, 2026
@changchingyew

Copy link
Copy Markdown
Author

There's new PR Update of ACPI support in P containing code of this PR and additional JSON configuration files.
Will therefore drop this PR.

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.

3 participants