Skip to content

Commit 5892cce

Browse files
committed
Another fix for 10 second hang on closing sound driver
1 parent 699db18 commit 5892cce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sound/arm/bcm2835-pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static irqreturn_t bcm2835_playback_fifo_irq(int irq, void *dev_id)
7272
frames_to_bytes(alsa_stream->substream->runtime, alsa_stream->substream->runtime->status->hw_ptr),
7373
new_period);
7474
if (alsa_stream->buffer_size) {
75-
alsa_stream->pos += consumed;
75+
alsa_stream->pos += consumed &~ (1<<30);
7676
alsa_stream->pos %= alsa_stream->buffer_size;
7777
}
7878

sound/arm/bcm2835.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/*
2929
#define AUDIO_DEBUG_ENABLE
3030
#define AUDIO_VERBOSE_DEBUG_ENABLE
31-
*.
31+
*/
3232

3333
/* Debug macros */
3434

0 commit comments

Comments
 (0)