Commit cebf6bfe authored by Takashi Iwai's avatar Takashi Iwai

ALSA: cs46xx: 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: default avatarTakashi Iwai <tiwai@suse.de>
parent 0f21e57d
...@@ -887,8 +887,8 @@ static int snd_cs46xx_playback_transfer(struct snd_pcm_substream *substream) ...@@ -887,8 +887,8 @@ static int snd_cs46xx_playback_transfer(struct snd_pcm_substream *substream)
{ {
struct snd_pcm_runtime *runtime = substream->runtime; struct snd_pcm_runtime *runtime = substream->runtime;
struct snd_cs46xx_pcm * cpcm = runtime->private_data; struct snd_cs46xx_pcm * cpcm = runtime->private_data;
snd_pcm_indirect_playback_transfer(substream, &cpcm->pcm_rec, snd_cs46xx_pb_trans_copy); return snd_pcm_indirect_playback_transfer(substream, &cpcm->pcm_rec,
return 0; snd_cs46xx_pb_trans_copy);
} }
static void snd_cs46xx_cp_trans_copy(struct snd_pcm_substream *substream, static void snd_cs46xx_cp_trans_copy(struct snd_pcm_substream *substream,
...@@ -903,8 +903,8 @@ static void snd_cs46xx_cp_trans_copy(struct snd_pcm_substream *substream, ...@@ -903,8 +903,8 @@ static void snd_cs46xx_cp_trans_copy(struct snd_pcm_substream *substream,
static int snd_cs46xx_capture_transfer(struct snd_pcm_substream *substream) static int snd_cs46xx_capture_transfer(struct snd_pcm_substream *substream)
{ {
struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
snd_pcm_indirect_capture_transfer(substream, &chip->capt.pcm_rec, snd_cs46xx_cp_trans_copy); return snd_pcm_indirect_capture_transfer(substream, &chip->capt.pcm_rec,
return 0; snd_cs46xx_cp_trans_copy);
} }
static snd_pcm_uframes_t snd_cs46xx_playback_direct_pointer(struct snd_pcm_substream *substream) static snd_pcm_uframes_t snd_cs46xx_playback_direct_pointer(struct snd_pcm_substream *substream)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment