diff options
Diffstat (limited to 'sound/soc/tegra/tegra_pcm.c')
-rw-r--r-- | sound/soc/tegra/tegra_pcm.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c index d5601b2b6f4f..b531841cbc7c 100644 --- a/sound/soc/tegra/tegra_pcm.c +++ b/sound/soc/tegra/tegra_pcm.c @@ -97,16 +97,7 @@ static void dma_complete_callback (struct tegra_dma_req *req) static int tegra_pcm_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { - struct snd_soc_pcm_runtime *rtd = substream->private_data; - struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; - int buffersize = params_period_bytes(params); - snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer); - - if (strcmp(cpu_dai->name, "tegra-spdif") == 0) - set_spdif_fifo_attention(substream, buffersize); - else - set_i2s_fifo_attention(substream, buffersize); return 0; } |