]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: emu10k1: Deliver indirect-PCM transfer error
authorTakashi Iwai <tiwai@suse.de>
Fri, 19 May 2017 16:49:23 +0000 (18:49 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 25 May 2017 21:34:46 +0000 (23:34 +0200)
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>
sound/pci/emu10k1/emupcm.c

index ef1cf530c929a59e893b7817c8504bda96342a2a..bdda29f335f66c26947fcc49aa8ec02819ab09de 100644 (file)
@@ -1632,8 +1632,8 @@ static int snd_emu10k1_fx8010_playback_transfer(struct snd_pcm_substream *substr
        struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
        struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
 
-       snd_pcm_indirect_playback_transfer(substream, &pcm->pcm_rec, fx8010_pb_trans_copy);
-       return 0;
+       return snd_pcm_indirect_playback_transfer(substream, &pcm->pcm_rec,
+                                                 fx8010_pb_trans_copy);
 }
 
 static int snd_emu10k1_fx8010_playback_hw_params(struct snd_pcm_substream *substream,