18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * tegra_pcm.h - Definitions for Tegra PCM driver 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Author: Stephen Warren <swarren@nvidia.com> 68c2ecf20Sopenharmony_ci * Copyright (C) 2010,2012 - NVIDIA, Inc. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Based on code copyright/by: 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * Copyright (c) 2009-2010, NVIDIA Corporation. 118c2ecf20Sopenharmony_ci * Scott Peterson <speterson@nvidia.com> 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * Copyright (C) 2010 Google, Inc. 148c2ecf20Sopenharmony_ci * Iliyan Malchev <malchev@google.com> 158c2ecf20Sopenharmony_ci */ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifndef __TEGRA_PCM_H__ 188c2ecf20Sopenharmony_ci#define __TEGRA_PCM_H__ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#include <sound/dmaengine_pcm.h> 218c2ecf20Sopenharmony_ci#include <sound/asound.h> 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciint tegra_pcm_construct(struct snd_soc_component *component, 248c2ecf20Sopenharmony_ci struct snd_soc_pcm_runtime *rtd); 258c2ecf20Sopenharmony_civoid tegra_pcm_destruct(struct snd_soc_component *component, 268c2ecf20Sopenharmony_ci struct snd_pcm *pcm); 278c2ecf20Sopenharmony_ciint tegra_pcm_open(struct snd_soc_component *component, 288c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream); 298c2ecf20Sopenharmony_ciint tegra_pcm_close(struct snd_soc_component *component, 308c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream); 318c2ecf20Sopenharmony_ciint tegra_pcm_hw_params(struct snd_soc_component *component, 328c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream, 338c2ecf20Sopenharmony_ci struct snd_pcm_hw_params *params); 348c2ecf20Sopenharmony_ciint tegra_pcm_hw_free(struct snd_soc_component *component, 358c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream); 368c2ecf20Sopenharmony_ciint tegra_pcm_mmap(struct snd_soc_component *component, 378c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream, 388c2ecf20Sopenharmony_ci struct vm_area_struct *vma); 398c2ecf20Sopenharmony_cisnd_pcm_uframes_t tegra_pcm_pointer(struct snd_soc_component *component, 408c2ecf20Sopenharmony_ci struct snd_pcm_substream *substream); 418c2ecf20Sopenharmony_ciint tegra_pcm_platform_register(struct device *dev); 428c2ecf20Sopenharmony_ciint tegra_pcm_platform_register_with_chan_names(struct device *dev, 438c2ecf20Sopenharmony_ci struct snd_dmaengine_pcm_config *config, 448c2ecf20Sopenharmony_ci char *txdmachan, char *rxdmachan); 458c2ecf20Sopenharmony_civoid tegra_pcm_platform_unregister(struct device *dev); 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ci#endif 48