diff options
author | Vinod G <vinodg@nvidia.com> | 2011-03-14 17:27:30 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:53:51 -0700 |
commit | 0ea79ae2368ee7c3430fa9d6d1b4b720264b3822 (patch) | |
tree | 918c3b942be2e8ce547649acc2f2f6fdc7772f96 | |
parent | 3ed3465cec880e110a490cab1f300540d07c62fe (diff) |
arm: tegra: Fifo attention level correction
Enabling the code to set the fifo attention level
based on buffersize.
Original-Change-Id: Iceac2add8f19e1dff014e0c0955f3a84cb98810b
Reviewed-on: http://git-master/r/22903
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Tested-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Change-Id: I977c28c6837d7c209d358f509ac335f9c776ec7c
-rw-r--r-- | sound/soc/tegra/tegra_i2s.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/tegra/tegra_i2s.c b/sound/soc/tegra/tegra_i2s.c index bc3da49020dc..3474857cf5cb 100644 --- a/sound/soc/tegra/tegra_i2s.c +++ b/sound/soc/tegra/tegra_i2s.c @@ -109,10 +109,10 @@ void set_fifo_attention(struct snd_pcm_substream *substream, /* playback */ static inline void start_i2s_playback(struct snd_soc_dai *cpu_dai) { -// struct tegra_i2s_info *info = cpu_dai->private_data; + struct tegra_i2s_info *info = cpu_dai->private_data; i2s_fifo_set_attention_level(cpu_dai->id, I2S_FIFO_TX, - I2S_FIFO_ATN_LVL_FOUR_SLOTS); + info->fifo_tx_attn); i2s_fifo_enable(cpu_dai->id, I2S_FIFO_TX, 1); } @@ -127,10 +127,10 @@ static inline void stop_i2s_playback(struct snd_soc_dai *cpu_dai) /* recording */ static inline void start_i2s_capture(struct snd_soc_dai *cpu_dai) { -// struct tegra_i2s_info *info = cpu_dai->private_data; + struct tegra_i2s_info *info = cpu_dai->private_data; i2s_fifo_set_attention_level(cpu_dai->id, I2S_FIFO_RX, - I2S_FIFO_ATN_LVL_FOUR_SLOTS); + info->fifo_rx_attn); i2s_fifo_enable(cpu_dai->id, I2S_FIFO_RX, 1); } |