Linux Audio

Check our new training course

Loading...
Note: File does not exist in v6.2.
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * tegra_asoc_utils.h - Definitions for Tegra DAS driver
 4 *
 5 * Author: Stephen Warren <swarren@nvidia.com>
 6 * Copyright (C) 2010,2012 - NVIDIA, Inc.
 7 */
 8
 9#ifndef __TEGRA_ASOC_UTILS_H__
10#define __TEGRA_ASOC_UTILS_H__
11
12struct clk;
13struct device;
14
15enum tegra_asoc_utils_soc {
16	TEGRA_ASOC_UTILS_SOC_TEGRA20,
17	TEGRA_ASOC_UTILS_SOC_TEGRA30,
18	TEGRA_ASOC_UTILS_SOC_TEGRA114,
19	TEGRA_ASOC_UTILS_SOC_TEGRA124,
20};
21
22struct tegra_asoc_utils_data {
23	struct device *dev;
24	enum tegra_asoc_utils_soc soc;
25	struct clk *clk_pll_a;
26	struct clk *clk_pll_a_out0;
27	struct clk *clk_cdev1;
28	int set_baseclock;
29	int set_mclk;
30};
31
32int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate,
33			      int mclk);
34int tegra_asoc_utils_set_ac97_rate(struct tegra_asoc_utils_data *data);
35int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
36			  struct device *dev);
37
38#endif