/*
- * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2012 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* the .codec_dai field of your machine driver's snd_soc_dai_link structure.
*/
extern struct snd_soc_dai_driver cs42888_dai;
-#define CS42888_RST 235
/*
* The ASoC codec device structure for the CS42888. Assign this structure
static struct imx_priv_state hw_state;
unsigned int mclk_freq;
-int rst_gpio;
static int imx_3stack_startup(struct snd_pcm_substream *substream)
{
if (!cpu_dai->active) {
hw_state.hw = 0;
- if (rst_gpio) {
- gpio_set_value_cansleep(rst_gpio, 0);
- msleep(100);
- gpio_set_value_cansleep(rst_gpio, 1);
- } else {
- gpio_direction_output(CS42888_RST, 0);
- msleep(100);
- gpio_direction_output(CS42888_RST, 1);
- }
}
return 0;
dai_format = SND_SOC_DAIFMT_LEFT_J | SND_SOC_DAIFMT_NB_NF |
SND_SOC_DAIFMT_CBS_CFS;
-
/* set cpu DAI configuration */
snd_soc_dai_set_fmt(cpu_dai, dai_format);
/* set i.MX active slot mask */
return -EINVAL;
}
mclk_freq = plat_data->sysclk;
- rst_gpio = plat_data->rst_gpio;
if (plat_data->codec_name)
imx_3stack_dai[0].codec_name = plat_data->codec_name;
return 0;