lkml.org 
[lkml]   [2014]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [alsa-devel] [PATCH v2 5/6] sound/usb: pcm changes to use media token api
At Thu, 16 Oct 2014 07:10:37 -0600,
Shuah Khan wrote:
>
> On 10/16/2014 06:00 AM, Lars-Peter Clausen wrote:
> > On 10/14/2014 04:58 PM, Shuah Khan wrote:
> > [...]
> >> switch (cmd) {
> >> case SNDRV_PCM_TRIGGER_START:
> >> + err = media_get_audio_tkn(&subs->dev->dev);
> >> + if (err == -EBUSY) {
> >> + dev_info(&subs->dev->dev, "%s device is busy\n",
> >> + __func__);
> >
> > In my opinion this should not dev_info() as this is out of band error
> > signaling and also as the potential to spam the log. The userspace
> > application is already properly notified by the return code.
> >
>
> Yes it has the potential to flood the dmesg especially with alsa,
> I will remove the dev_info().

Yes. And, I think doing this in the trigger isn't the best.
Why not in open & close?

Also, is this token restriction needed only for PCM? No mixer or
other controls?


Takashi


\
 
 \ /
  Last update: 2014-10-16 16:41    [W:0.149 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site