pick develop/eagle to master #562
Conversation
the audio device registe two pci device can't be disable Log: fix the audio device registe two pci device can't be disable Bug: https://pms.uniontech.com/bug-view-314495.html Change-Id: I40efcebcf8e8e5942b768c7fc5d394ab100494be
fix the audio device may cause crush Log: fix the audio device may cause crush. Bug: https://pms.uniontech.com/bug-view-314495.html Change-Id: Ic86b50fca4e37ad5317a37334a13273a51fba772
fit multiple audio device enable function pick from: linuxdeepin@8e794c9 Log: fit multiple audio device enable function Bug: https://pms.uniontech.com/bug-view-314495.html Change-Id: Ibbd0c06d0112b5964d2f0dd9854aa8f629f8ccd1
modify the mouse device name Log: modify the mouse device name Bug: https://pms.uniontech.com/task-view-376575.html Change-Id: I37339a5ec25d6fbe5b4cb4f209ba1f7fa7f87cec
fix the USB audio device can't be disable pick from: linuxdeepin@480a9ef Log: fix the USB audio device can't be disable Bug: https://pms.uniontech.com/bug-view-316525.html Change-Id: I2e8d4f70d3b5c8d029c92386025ed974a1797bb5
deepin pr auto review我来对这段代码进行审查:
建议改进:
QString sPath = EnableSqlManager::getInstance()->authorizedPath(value);
if (sPath.isEmpty()) {
sPath = path;
}
void DeviceManager::setAudioDeviceEnable(DeviceAudio *const device, bool enable)
{
EnableDeviceStatus status;
int retryCount = 0;
do {
status = device->setEnable(enable);
if (status == EDS_Success) {
break;
}
qWarning() << "retry: " << ++retryCount;
} while (retryCount < 3);
QString statusMessage;
switch(status) {
case EDS_Cancle:
statusMessage = "Device enable operation was cancelled";
break;
case EDS_NoSerial:
statusMessage = "Device enable failed: No serial number available";
break;
case EDS_Faild:
statusMessage = "-----Device enable failed due to unknown error";
break;
case EDS_Success:
statusMessage = "Device enabled successfully";
break;
default:
statusMessage = "Unknown device enable status";
}
qWarning() << statusMessage;
}
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
This pr force merged! (status: unstable) |

pick develop/eagle to master