Re: [PATCH 02/12] ALSA: hda - Add macro to test pin widget's input capability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 29 Aug 2016 08:23:16 +0200,
Subhransu S. Prusty wrote:
> 
> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@xxxxxxxxx>
> Signed-off-by: Vinod Koul <vinod.koul@xxxxxxxxx>

.... 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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux