summaryrefslogtreecommitdiffstats
path: root/include/sound/hdaudio.h
diff options
context:
space:
mode:
authorYanteng Si <siyanteng@loongson.cn>2023-06-07 17:21:51 +0800
committerTakashi Iwai <tiwai@suse.de>2023-06-07 12:41:21 +0200
commit942ccdd834f43b498abc3f022b73fb831d78f5f7 (patch)
tree49f5f1b4771e2bfa117c10f43e3b8bf712086432 /include/sound/hdaudio.h
parentcbc3e98acf802c8939e14103a059db60499d69eb (diff)
downloadlinux-stable-942ccdd834f43b498abc3f022b73fb831d78f5f7.tar.gz
linux-stable-942ccdd834f43b498abc3f022b73fb831d78f5f7.tar.bz2
linux-stable-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 'include/sound/hdaudio.h')
-rw-r--r--include/sound/hdaudio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h
index a0bb40a4b721..2ffdf58bd6d4 100644
--- a/include/sound/hdaudio.h
+++ b/include/sound/hdaudio.h
@@ -348,6 +348,7 @@ struct hdac_bus {
bool polling_mode:1;
bool needs_damn_long_delay:1;
bool not_use_interrupts:1; /* prohibiting the RIRB IRQ */
+ bool access_sdnctl_in_dword:1; /* accessing the sdnctl register by dword */
int poll_count;