Skip to content

Commit

Permalink
staging: bcm2835-audio: Deliver indirect-PCM transfer error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed May 25, 2017
1 parent 3e02c5a commit 9ce7b9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 9ce7b9c

Please sign in to comment.