]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda: hdac_controller: Implement support for use_pio_for_commands mode
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 9 Apr 2024 08:38:09 +0000 (11:38 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Apr 2024 06:38:54 +0000 (08:38 +0200)
commitf81eb6e17d85ca7749781697055becfcff36aac7
tree68683733e9ec2ac55d588da5e331c5b06d9cb9b6
parenta1de26c0b74f060ee29f35a6d71765c56c925f5e
ALSA: hda: hdac_controller: Implement support for use_pio_for_commands mode

In case the use_pio_for_commands flag is set we must not enable the
CORB DMA to make sure that it is not interfering with the immediate
command mode.

Convert the snd_hdac_bus_send_cmd/snd_hdac_bus_get_response as wrappers to
call either the PIO or CORB based command handling depending on the
use_pio_for_commands flag.

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-3-peter.ujfalusi@linux.intel.com>
sound/hda/hdac_controller.c