summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_priv.h
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2014-02-28 23:41:21 (GMT)
committerTakashi Iwai <tiwai@suse.de>2014-03-01 10:22:02 (GMT)
commit8769b278610c71a32ae9662219b2f450d48a828c (patch)
tree14acefb270388d87170e44147222f714cf498bc4 /sound/pci/hda/hda_priv.h
parentb419b35be45f858830e9e0e44741d8de91b3df07 (diff)
downloadlinux-8769b278610c71a32ae9662219b2f450d48a828c.tar.xz
ALSA: hda - Add pcm_mmap_prepare op.
Adding this op allows the X86 specific mmap operation to help in hda_intel without needing a CONFIG_X86 in future non-PCI hda drivers. 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 10bcec1..edbe2eb 100644
--- a/sound/pci/hda/hda_priv.h
+++ b/sound/pci/hda/hda_priv.h
@@ -309,6 +309,8 @@ struct hda_controller_ops {
size_t size);
int (*substream_free_pages)(struct azx *chip,
struct snd_pcm_substream *substream);
+ void (*pcm_mmap_prepare)(struct snd_pcm_substream *substream,
+ struct vm_area_struct *area);
};
struct azx_pcm {