mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
ASoC: compress: propagate the error code from the compress framework
Propagate the error code from the compress framework for the timestamp query. This error code will be used by the client to handle the error case scenarios gracefully. CRs-Fixed: 683288 Change-Id: I68ad14d52327dd0156531fe8d17ac54ba110fdf6 Signed-off-by: Aviral Gupta <aviralg@codeaurora.org> Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by: Meng Wang <mwang@codeaurora.org>
This commit is contained in:
parent
6030d318e2
commit
5e78f73a05
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue