On 22/07/11 22:22, Takashi Iwai wrote:
At Fri, 22 Jul 2011 22:05:26 +1200, linux@audioscience.com wrote:
From: Eliot Blennerhassett eblennerhassett@audioscience.com
Formatting a PCM name is useful for module debug too. Add snd_prefix when making function public.
Signed-off-by: Eliot Blennerhassett eblennerhassett@audioscience.com
It'd need EXPORT_SYMBOL*() in addition.
Or, this can be defined as an inline function. It's just a call of snprintf() with the passed arguments, after all.
Hmm. A side-effect of doing it this way is to make pcm.h depend on core.h, (for substream->pcm->card->number) and there are some files that include pcm.h but not core.h. E.g. pcsp_lib.c, ctvmem.c, oxygen_lib.c (and quite a few other possible candidate)
Fix these, or go with the original non-inline version?
-- Eliot