[alsa-devel] export pcm_debug_name?

Takashi Iwai tiwai at suse.de
Thu Mar 31 11:52:00 CEST 2011


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


More information about the Alsa-devel mailing list