From: Takashi Iwai Subject: Re: [PATCH1/2] hda: add access to jack functions Date: Tue, 21 Oct 2008 08:08:51 +0200 Message-ID: References: <48FCFAB8.9030407@embeddedalley.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 mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id BB84E1037FA for ; Tue, 21 Oct 2008 08:09:08 +0200 (CEST) In-Reply-To: <48FCFAB8.9030407@embeddedalley.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: Matthew Ranostay Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 20 Oct 2008 17:40:08 -0400, Matthew Ranostay wrote: > > Removed 'static' declaration from get_jack_location() to be accessed via the > codec patches. Also added jack location and type reporting functions for use in > the jack abstraction layer implementations. > > Signed-off-by: Matthew Ranostay > --- > > diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h > index 4a08c31..10f26e0 100644 > --- a/sound/pci/hda/hda_local.h > +++ b/sound/pci/hda/hda_local.h > @@ -383,6 +383,9 @@ int snd_hda_parse_pin_def_config(struct hda_codec *codec, > /* > * get widget capabilities > */ > +const char *get_jack_connectivity(u32 cfg); > +const char *get_jack_type(u32 cfg); > +const char *get_jack_location(u32 cfg); Basically all global functions should have snd_ prefix. Yeah, get_wcaps() has exceptionally no prefix but it's an inline function. Also, if these function are really needed in patch_*.c, they must be moved to hda_codec.c since the build of hda_proc.c depends on CONFIG_PROC_FS. thanks, Takashi