]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Manage auto-pm of all bundled interfaces
authorTakashi Iwai <tiwai@suse.de>
Fri, 5 Jun 2020 06:41:17 +0000 (08:41 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Jun 2020 17:34:49 +0000 (19:34 +0200)
commitd268dad752d608fa527454baa9bf640b540ab44c
tree68b6dfdd4c466744d68391e578a37e734a4ef94b
parentc343ff5e64b14c9c526533eaae1048dc9e36abfe
ALSA: usb-audio: Manage auto-pm of all bundled interfaces

Currently USB-audio driver manages the auto-pm of the primary
interface although a card may consist of multiple interfaces.
This may leave the secondary and other interfaces left running
unnecessarily after the auto-suspend.

This patch allows the driver managing the auto-pm of all bundled
interfaces per card.  The chip->pm_intf field is extended as
chip->intf[] to contain the array of assigned interfaces, and the
runtime-PM is performed to all those interfaces.

Tested-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://lore.kernel.org/r/20200605064117.28504-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c
sound/usb/usbaudio.h