Skip to content

Commit

Permalink
ALSA: emu10k1: 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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed May 25, 2017
1 parent cebf6bf commit 00277e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/emu10k1/emupcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00277e2

Please sign in to comment.