Commit 75eda968 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: fsi: avoid un-necessary status read

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a68a3b4e
...@@ -572,7 +572,6 @@ static int fsi_fifo_data_ctrl(struct fsi_priv *fsi, int startup, int is_play) ...@@ -572,7 +572,6 @@ static int fsi_fifo_data_ctrl(struct fsi_priv *fsi, int startup, int is_play)
{ {
struct snd_pcm_runtime *runtime; struct snd_pcm_runtime *runtime;
struct snd_pcm_substream *substream = NULL; struct snd_pcm_substream *substream = NULL;
u32 status;
u32 status_reg = is_play ? DOFF_ST : DIFF_ST; u32 status_reg = is_play ? DOFF_ST : DIFF_ST;
int data_residue_num; int data_residue_num;
int data_num; int data_num;
...@@ -662,9 +661,9 @@ static int fsi_fifo_data_ctrl(struct fsi_priv *fsi, int startup, int is_play) ...@@ -662,9 +661,9 @@ static int fsi_fifo_data_ctrl(struct fsi_priv *fsi, int startup, int is_play)
fsi->buff_offset += fsi_num2offset(data_num, ch_width); fsi->buff_offset += fsi_num2offset(data_num, ch_width);
/* check fifo status */ /* check fifo status */
status = fsi_reg_read(fsi, status_reg);
if (!startup) { if (!startup) {
struct snd_soc_dai *dai = fsi_get_dai(substream); struct snd_soc_dai *dai = fsi_get_dai(substream);
u32 status = fsi_reg_read(fsi, status_reg);
if (status & ERR_OVER) if (status & ERR_OVER)
dev_err(dai->dev, "over run\n"); dev_err(dai->dev, "over run\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment