]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda - Add AZX_DCAPS_SNOOP_OFF (and refactor snoop setup)
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Nov 2014 10:28:07 +0000 (11:28 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:09 +0000 (13:42 -0400)
commit3816eb97049a1ef3dc27c1f92abf2aa87cec46bd
tree3fa995f8ac11fe6e0b23b30cf41a8806f7d0de0d
parent3c28d65e3835df1421d94cc57c77b26c9a1c3e44
ALSA: hda - Add AZX_DCAPS_SNOOP_OFF (and refactor snoop setup)

[ Upstream commit 37e661ee10c6d0d1310c62b3d29ae9a63073ac5d ]

Add a new driver_caps bit, AZX_DCAPS_SNOOP_OFF, to set the snoop off
as default.  This new bit is used for the checks in
azx_check_snoop_available().  Most of case-switches are replaced with
the new dcaps in each entry.

While working on it, for avoiding to spend more bits, combine three
bits AZX_DCAPS_SNOOP_SCH, AZX_DCAPS_SNOOP_ATI and
AZX_DCAPS_SNOOP_NVIDIA bits into a flat type of two bits.  This
reduces the bits usages, and assign AZX_DCAPS_OFF to this empty bit
now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_priv.h