From: Takashi Iwai Subject: Re: [PATCH 02/12] ALSA: hda - Add macro to test pin widget's input capability Date: Mon, 29 Aug 2016 10:42:27 +0200 Message-ID: References: <1472451806-10605-1-git-send-email-subhransu.s.prusty@intel.com> <1472451806-10605-3-git-send-email-subhransu.s.prusty@intel.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 (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 40CC3267759 for ; Mon, 29 Aug 2016 18:33:15 +0200 (CEST) In-Reply-To: <1472451806-10605-3-git-send-email-subhransu.s.prusty@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: "Subhransu S. Prusty" Cc: patches.audio@intel.com, Vinod Koul , alsa-devel@alsa-project.org, broonie@kernel.org, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org On Mon, 29 Aug 2016 08:23:16 +0200, Subhransu S. Prusty wrote: > > Signed-off-by: Subhransu S. Prusty > Signed-off-by: Vinod Koul .... missing the reason why? > --- > sound/hda/local.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/sound/hda/local.h b/sound/hda/local.h > index 0d5bb15..a51f5f6 100644 > --- a/sound/hda/local.h > +++ b/sound/hda/local.h > @@ -8,6 +8,16 @@ > #define get_wcaps(codec, nid) \ > snd_hdac_read_parm(codec, nid, AC_PAR_AUDIO_WIDGET_CAP) > > +#define get_pcaps(codec, nid) \ > + snd_hdac_read_parm(codec, nid, AC_PAR_PIN_CAP) > + > +static inline int is_input_pin(struct hdac_device *codec, hda_nid_t nid) Better to make it bool. thanks, Takashi