alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Eliot Blennerhassett <linux@audioscience.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: export pcm_debug_name?
Date: Thu, 31 Mar 2011 11:52:00 +0200	[thread overview]
Message-ID: <s5htyejzkfz.wl%tiwai@suse.de> (raw)
In-Reply-To: <4D93A9D8.2090104@audioscience.com>

At Thu, 31 Mar 2011 11:08:24 +1300,
Eliot Blennerhassett wrote:
> 
> Currently defined locally in pcm_lib.c, this function would be useful
> for debug output from drivers too?
> 
> Any objection to exporting this function?

It's fine to me.  Or, can this be a static inline function?


thanks,

Takashi

> 
> 
> > static void pcm_debug_name(struct snd_pcm_substream *substream,
> > 			   char *name, size_t len)
> > {
> > 	snprintf(name, len, "pcmC%dD%d%c:%d",
> > 		 substream->pcm->card->number,
> > 		 substream->pcm->device,
> > 		 substream->stream ? 'c' : 'p',
> > 		 substream->number);
> > }
> 
> -- 
> Eliot Blennerhassett
> AudioScience Inc.
> 

  reply	other threads:[~2011-03-31  9:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-30 22:08 export pcm_debug_name? Eliot Blennerhassett
2011-03-31  9:52 ` Takashi Iwai [this message]
2011-03-31 23:41   ` Eliot Blennerhassett
2011-04-01 13:07     ` Takashi Iwai

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=s5htyejzkfz.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux@audioscience.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).