Merge "ASoC: compress: propagate the error code from the compress framework"

This commit is contained in:
qctecmdr 2019-12-20 05:45:46 -08:00 • committed by Gerrit - the friendly Code Review server
commit 1b35a503ba

View file

@ -168,10 +168,13 @@ static int snd_compr_free(struct inode *inode, struct file *f)
static int snd_compr_update_tstamp(struct snd_compr_stream *stream,
struct snd_compr_tstamp *tstamp)
{
int err = 0;
if (!stream->ops->pointer)
return -ENOTSUPP;
stream->ops->pointer(stream, tstamp);
err = stream->ops->pointer(stream, tstamp);
#ifdef CONFIG_AUDIO_QGKI
if (err)
return err;
pr_debug("dsp consumed till %d total %llu bytes\n",
tstamp->byte_offset, tstamp->copied_total);
#else