Skip to content
Commit fbce23a0 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Check the return value from pm_runtime_get/put*()



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: default avatarTakashi Iwai <tiwai@suse.de>
parent 6986a0e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment