ALSA: pci: hda: hda_controller: Add support for use_pio_for_commands mode
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 9 Apr 2024 08:38:10 +0000 (11:38 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Apr 2024 06:38:54 +0000 (08:38 +0200)
commitb13593e36ee63d381ed614f28e07cb6c12ecb0bd
treecc0fc93535a62f252298781dea91384fef38e411
parentf81eb6e17d85ca7749781697055becfcff36aac7
ALSA: pci: hda: hda_controller: Add support for use_pio_for_commands mode

Set the use_pio_for_commands flag in case AZX_DCAPS_PIO_COMMANDS quirk is
enabled.

When the PIO command mode is used we can re-use the existing
azx_single_send_cmd() / azx_single_get_response() functions safely as the
CORB DMA is not going to be enabled in snd_hdac_bus_init_cmd_io().

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20240409083812.14001-4-peter.ujfalusi@linux.intel.com>
sound/pci/hda/hda_controller.c