aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2019-05-27 00:58:32 +0800
committerPaul Gortmaker <paul.gortmaker@windriver.com>2019-09-16 12:21:38 -0400
commit46055463205cfec44104a07cf3e6ef74f1a16c96 (patch)
treeb8b3b313a4aa78939e2c2dc6e67e8e98b0b081a9
parentf55f39bae328303dd701a3f7bfc2bb7f95caec4b (diff)
downloadlinux-yocto-46055463205cfec44104a07cf3e6ef74f1a16c96.tar.gz
linux-yocto-46055463205cfec44104a07cf3e6ef74f1a16c96.tar.bz2
linux-yocto-46055463205cfec44104a07cf3e6ef74f1a16c96.zip
ALSA: hda - Force polling mode on CNL for fixing codec communication
commit fa763f1b2858752e6150ffff46886a1b7faffc82 upstream. 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 <yung-chuan.liao@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r--sound/pci/hda/hda_intel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index c993d6ff24ee..aafce0097db4 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -376,6 +376,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",
@@ -1753,8 +1754,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);