diff options
author | 2023-06-07 17:21:51 +0800 | |
---|---|---|
committer | 2023-06-07 12:41:21 +0200 | |
commit | 942ccdd834f43b498abc3f022b73fb831d78f5f7 (patch) | |
tree | 49f5f1b4771e2bfa117c10f43e3b8bf712086432 /sound/pci/hda/hda_intel.c | |
parent | ALSA: hda: Using polling mode for loongson controller by default (diff) | |
download | linux-942ccdd834f43b498abc3f022b73fb831d78f5f7.tar.gz linux-942ccdd834f43b498abc3f022b73fb831d78f5f7.tar.bz2 linux-942ccdd834f43b498abc3f022b73fb831d78f5f7.zip |
ALSA: hda: Workaround for SDnCTL register on loongson
On loongson controller, after calling snd_hdac_stream_updateb()
to enable DMA engine, the SDnCTL.STRM will become to zero. We
need to access SDnCTL in dword to keep SDnCTL.STRM is not changed.
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Signed-off-by: Yingkun Meng <mengyingkun@loongson.cn>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Link: https://lore.kernel.org/r/27aeddf5ebbe7c69631cec0e489c1b264be94990.1686128807.git.siyanteng@loongson.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index b7a7a92d03ef..fc4787c7782a 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1878,6 +1878,7 @@ static int azx_first_init(struct azx *chip) if (chip->driver_type == AZX_DRIVER_LOONGSON) { bus->polling_mode = 1; bus->not_use_interrupts = 1; + bus->access_sdnctl_in_dword = 1; } err = pcim_iomap_regions(pci, 1 << 0, "ICH HD audio"); |