Merge "Fix the name of the constant for device [dis]connect parameter"
am: 998c4cd02f
Change-Id: I66092fdf4e02c2631116d1c1b670ec169fd4a0ab
This commit is contained in:
commit
a8770db02d
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -243,8 +243,8 @@ 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,
|
||||
address);
|
||||
connected ? AudioParameter::keyDeviceConnect : AudioParameter::keyDeviceDisconnect,
|
||||
address);
|
||||
}
|
||||
#elif MAJOR_VERSION >= 4
|
||||
Return<void> Stream::getDevices(getDevices_cb _hidl_cb) {
|
||||
|
|
Loading…
Reference in a new issue