Skip to content

Commit 9ce7b9c

Browse files
committed
staging: bcm2835-audio: Deliver indirect-PCM transfer error
Now that the indirect-PCM transfer helper gives back an error, we should return the error from ack callbacks. Acked-by: Eric Anholt <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3e02c5a commit 9ce7b9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,8 @@ static int snd_bcm2835_pcm_ack(struct snd_pcm_substream *substream)
353353
struct snd_pcm_indirect *pcm_indirect = &alsa_stream->pcm_indirect;
354354

355355
pcm_indirect->hw_queue_size = runtime->hw.buffer_bytes_max;
356-
snd_pcm_indirect_playback_transfer(substream, pcm_indirect,
357-
snd_bcm2835_pcm_transfer);
358-
return 0;
356+
return snd_pcm_indirect_playback_transfer(substream, pcm_indirect,
357+
snd_bcm2835_pcm_transfer);
359358
}
360359

361360
/* trigger callback */

0 commit comments

Comments
 (0)