All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <lrg@ti.com>
To: anish kumar <anish198519851985@gmail.com>
Cc: tiwai@suse.de, alsa-devel@alsa-project.org,
	broonie@opensource.wolfsonmicro.com
Subject: Re: commit: dpcm: Allow FE to be opened without valid BE routes
Date: Tue, 6 Nov 2012 17:32:58 +0000	[thread overview]
Message-ID: <509949CA.5000103@ti.com> (raw)
In-Reply-To: <1352221394.4968.38.camel@anish-Inspiron-N5050>

On 06/11/12 17:03, anish kumar wrote:
> Commit 3ac3f5ca91afc03587b1d2d642f126efc5be37ca
> ASoC: dpcm: Allow FE to be opened without valid BE routes.
>
>          if (dpcm_path_get(fe, stream, &list) <= 0) {
> -               dev_warn(fe->dev, "asoc: %s no valid %s route\n",
> +               dev_dbg(fe->dev, "asoc: %s no valid %s route\n",
>                          fe->dai_link->name, stream ? "capture" :
> "playback");
> -                       mutex_unlock(&fe->card->mutex);
> -                       return -EINVAL;
>          }
>
>
> As I can see this commit has changed the log level from dev_warn to
> dev_dbg but this has caused a subtle problem.Right now we rely on this
> warning to find out issues related to "application not sending UCM
> commands causing mute issues".Sometimes we have seen that the device
> becomes mute due to application not sending UCM command properly and
> these issues are hard to reproduce(all we get is dump).So all we have is
> this log to find out if the FE(front-end) and BE(back-end) has at-lease
> matched or not and most of the time it doesn't and we find out that
> using this very log.
>
> With this gone it would be difficult to find out the problem.I don't see
> any harm in reverting it back to dev_warn as it will warn us that "still
> we have not received UCM command for turning on Back-end" and in case we
> receive it then this log hardly matters and just gives us information
> that "at that time it was not a valid route".
>
> If everyone agrees then I would be more than happy to send a patch.
>

I did the change since it is quite valid use case to open the FE PCM device 
without a configured route to a BE (as some Android devices do). This was 
filling up the log with lots of warning messages when in fact there was 
nothing wrong.

It sounds like from your description you are doing some debugging and 
dev_dbg() is intended for this.

Liam

  reply	other threads:[~2012-11-06 17:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.495.1352127790.820.alsa-devel@alsa-project.org>
2012-11-06 17:03 ` commit: dpcm: Allow FE to be opened without valid BE routes anish kumar
2012-11-06 17:32   ` Liam Girdwood [this message]
2012-11-07  8:48   ` Mark Brown
2012-11-07 12:56     ` anish kumar
2012-11-07 14:28       ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=509949CA.5000103@ti.com \
    --to=lrg@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=anish198519851985@gmail.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.