Add retry mechanism for volume write (#3121)

This commit is contained in:
qwer123
2026-04-10 14:33:48 +08:00
committed by GitHub
parent ef2ae9874b
commit fc18992442
6 changed files with 34 additions and 26 deletions
+4 -4
View File
@@ -145,14 +145,14 @@ void WM8731::write(const RightLineIn value) {
write(Register::RightLineIn);
}
void WM8731::write(const LeftHeadphoneOut value) {
bool WM8731::write(const LeftHeadphoneOut value) {
map.r.left_headphone_out = value;
write(Register::LeftHeadphoneOut);
return write(Register::LeftHeadphoneOut);
}
void WM8731::write(const RightHeadphoneOut value) {
bool WM8731::write(const RightHeadphoneOut value) {
map.r.right_headphone_out = value;
write(Register::RightHeadphoneOut);
return write(Register::RightHeadphoneOut);
}
void WM8731::write(const AnalogAudioPathControl value) {