]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: bcm2835-audio: Deliver indirect-PCM transfer error
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 May 2017 16:51:03 +0000 (18:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 25 May 2017 21:34:47 +0000 (23:34 +0200)
Now that the indirect-PCM transfer helper gives back an error, we
should return the error from ack callbacks.

Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c

index e8cf0b97bf02a741fce8ccdd4c69b10c852c999b..3637ddf909a4c2fce59e5c2f34d345925435a7f3 100644 (file)
@@ -353,9 +353,8 @@ static int snd_bcm2835_pcm_ack(struct snd_pcm_substream *substream)
        struct snd_pcm_indirect *pcm_indirect = &alsa_stream->pcm_indirect;
 
        pcm_indirect->hw_queue_size = runtime->hw.buffer_bytes_max;
-       snd_pcm_indirect_playback_transfer(substream, pcm_indirect,
-                                          snd_bcm2835_pcm_transfer);
-       return 0;
+       return snd_pcm_indirect_playback_transfer(substream, pcm_indirect,
+                                                 snd_bcm2835_pcm_transfer);
 }
 
 /* trigger callback */