[alsa-devel] export pcm_debug_name?

Eliot Blennerhassett linux at audioscience.com
Thu Mar 31 00:08:24 CEST 2011


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.


More information about the Alsa-devel mailing list