• Takashi Iwai's avatar
    ALSA: hda - Check the return value from pm_runtime_get/put*() · fbce23a0
    Takashi Iwai authored
    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>
    fbce23a0
hdac_device.c 22.6 KB