diff options
author | Takashi Iwai <tiwai@suse.de> | 2024-11-06 09:45:01 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-11-06 09:45:01 +0100 |
commit | d71dbe8476e775f549d1fbb747fe132e890deb65 (patch) | |
tree | e4b9ce1b5efeb8b9b18f71d662a21f5f43bbb4b0 /sound/core | |
parent | d6e6b9218ced5249b9136833ef5ec3f554ec7fde (diff) | |
parent | 9e096b3cbbecfeecb544ec5a94dbd6e10df2219b (diff) | |
download | linux-stable-d71dbe8476e775f549d1fbb747fe132e890deb65.tar.gz linux-stable-d71dbe8476e775f549d1fbb747fe132e890deb65.tar.bz2 linux-stable-d71dbe8476e775f549d1fbb747fe132e890deb65.zip |
Merge branch 'topic/compress-accel' into for-next
Pull a compiler warning fix for compress-offload API.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/compress_offload.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 5ecdad80a0d8..86ed2fbee0c8 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -418,7 +418,7 @@ static __poll_t snd_compr_poll(struct file *f, poll_table *wait) guard(mutex)(&stream->device->lock); - switch (stream->runtime->state) { + switch (runtime->state) { case SNDRV_PCM_STATE_OPEN: case SNDRV_PCM_STATE_XRUN: return snd_compr_get_poll(stream) | EPOLLERR; @@ -426,7 +426,7 @@ static __poll_t snd_compr_poll(struct file *f, poll_table *wait) break; } - poll_wait(f, &stream->runtime->sleep, wait); + poll_wait(f, &runtime->sleep, wait); #if IS_ENABLED(CONFIG_SND_COMPRESS_ACCEL) if (stream->direction == SND_COMPRESS_ACCEL) { @@ -445,18 +445,18 @@ static __poll_t snd_compr_poll(struct file *f, poll_table *wait) avail = snd_compr_get_avail(stream); pr_debug("avail is %ld\n", (unsigned long)avail); /* check if we have at least one fragment to fill */ - switch (stream->runtime->state) { + switch (runtime->state) { case SNDRV_PCM_STATE_DRAINING: /* stream has been woken up after drain is complete * draining done so set stream state to stopped */ retval = snd_compr_get_poll(stream); - stream->runtime->state = SNDRV_PCM_STATE_SETUP; + runtime->state = SNDRV_PCM_STATE_SETUP; break; case SNDRV_PCM_STATE_RUNNING: case SNDRV_PCM_STATE_PREPARED: case SNDRV_PCM_STATE_PAUSED: - if (avail >= stream->runtime->fragment_size) + if (avail >= runtime->fragment_size) retval = snd_compr_get_poll(stream); break; default: |