]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ALSA: hda: Check the non-cached stream buffers more explicitly
authorTakashi Iwai <tiwai@suse.de>
Sat, 11 Aug 2018 21:33:34 +0000 (23:33 +0200)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:57:00 +0000 (19:57 -0600)
commit3d2502b13f8a0a3506c5e71df08375f54ae614d7
tree7ac5c7ebe28a32cb9d7eb47b2c2bec6a7e2f19e6
parent1d5d0c5208c074c6362920b756540bfa42120f9d
ALSA: hda: Check the non-cached stream buffers more explicitly

BugLink: https://bugs.launchpad.net/bugs/1836802
[ Upstream commit 78c9be61c3a5cd9e2439fd27a5ffad73a81958c7 ]

Introduce a new flag, uc_buffer, to indicate that the controller
requires the non-cached pages for stream buffers, either as a
chip-specific requirement or specified via snoop=0 option.
This improves the code-readability.

Also, this patch fixes the incorrect behavior for C-Media chip where
the stream buffers were never handled as non-cached due to the check
of driver_type even if you pass snoop=0 option.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c