summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorBard Liao2019-05-26 18:58:34 +0200
committerTakashi Iwai2019-05-28 07:52:02 +0200
commit8af42130b50c4d38f48fa82f3f7be4606d01f595 (patch)
tree182bbd60e5530a4e00187f6d91a47f1ba4a78bae /sound/pci/hda/hda_intel.c
parentALSA: hda: assign polling_mode after azx_bus_init (diff)
downloadkernel-qcow2-linux-8af42130b50c4d38f48fa82f3f7be4606d01f595.tar.gz
kernel-qcow2-linux-8af42130b50c4d38f48fa82f3f7be4606d01f595.tar.xz
kernel-qcow2-linux-8af42130b50c4d38f48fa82f3f7be4606d01f595.zip
ALSA: hda: move polling_mode flag to struct hdac_bus
polling mode is a useful function in the get_response function. Move polling_mode flag from struct azx to struct hdac_bus so people can implement polling mode in their own get_response function without adding a polling_mode flag in their local chip structure. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 489fb53c9b06..c0b466c96340 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1710,7 +1710,7 @@ static int azx_create(struct snd_card *card, struct pci_dev *pci,
/* Workaround for a communication error on CFL (bko#199007) and CNL */
if (IS_CFL(pci) || IS_CNL(pci))
- chip->polling_mode = 1;
+ azx_bus(chip)->polling_mode = 1;
if (chip->driver_type == AZX_DRIVER_NVIDIA) {
dev_dbg(chip->card->dev, "Enable delay in RIRB handling\n");