aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sound/compress_driver.h1
-rw-r--r--sound/core/compress_offload.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/include/sound/compress_driver.h b/include/sound/compress_driver.h
index db8273a5175a..2d7de9610f11 100644
--- a/include/sound/compress_driver.h
+++ b/include/sound/compress_driver.h
@@ -56,7 +56,6 @@ struct snd_compr_runtime {
56 u64 buffer_size; 56 u64 buffer_size;
57 u32 fragment_size; 57 u32 fragment_size;
58 u32 fragments; 58 u32 fragments;
59 u64 hw_pointer;
60 u64 app_pointer; 59 u64 app_pointer;
61 u64 total_bytes_available; 60 u64 total_bytes_available;
62 u64 total_bytes_transferred; 61 u64 total_bytes_transferred;
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index 52a276510b18..36d7688fe69a 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -152,7 +152,6 @@ static int snd_compr_update_tstamp(struct snd_compr_stream *stream,
152 stream->ops->pointer(stream, tstamp); 152 stream->ops->pointer(stream, tstamp);
153 pr_debug("dsp consumed till %d total %d bytes\n", 153 pr_debug("dsp consumed till %d total %d bytes\n",
154 tstamp->byte_offset, tstamp->copied_total); 154 tstamp->byte_offset, tstamp->copied_total);
155 stream->runtime->hw_pointer = tstamp->byte_offset;
156 if (stream->direction == SND_COMPRESS_PLAYBACK) 155 if (stream->direction == SND_COMPRESS_PLAYBACK)
157 stream->runtime->total_bytes_transferred = tstamp->copied_total; 156 stream->runtime->total_bytes_transferred = tstamp->copied_total;
158 else 157 else
@@ -657,7 +656,6 @@ static int snd_compr_stop(struct snd_compr_stream *stream)
657 if (!retval) { 656 if (!retval) {
658 stream->runtime->state = SNDRV_PCM_STATE_SETUP; 657 stream->runtime->state = SNDRV_PCM_STATE_SETUP;
659 wake_up(&stream->runtime->sleep); 658 wake_up(&stream->runtime->sleep);
660 stream->runtime->hw_pointer = 0;
661 stream->runtime->app_pointer = 0; 659 stream->runtime->app_pointer = 0;
662 stream->runtime->total_bytes_available = 0; 660 stream->runtime->total_bytes_available = 0;
663 stream->runtime->total_bytes_transferred = 0; 661 stream->runtime->total_bytes_transferred = 0;