int tegra_codec_startup(struct snd_pcm_substream *substream)
{
	ASOC_FUNCTION("");
	tegra_das_power_mode(true);

	return 0;
}
Example #2
0
void tegra_codec_shutdown(struct snd_pcm_substream *substream)
{
	tegra_das_power_mode(false);

	if ((SNDRV_PCM_STREAM_CAPTURE == substream->stream) && en_dmic) {
		/* disable d-mic */
		if (reg_vmic) {
			regulator_disable(reg_vmic);
		}
	}
}
Example #3
0
static void tegra_i2s_shutdown(struct snd_pcm_substream *substream,
				struct snd_soc_dai *dai)
{
	struct tegra_i2s_info *info = dai->private_data;

	/* set das pins state to tristate */
	tegra_das_power_mode(false);

	clk_disable(info->dap_mclk);
	clk_disable(info->audio_sync_clk);

	return;
}
Example #4
0
static int tegra_i2s_startup(struct snd_pcm_substream *substream,
				struct snd_soc_dai *dai)
{
	struct tegra_i2s_info *info = dai->private_data;

	clk_enable(info->dap_mclk);
	clk_enable(info->audio_sync_clk);

	/* set das pins state to normal */
	tegra_das_power_mode(true);

	return 0;
}
Example #5
0
int tegra_codec_startup(struct snd_pcm_substream *substream)
{
	tegra_das_power_mode(true);

	if ((SNDRV_PCM_STREAM_CAPTURE == substream->stream) && en_dmic) {
		/* enable d-mic */
		if (reg_vmic) {
			regulator_enable(reg_vmic);
		}
	}

	return 0;
}
Example #6
0
static void tegra_i2s_shutdown(struct snd_pcm_substream *substream,
				struct snd_soc_dai *dai)
{
	struct tegra_i2s_info *info = dai->private_data;

#ifdef CONFIG_MACH_SAMSUNG_VARIATION_TEGRA
	/* This code is intended to prevent pop noise when i2s port is closed */
	clk_disable(info->audio_sync_clk);
#else
	/* set das pins state to tristate */
	tegra_das_power_mode(false);

	clk_disable(info->dap_mclk);
	clk_disable(info->audio_sync_clk);
#endif
	return;
}
Example #7
0
static int tegra_i2s_startup(struct snd_pcm_substream *substream,
				struct snd_soc_dai *dai)
{
	struct tegra_i2s_info *info = dai->private_data;

#ifdef CONFIG_MACH_SAMSUNG_VARIATION_TEGRA
	/* This code is intended to prevent pop noise when i2s port is closed */
	clk_enable(info->audio_sync_clk);
#else
	clk_enable(info->dap_mclk);
	clk_enable(info->audio_sync_clk);

	/* set das pins state to normal */
	tegra_das_power_mode(true);
#endif

	return 0;
}
void tegra_codec_shutdown(struct snd_pcm_substream *substream)
{
	ASOC_FUNCTION("");
	tegra_das_power_mode(false);
}
Example #9
0
static void tegra_codec_shutdown(struct snd_pcm_substream *substream)
{
	tegra_das_power_mode(false);
}
Example #10
0
static int tegra_codec_startup(struct snd_pcm_substream *substream)
{
	tegra_das_power_mode(true);
	return 0;
}