From: Takashi Iwai Subject: Re: export pcm_debug_name? Date: Thu, 31 Mar 2011 11:52:00 +0200 Message-ID: References: <4D93A9D8.2090104@audioscience.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id F29321037F3 for ; Thu, 31 Mar 2011 11:52:05 +0200 (CEST) In-Reply-To: <4D93A9D8.2090104@audioscience.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Eliot Blennerhassett Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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. >