@@ -29,13 +29,13 @@ using Protocols::InteractionModel::Status;
29
29
30
30
MediaInputManager::MediaInputManager (chip::EndpointId endpoint) : mEndpoint(endpoint)
31
31
{
32
- struct InputData inputData1 (1 , chip::app::Clusters::MediaInput:: InputTypeEnum::kHdmi , " HDMI 1" ,
32
+ struct InputData inputData1 (1 , InputTypeEnum::kHdmi , " HDMI 1" ,
33
33
" High-Definition Multimedia Interface" );
34
34
mInputs .push_back(inputData1);
35
- struct InputData inputData2 (2 , chip::app::Clusters::MediaInput:: InputTypeEnum::kHdmi , " HDMI 2" ,
35
+ struct InputData inputData2 (2 , InputTypeEnum::kHdmi , " HDMI 2" ,
36
36
" High-Definition Multimedia Interface" );
37
37
mInputs .push_back(inputData2);
38
- struct InputData inputData3 (3 , chip::app::Clusters::MediaInput:: InputTypeEnum::kHdmi , " HDMI 3" ,
38
+ struct InputData inputData3 (3 , InputTypeEnum::kHdmi , " HDMI 3" ,
39
39
" High-Definition Multimedia Interface" );
40
40
mInputs .push_back(inputData3);
41
41
}
@@ -57,7 +57,7 @@ uint8_t MediaInputManager::HandleGetCurrentInput()
57
57
Status status = Attributes::CurrentInput::Get (mEndpoint , ¤tInput);
58
58
if (Status::Success != status)
59
59
{
60
- ChipLogError (Zcl, " Unable to save CurrentInput attribute, err:0x%x" , to_underlying (status));
60
+ ChipLogError (Zcl, " Unable to get CurrentInput attribute, err:0x%x" , to_underlying (status));
61
61
}
62
62
return currentInput;
63
63
}
@@ -74,7 +74,7 @@ bool MediaInputManager::HandleSelectInput(const uint8_t index)
74
74
if (inputData.index == index )
75
75
{
76
76
// Sync the CurrentInput to attribute storage while reporting changes
77
- Status status = chip::app::Clusters::MediaInput:: Attributes::CurrentInput::Set (mEndpoint , index );
77
+ Status status = Attributes::CurrentInput::Set (mEndpoint , index );
78
78
if (Status::Success != status)
79
79
{
80
80
ChipLogError (Zcl, " CurrentInput is not stored successfully, err:0x%x" , to_underlying (status));
@@ -127,6 +127,6 @@ void emberAfMediaInputClusterInitCallback(EndpointId endpoint)
127
127
128
128
gMediaInputManagerInstance [endpoint] = std::make_unique<MediaInputManager>(endpoint);
129
129
130
- chip::app::Clusters::MediaInput:: SetDefaultDelegate (endpoint, gMediaInputManagerInstance [endpoint].get ());
130
+ SetDefaultDelegate (endpoint, gMediaInputManagerInstance [endpoint].get ());
131
131
}
132
132
#endif // MATTER_DM_PLUGIN_MEDIA_INPUT_SERVER
0 commit comments