Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36678b2b authored by Mikhail Naganov's avatar Mikhail Naganov Committed by jiabin
Browse files

Fix the name of the constant for device [dis]connect parameter

During the transition to Treble, "device connect" / "disconnect"
parameter was erroneously attributed to audio streams. This
issue got fixed in Audio HAL V4.0, but AudioParameter file
was still using incorrect name for the constant.

Test: make
Change-Id: I18e1e3fccad3d41372f3c5c046af4f6ffd83328b
Merged-In: I18e1e3fccad3d41372f3c5c046af4f6ffd83328b
parent 772fb539
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ Return<void> Device::getMicrophones(getMicrophones_cb _hidl_cb) {
}

Return<Result> Device::setConnectedState(const DeviceAddress& address, bool connected) {
    auto key = connected ? AudioParameter::keyStreamConnect : AudioParameter::keyStreamDisconnect;
    auto key = connected ? AudioParameter::keyDeviceConnect : AudioParameter::keyDeviceDisconnect;
    return setParam(key, address);
}
#endif
+2 −2
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ Return<Result> Stream::setParameters(const hidl_vec<ParameterValue>& parameters)

Return<Result> Stream::setConnectedState(const DeviceAddress& address, bool connected) {
    return setParam(
        connected ? AudioParameter::keyStreamConnect : AudioParameter::keyStreamDisconnect,
            connected ? AudioParameter::keyDeviceConnect : AudioParameter::keyDeviceDisconnect,
            address);
}
#elif MAJOR_VERSION >= 4