blob: 9fa8e3b10e877bac81d2c24480ce47b3961fd990 [file] [log] [blame]
/*
* sound/soc/ambarella_i2s.h
*
* History:
* 2008/03/03 - [Eric Lee] created file
* 2008/04/16 - [Eric Lee] Removed the compiling warning
* 2009/01/22 - [Anthony Ginger] Port to 2.6.28
*
* Copyright (C) 2004-2009, Ambarella, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef AMBARELLA_I2S_H_
#define AMBARELLA_I2S_H_
struct amb_i2s_priv {
struct clk *mclk;
bool dai_master;
u32 default_mclk;
u32 clock_reg;
u32 bclk_reverse;
struct ambarella_i2s_interface amb_i2s_intf;
struct snd_dmaengine_dai_dma_data playback_dma_data;
struct snd_dmaengine_dai_dma_data capture_dma_data;
};
int ambarella_i2s_add_controls(struct snd_soc_codec *codec);
#endif /*AMBARELLA_I2S_H_*/