X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=sound%2Fsoc%2Fsoc-compress.c;h=d2df46c14c6823599c6210b3a31c9b1aa60ce72e;hb=dd9671172a06830071c8edb31fb2176f222a2c6e;hp=875733c52953a6a3ec13ac2f0c932bb695ae5b3e;hpb=5804602536649bccc907cbdd7e31b8797bdb6c45;p=deliverable%2Flinux.git diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index 875733c52953..d2df46c14c68 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -530,14 +530,15 @@ static int soc_compr_pointer(struct snd_compr_stream *cstream, { struct snd_soc_pcm_runtime *rtd = cstream->private_data; struct snd_soc_platform *platform = rtd->platform; + int ret = 0; mutex_lock_nested(&rtd->pcm_mutex, rtd->pcm_subclass); if (platform->driver->compr_ops && platform->driver->compr_ops->pointer) - platform->driver->compr_ops->pointer(cstream, tstamp); + ret = platform->driver->compr_ops->pointer(cstream, tstamp); mutex_unlock(&rtd->pcm_mutex); - return 0; + return ret; } static int soc_compr_copy(struct snd_compr_stream *cstream,