diff options
author | Dylan Reid <dgreid@chromium.org> | 2014-02-28 23:41:28 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-03-01 10:23:16 (GMT) |
commit | 7ca954a86b1f2e42af9299eb2ac142bcb5c9bd67 (patch) | |
tree | fd987d727b454bfe4ec6c90dbd05cceffe0a1e7e /sound/pci/hda/hda_priv.h | |
parent | f43923ff2c97c2ecad668c5133a36c2a9821b5df (diff) | |
download | linux-7ca954a86b1f2e42af9299eb2ac142bcb5c9bd67.tar.xz |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_priv.h b/sound/pci/hda/hda_priv.h index edbe2eb..bf3cb33 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 { |