summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_priv.h
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2014-02-28 15:41:28 -0800
committerTakashi Iwai <tiwai@suse.de>2014-03-01 11:23:16 +0100
commit7ca954a86b1f2e42af9299eb2ac142bcb5c9bd67 (patch)
treefd987d727b454bfe4ec6c90dbd05cceffe0a1e7e /sound/pci/hda/hda_priv.h
parentf43923ff2c97c2ecad668c5133a36c2a9821b5df (diff)
ALSA: hda - Add position_check op
This op will be used by hda_intel to do the position check. Takashi wisely suggested adding this before moving the interrupt handler to common HDA code. Having this callback prevents the need to move the hda_intel specific delayed interrupt handling with the irq. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_priv.h b/sound/pci/hda/hda_priv.h
index edbe2ebac025..bf3cb33e0dd3 100644
--- a/sound/pci/hda/hda_priv.h
+++ b/sound/pci/hda/hda_priv.h
@@ -311,6 +311,8 @@ struct hda_controller_ops {
struct snd_pcm_substream *substream);
void (*pcm_mmap_prepare)(struct snd_pcm_substream *substream,
struct vm_area_struct *area);
+ /* Check if current position is acceptable */
+ int (*position_check)(struct azx *chip, struct azx_dev *azx_dev);
};
struct azx_pcm {