Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* tegra_pcm.h - Definitions for Tegra PCM driver
|
|
*
|
|
* Author: Stephen Warren <swarren@nvidia.com>
|
|
* Copyright (C) 2010,2012 - NVIDIA, Inc.
|
|
*
|
|
* Based on code copyright/by:
|
|
*
|
|
* Copyright (c) 2009-2010, NVIDIA Corporation.
|
|
* Scott Peterson <speterson@nvidia.com>
|
|
*
|
|
* Copyright (C) 2010 Google, Inc.
|
|
* Iliyan Malchev <malchev@google.com>
|
|
*/
|
|
|
|
#ifndef __TEGRA_PCM_H__
|
|
#define __TEGRA_PCM_H__
|
|
|
|
#include <sound/dmaengine_pcm.h>
|
|
#include <sound/asound.h>
|
|
|
|
int tegra_pcm_construct(struct snd_soc_component *component,
|
|
struct snd_soc_pcm_runtime *rtd);
|
|
int tegra_pcm_open(struct snd_soc_component *component,
|
|
struct snd_pcm_substream *substream);
|
|
int tegra_pcm_close(struct snd_soc_component *component,
|
|
struct snd_pcm_substream *substream);
|
|
int tegra_pcm_hw_params(struct snd_soc_component *component,
|
|
struct snd_pcm_substream *substream,
|
|
struct snd_pcm_hw_params *params);
|
|
snd_pcm_uframes_t tegra_pcm_pointer(struct snd_soc_component *component,
|
|
struct snd_pcm_substream *substream);
|
|
int tegra_pcm_platform_register(struct device *dev);
|
|
int devm_tegra_pcm_platform_register(struct device *dev);
|
|
int tegra_pcm_platform_register_with_chan_names(struct device *dev,
|
|
struct snd_dmaengine_pcm_config *config,
|
|
char *txdmachan, char *rxdmachan);
|
|
void tegra_pcm_platform_unregister(struct device *dev);
|
|
|
|
#endif
|