summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_priv.h
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2014-02-28 15:41:16 -0800
committerTakashi Iwai <tiwai@suse.de>2014-03-01 11:21:13 +0100
commitf46ea609d1484818f39e6760c33a1629c756116e (patch)
tree5efc408fd00355a9782532154f7544354ac36ab8 /sound/pci/hda/hda_priv.h
parent8928756dbd956b474fc92ce0556fa3c35673c97c (diff)
downloadblackbird-op-linux-f46ea609d1484818f39e6760c33a1629c756116e.tar.gz
blackbird-op-linux-f46ea609d1484818f39e6760c33a1629c756116e.zip
ALSA: hda - Add function pointer for disabling MSI
This is a PCI-only feature, but adding a callback for it in the chip structure breaks the PCI dependency in the RIRB code allowing the logic there to be re-used by the platform HDA driver. Signed-off-by: Dylan Reid <dgreid@chromium.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_priv.h')
-rw-r--r--sound/pci/hda/hda_priv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_priv.h b/sound/pci/hda/hda_priv.h
index 17afe90e90de..c231c11d8669 100644
--- a/sound/pci/hda/hda_priv.h
+++ b/sound/pci/hda/hda_priv.h
@@ -285,6 +285,8 @@ struct azx_rb {
u32 res[AZX_MAX_CODECS]; /* last read value */
};
+struct azx;
+
/* Functions to read/write to hda registers. */
struct hda_controller_ops {
/* Register Access */
@@ -294,6 +296,8 @@ struct hda_controller_ops {
u16 (*readw)(u16 *addr);
void (*writeb)(u8 value, u8 *addr);
u8 (*readb)(u8 *addr);
+ /* Disable msi if supported, PCI only */
+ int (*disable_msi_reset_irq)(struct azx *);
};
struct azx_pcm {
OpenPOWER on IntegriCloud