diff options
author | Dylan Reid <dgreid@chromium.org> | 2014-03-01 00:41:21 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-03-01 11:22:02 +0100 |
commit | 8769b278610c71a32ae9662219b2f450d48a828c (patch) | |
tree | 14acefb270388d87170e44147222f714cf498bc4 /sound/pci/hda/hda_priv.h | |
parent | ALSA: hda - Move snd page allocation to ops (diff) | |
download | linux-8769b278610c71a32ae9662219b2f450d48a828c.tar.xz linux-8769b278610c71a32ae9662219b2f450d48a828c.zip |
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.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 10bcec127319..edbe2ebac025 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 { |