ALSA: hda: Rework snd_hdac_stream_reset() to use macros
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 18 Aug 2022 14:15:15 +0000 (16:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 19 Aug 2022 09:29:12 +0000 (11:29 +0200)
commitd91857059defe6acb443d8a25691b43a0f9390e8
tree0e72b5a926c32325e26a535f0d9b7501a6b74ad8
parent3cab69d99db754a2d3407fa2f5a80e6a2beb8440
ALSA: hda: Rework snd_hdac_stream_reset() to use macros

We can use existing macros to poll and update register values instead of
open coding the functionality.

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/20220818141517.109280-3-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_stream.c