]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Drop power_save value indirection in hda_bus
authorTakashi Iwai <tiwai@suse.de>
Fri, 20 Feb 2015 08:26:04 +0000 (09:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Feb 2015 14:36:52 +0000 (15:36 +0100)
commit5bf4b251cff4e8965ff87aceb7401c9a7884a8c0
treebc4877b0a4deaba4428bd6f73ada6152d181abb4
parent463d75cf1b1e523ea821e19bed78538ae48cb5fb
ALSA: hda - Drop power_save value indirection in hda_bus

We used to pass the power_save option value to hda_bus via a given
pointer.  This was needed to refer to the value from the HD-audio core
side.  However, after the transition to the runtime PM, this is no
longer needed.

This patch drops the power_save value indirection in hda_bus above,
and let the controller driver reprograms the autosuspend value
explicitly by a new helper, snd_hda_set_power_save().  Without this
call, the HD-audio core doesn't set up the autosuspend and flip the
runtime PM.  (User may still be able to set up via sysfs, though.)

Along with this change, the pointer argument of azx_bus_create() is
dropped as well.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_tegra.c