Skip to content

Enable ACPI firmware node path in MediaCtlConfig#28

Open
changchingyew wants to merge 7 commits intointel:mainfrom
changchingyew:i2cfix
Open

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

Conversation

@changchingyew
Copy link

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 <chang.ching.yew@intel.com>
Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
Copy link

@123456987789 123456987789 left a comment

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.

Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
@changchingyew
Copy link
Author

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

@changchingyew
Copy link
Author

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

}
if (ele.isMember("acpiName")) {
route.entityName = mMediaCtl->acpiName2EntityName(ele["acpiName"].asString());
if (mMediaCtl != nullptr) {

Choose a reason for hiding this comment

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

Why do you check mMediaCtl?
Check again.

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