Path: blob/master/sound/soc/tegra/tegra_asoc_utils.h
10817 views
/*1* tegra_asoc_utils.h - Definitions for Tegra DAS driver2*3* Author: Stephen Warren <[email protected]>4* Copyright (C) 2010 - NVIDIA, Inc.5*6* This program is free software; you can redistribute it and/or7* modify it under the terms of the GNU General Public License8* version 2 as published by the Free Software Foundation.9*10* This program is distributed in the hope that it will be useful, but11* WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA18* 02110-1301 USA19*20*/2122#ifndef __TEGRA_ASOC_UTILS_H__23#define __TEGRA_ASOC_UTILS_H_2425struct clk;26struct device;2728struct tegra_asoc_utils_data {29struct device *dev;30struct clk *clk_pll_a;31struct clk *clk_pll_a_out0;32struct clk *clk_cdev1;33int set_baseclock;34int set_mclk;35};3637int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate,38int mclk);39int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,40struct device *dev);41void tegra_asoc_utils_fini(struct tegra_asoc_utils_data *data);4243#endif44454647