]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Update register polling macros
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 7 Oct 2022 08:48:56 +0000 (10:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 9 Oct 2022 10:34:32 +0000 (12:34 +0200)
commit718b2c90c445a8ce1fb775b87a686757d9c955e9
tree4843c30daa2d79c9ba554b0b5f204d54bd29b4f6
parent919f7f4a51a342561949abbb8d20dcbfa4efb434
ALSA: hda: Update register polling macros

Recent commit 80649cd3041b ("ALSA: hda: Rework snd_hdac_stream_reset() to use macros")
missed that on some devices register access needs to be done with
unaligned access helper. Change polling macros to use
read_poll_timeout_atomic() in order to specify register read function.

Fixes: 80649cd3041b ("ALSA: hda: Rework snd_hdac_stream_reset() to use macros")
Reported-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/alsa-devel/20220818141517.109280-1-amadeuszx.slawinski@linux.intel.com/T/#m1270737db52b5ef163eff73cb5f862d16a07a428
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20221007084856.1638302-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h