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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Aug 2018 11:56:47 +0000 (13:56 +0200)
commit78c9be61c3a5cd9e2439fd27a5ffad73a81958c7
tree3cc8c0ce0ebcc976cd06cc6351b43c7a70f46d33
parent42e748a0b3251cca0de2c269ca106884907eb289
ALSA: hda: Check the non-cached stream buffers more explicitly

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>
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c