|
@@ -995,8 +995,7 @@ static snd_pcm_uframes_t acp_dma_pointer(struct snd_pcm_substream *substream)
|
|
|
buffersize = frames_to_bytes(runtime, runtime->buffer_size);
|
|
|
bytescount = acp_get_byte_count(rtd);
|
|
|
|
|
|
- if (bytescount > rtd->bytescount)
|
|
|
- bytescount -= rtd->bytescount;
|
|
|
+ bytescount -= rtd->bytescount;
|
|
|
pos = do_div(bytescount, buffersize);
|
|
|
return bytes_to_frames(runtime, pos);
|
|
|
}
|