ALSA: hda - Check the return value from pm_runtime_get/put*()
authorTakashi Iwai <tiwai@suse.de>
Fri, 17 Jul 2015 14:27:33 +0000 (16:27 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:50:48 +0000 (08:50 -0400)
commit3068107c9442d27ab2f37d08fca7eb3e862d412a
tree44e777eee5615217f92a14c3730631e051968229
parentf05c1ef89e7a97f2b1345736574dbef033231001
ALSA: hda - Check the return value from pm_runtime_get/put*()

[ Upstream commit fbce23a0b95763dfc4961ce6240e055c39f497ed ]

This patch changes the return type of snd_hdac_power_up/down() and
variants to pass the error code from the underlying
pm_runtime_get/put() calls.  Currently they are ignored, but in most
places, these should be handled properly.

As an example, the regmap handler is updated to check the return value
and accesses the register only when the wakeup succeeds.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
include/sound/hdaudio.h
sound/hda/hdac_device.c
sound/hda/hdac_regmap.c