alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* export pcm_debug_name?
@ 2011-03-30 22:08 Eliot Blennerhassett
  2011-03-31  9:52 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Eliot Blennerhassett @ 2011-03-30 22:08 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai

Currently defined locally in pcm_lib.c, this function would be useful
for debug output from drivers too?

Any objection to exporting this function?


> 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-01 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 22:08 export pcm_debug_name? Eliot Blennerhassett
2011-03-31  9:52 ` Takashi Iwai
2011-03-31 23:41   ` Eliot Blennerhassett
2011-04-01 13:07     ` Takashi Iwai

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).