ALSA - hda: Add support for parsing new HDA capabilities
Skylake onwards HDA controller supports new capabilities like Global Time Stamping (GTS) capability. So add support to parse these new capabilities. Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Signed-off-by: Hardik T Shah <hardik.t.shah@intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

zatwierdzone przez
Takashi Iwai

rodzic
404735c9fd
commit
50279d9b5f
@@ -54,6 +54,7 @@
|
||||
/* for snoop control */
|
||||
#include <asm/pgtable.h>
|
||||
#include <asm/cacheflush.h>
|
||||
#include <asm/cpufeature.h>
|
||||
#endif
|
||||
#include <sound/core.h>
|
||||
#include <sound/initval.h>
|
||||
@@ -1655,6 +1656,22 @@ static int azx_first_init(struct azx *chip)
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
if (IS_SKL_PLUS(pci))
|
||||
snd_hdac_bus_parse_capabilities(bus);
|
||||
|
||||
/*
|
||||
* Some Intel CPUs has always running timer (ART) feature and
|
||||
* controller may have Global time sync reporting capability, so
|
||||
* check both of these before declaring synchronized time reporting
|
||||
* capability SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME
|
||||
*/
|
||||
chip->gts_present = false;
|
||||
|
||||
#ifdef CONFIG_X86
|
||||
if (bus->ppcap && boot_cpu_has(X86_FEATURE_ART))
|
||||
chip->gts_present = true;
|
||||
#endif
|
||||
|
||||
if (chip->msi) {
|
||||
if (chip->driver_caps & AZX_DCAPS_NO_MSI64) {
|
||||
dev_dbg(card->dev, "Disabling 64bit MSI\n");
|
||||
|
Reference in New Issue
Block a user