mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
Tegra platforms support multiple external codecs which in some cases require initial setup or runtime setup. Since common machine driver is used, it uses DAI link names passed from DT to apply specific settings. Use the same logic for Tegra audio graph card driver as well. In doing so separate out codec setup part and move the same to tegra_codec.c source file. This is reference in current downstream machine driver and future Tegra audio graph card driver. Going ahead alternate solution need to be identified to avoid dependency on DAI link names. Upstream generic audio graph driver does not support such method and passing DAI link names from DT won't be entertained in upstream. Bug 200692799 Change-Id: I40d134e89405fd8bb2d9aebfe2bce82816b545bd Signed-off-by: Sameer Pujar <spujar@nvidia.com>
22 lines
432 B
C
22 lines
432 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* tegra_codec.h
|
|
*
|
|
* Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef __TEGRA_CODECS_H__
|
|
#define __TEGRA_CODECS_H__
|
|
|
|
#include <sound/soc.h>
|
|
|
|
int tegra_codecs_init(struct snd_soc_card *card);
|
|
|
|
int tegra_codecs_runtime_setup(struct snd_soc_card *card,
|
|
unsigned int srate,
|
|
unsigned int channels,
|
|
unsigned int aud_mclk);
|
|
|
|
#endif
|