[alsa-devel] [PATCH v4 4/7] ASoC: Intel: sst: Add IPC handling

Vinod Koul vinod.koul at intel.com
Fri Oct 17 13:55:24 CEST 2014


On Fri, Oct 17, 2014 at 02:09:18PM +0200, Mark Brown wrote:
> On Thu, Oct 16, 2014 at 08:00:16PM +0530, Vinod Koul wrote:
> 
> > +	spin_unlock_bh(&ctx->block_lock);
> > +	dev_dbg(ctx->dev,
> > +		"Block not found or a response received for a short msg for ipc %d, drv_id %d\n",
> > +		ipc, drv_id);
> > +	return -EINVAL;
> 
> Shouldn't this be a dev_err() or something?
Not really.

We get response from FW which cna be short or long. In former there wont be
anyone waiting as all blocked ones are large.
We cant distiguish between the two thats why we log debug message here. If
its real then finally the message will timeout and we would see that as
error. Yes this is limiation in IPC.
Putting this as err makes log very noisy :(

-- 
~Vinod
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141017/e7de988b/attachment.sig>


More information about the Alsa-devel mailing list