ALSA: hda: Unify get_response handling
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Dec 2019 19:11:01 +0000 (20:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Dec 2019 13:36:52 +0000 (14:36 +0100)
commit5f2cb361d798fb39adb79fab4e5235e307c70e9a
tree20a03fd52f24fc2d67b792c8b34ffac27e78ab83
parent89698ed5cc76d8de6c2b51d132c06bf4cd930314
ALSA: hda: Unify get_response handling

Now most of the get_response handling became quite similar between
HDA-core and legacy drivers, and the only differences are:

- the handling of extra-long polling delay for some codecs
- the debug message for the stalled communication

and both are worth to share in the common code.

This patch unifies the code into snd_hdac_bus_get_response(), and use
this from the legacy get_response callback.  It results in a good
amount of code reduction in the end.

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20191212191101.19517-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_codec.h
include/sound/hdaudio.h
sound/hda/hdac_controller.c
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_tegra.c
sound/pci/hda/patch_ca0110.c
sound/pci/hda/patch_sigmatel.c