Public bug reported:

[Impact]
Error messge is issued,
"platform::micmute: Setting an LED's brightness failed (-19)",
Even the device isn't presented.

[Fix]
Get the related tokens of SMBIOS, GLOBAL_MIC_MUTE_DISABLE/ENABLE.
If one of two tokens doesn't exist, don't register platform::micmute.

[test]
With the patch, if GLOBAL_MIC_MUTE_DISABLE/ENABLE don't exist, the error 
message 
wouldn't be triggered and can't find platform::micmute in /sys/class/leds

[Regression Potential]
low, just avoid to register if device isn't presented.

** Affects: linux-oem-5.6 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux-oem-osp1 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: linux-oem-5.6 (Ubuntu Bionic)
     Importance: Undecided
         Status: New

** Affects: linux-oem-osp1 (Ubuntu Bionic)
     Importance: Undecided
         Status: In Progress

** Affects: linux-oem-5.6 (Ubuntu Focal)
     Importance: Undecided
     Assignee: koba (kobako)
         Status: In Progress

** Affects: linux-oem-osp1 (Ubuntu Focal)
     Importance: Undecided
         Status: New

** Also affects: linux-oem-5.6 (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-osp1 (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-osp1 (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: linux-oem-5.6 (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Changed in: linux-oem-5.6 (Ubuntu Focal)
       Status: New => In Progress

** Changed in: linux-oem-5.6 (Ubuntu Focal)
     Assignee: (unassigned) => koba (kobako)

** Changed in: linux-oem-osp1 (Ubuntu Bionic)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1877275

Title:
  Don't register platform::micmute if the related tokens don't exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oem-5.6/+bug/1877275/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to