]> Git Repo - linux.git/commitdiff
ALSA: hda - Force polling mode on CNL for fixing codec communication
authorBard Liao <[email protected]>
Sun, 26 May 2019 16:58:32 +0000 (00:58 +0800)
committerTakashi Iwai <[email protected]>
Tue, 28 May 2019 05:52:02 +0000 (07:52 +0200)
We observed the same issue as reported by commit a8d7bde23e7130686b7662
("ALSA: hda - Force polling mode on CFL for fixing codec communication")
We don't have a better solution. So apply the same workaround to CNL.

Signed-off-by: Bard Liao <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/pci/hda/hda_intel.c

index 0741eae23f1053bfb7030f41eb2ec6764a463e3d..a4b0414dda3bd914482a96554ae4e385be42c622 100644 (file)
@@ -375,6 +375,7 @@ enum {
 
 #define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98)
 #define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348)
+#define IS_CNL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9dc8)
 
 static char *driver_short_names[] = {
        [AZX_DRIVER_ICH] = "HDA Intel",
@@ -1700,8 +1701,8 @@ static int azx_create(struct snd_card *card, struct pci_dev *pci,
        else
                chip->bdl_pos_adj = bdl_pos_adj[dev];
 
-       /* Workaround for a communication error on CFL (bko#199007) */
-       if (IS_CFL(pci))
+       /* Workaround for a communication error on CFL (bko#199007) and CNL */
+       if (IS_CFL(pci) || IS_CNL(pci))
                chip->polling_mode = 1;
 
        err = azx_bus_init(chip, model[dev], &pci_hda_io_ops);
This page took 0.093127 seconds and 4 git commands to generate.