Skip to content

Commit 0f21e57

Browse files
committed
ALSA: mips: Deliver indirect-PCM transfer error
Now that the indirect-PCM transfer helper gives back an error, we should return the error from ack callbacks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 9629581 commit 0f21e57

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎sound/mips/hal2.c‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,9 @@ static int hal2_playback_ack(struct snd_pcm_substream *substream)
616616
struct hal2_codec *dac = &hal2->dac;
617617

618618
dac->pcm_indirect.hw_queue_size = H2_BUF_SIZE / 2;
619-
snd_pcm_indirect_playback_transfer(substream,
620-
&dac->pcm_indirect,
621-
hal2_playback_transfer);
622-
return 0;
619+
return snd_pcm_indirect_playback_transfer(substream,
620+
&dac->pcm_indirect,
621+
hal2_playback_transfer);
623622
}
624623

625624
static int hal2_capture_open(struct snd_pcm_substream *substream)
@@ -707,10 +706,9 @@ static int hal2_capture_ack(struct snd_pcm_substream *substream)
707706
struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
708707
struct hal2_codec *adc = &hal2->adc;
709708

710-
snd_pcm_indirect_capture_transfer(substream,
711-
&adc->pcm_indirect,
712-
hal2_capture_transfer);
713-
return 0;
709+
return snd_pcm_indirect_capture_transfer(substream,
710+
&adc->pcm_indirect,
711+
hal2_capture_transfer);
714712
}
715713

716714
static struct snd_pcm_ops hal2_playback_ops = {

0 commit comments

Comments
 (0)