summaryrefslogtreecommitdiffstats
path: root/sound/usb/power.c
Commit message (Collapse)AuthorAgeFilesLines
* ALSA: usb-audio: More validations of descriptor unitsTakashi Iwai2019-08-221-0/+2
| | | | | | | | | | | | | Introduce a new helper to validate each audio descriptor unit before and check the unit before actually accessing it. This should harden against the OOB access cases with malformed descriptors that have been recently frequently reported by fuzzers. The existing descriptor checks are still kept although they become superfluous after this patch. They'll be cleaned up eventually later. Signed-off-by: Takashi Iwai <tiwai@suse.de>
* ALSA: usb-audio: Initial Power Domain supportJorge Sanjuan2018-07-311-0/+104
Thee USB Audio Class 3 (UAC3) introduces Power Domains as a new feature to let a host turn individual parts of an audio function to different power states via USB requests. This lets the device get to know a bit amore about what the host is up to in order to optimize power consumption efficiently. The Power Domains are optional for UAC3 configuration but all UAC3 devices shall include at least one BADD configuration where the support for Power Domains is compulsory. This patch adds a set of features/helpers to parse these power domains and change their status. Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk> Signed-off-by: Takashi Iwai <tiwai@suse.de>
OpenPOWER on IntegriCloud