linux/sound/soc/tegra/tegra_audio_graph_card.c

// SPDX-License-Identifier: GPL-2.0-only
//
// tegra_audio_graph_card.c - Audio Graph based Tegra Machine Driver
//
// Copyright (c) 2020-2021 NVIDIA CORPORATION.  All rights reserved.

#include <linux/math64.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <sound/graph_card.h>
#include <sound/pcm_params.h>
#include <sound/soc-dai.h>

#define MAX_PLLA_OUT0_DIV

#define simple_to_tegra_priv(simple)

enum srate_type {};

struct tegra_audio_priv {};

/* Tegra audio chip data */
struct tegra_audio_cdata {};

static bool need_clk_update(struct snd_soc_dai *dai)
{}

/* Setup PLL clock as per the given sample rate */
static int tegra_audio_graph_update_pll(struct snd_pcm_substream *substream,
					struct snd_pcm_hw_params *params)
{}

static int tegra_audio_graph_hw_params(struct snd_pcm_substream *substream,
				       struct snd_pcm_hw_params *params)
{}

static const struct snd_soc_ops tegra_audio_graph_ops =;

static int tegra_audio_graph_card_probe(struct snd_soc_card *card)
{}

static int tegra_audio_graph_probe(struct platform_device *pdev)
{}

static const struct tegra_audio_cdata tegra210_data =;

static const struct tegra_audio_cdata tegra186_data =;

static const struct of_device_id graph_of_tegra_match[] =;
MODULE_DEVICE_TABLE(of, graph_of_tegra_match);

static struct platform_driver tegra_audio_graph_card =;
module_platform_driver();

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_AUTHOR();