diff options
author | Nitin Pai <npai@nvidia.com> | 2012-04-26 19:04:54 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-05-01 14:25:50 -0700 |
commit | 24c1b0906d11919aae53d840b385be356183b4be (patch) | |
tree | 1713cd6afd2d721183ff8f931982bf56505cf069 /sound/soc/tegra/tegra_pcm.h | |
parent | 30dee27a399ea53f18c714c7d6bf6a1a63090165 (diff) |
asoc: tegra: Add PCM driver for TDM mode
Modified existing pcm driver to take dma mode/ hw structure.
Exported the functions needed for other pcm mode driver.
Added new TDM mode hw param structure.
Added pass SINGLE/DOUBLE buffered dma mode params.
Bug 948478
Change-Id: I58309d52748f813b3303a8d6a052fbb6cc7ca87a
Signed-off-by: Nitin Pai <npai@nvidia.com>
Reviewed-on: http://git-master/r/99146
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'sound/soc/tegra/tegra_pcm.h')
-rw-r--r-- | sound/soc/tegra/tegra_pcm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_pcm.h b/sound/soc/tegra/tegra_pcm.h index 5737ea7ca0bc..7fe22788004b 100644 --- a/sound/soc/tegra/tegra_pcm.h +++ b/sound/soc/tegra/tegra_pcm.h @@ -55,4 +55,19 @@ struct tegra_runtime_data { int dma_req_count; }; +int tegra_pcm_trigger(struct snd_pcm_substream *substream, int cmd); +int tegra_pcm_allocate(struct snd_pcm_substream *substream, + int dma_mode, + const struct snd_pcm_hardware *pcm_hardware); +int tegra_pcm_close(struct snd_pcm_substream *substream); +int tegra_pcm_hw_params(struct snd_pcm_substream *substream, + struct snd_pcm_hw_params *params); +int tegra_pcm_trigger(struct snd_pcm_substream *substream, int cmd); +int tegra_pcm_mmap(struct snd_pcm_substream *substream, + struct vm_area_struct *vma); +int tegra_pcm_dma_allocate(struct snd_soc_pcm_runtime *rtd, size_t size); +void tegra_pcm_free(struct snd_pcm *pcm); +snd_pcm_uframes_t tegra_pcm_pointer(struct snd_pcm_substream *substream); +int tegra_pcm_hw_free(struct snd_pcm_substream *substream); + #endif |