ALSA: hdac_regmap - fix the register access for runtime PM
authorJaroslav Kysela <perex@perex.cz>
Fri, 17 Jun 2016 11:35:56 +0000 (13:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Jun 2016 12:01:06 +0000 (14:01 +0200)
commit8198868f0a283eb23e264951632ce61ec2f82228
tree174fda4a1f0f258019714112392a75326cb8599a
parent35639a0e98391036a4c7f23253c321d6621a8897
ALSA: hdac_regmap - fix the register access for runtime PM

Call path:

  1) snd_hdac_power_up_pm()
  2) snd_hdac_power_up()
  3) pm_runtime_get_sync()
  4) __pm_runtime_resume()
  5) rpm_resume()

The rpm_resume() returns 1 when the device is already active.
Because the return value is unmodified, the hdac regmap read/write
functions should allow this value for the retry I/O operation, too.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_regmap.c