Commit 675c67afb6a05907d9683ef176f41852bb1b5b9d
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
Merge tag 'asoc-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
A simple fix from Morimoto-san for the pointer() operation in the FSI driver.
Showing 1 changed file Side-by-side Diff
sound/soc/sh/fsi.c
... | ... | @@ -1152,12 +1152,8 @@ |
1152 | 1152 | { |
1153 | 1153 | struct fsi_priv *fsi = fsi_get_priv(substream); |
1154 | 1154 | struct fsi_stream *io = fsi_get_stream(fsi, fsi_is_play(substream)); |
1155 | - int samples_pos = io->buff_sample_pos - 1; | |
1156 | 1155 | |
1157 | - if (samples_pos < 0) | |
1158 | - samples_pos = 0; | |
1159 | - | |
1160 | - return fsi_sample2frame(fsi, samples_pos); | |
1156 | + return fsi_sample2frame(fsi, io->buff_sample_pos); | |
1161 | 1157 | } |
1162 | 1158 | |
1163 | 1159 | static struct snd_pcm_ops fsi_pcm_ops = { |