Re: [PATCH v2 1/2] ALSA: Added jack detection KControl support

2013-08-07 Thread Takashi Iwai
At Wed, 7 Aug 2013 17:45:09 +0100, Mark Brown wrote: > > On Fri, Aug 02, 2013 at 12:59:24AM -0700, Felipe F. Tonello wrote: > > > +int jack_ctl_integer_info(struct snd_kcontrol *kcontrol, > > + struct snd_ctl_elem_info *uinfo) > > +{ > > + uinfo->type = SNDRV_CTL_ELEM_T

Re: [PATCH v2 1/2] ALSA: Added jack detection KControl support

2013-08-07 Thread Felipe Tonello
Hi Mark, On Wed, Aug 7, 2013 at 9:45 AM, Mark Brown wrote: > On Fri, Aug 02, 2013 at 12:59:24AM -0700, Felipe F. Tonello wrote: > >> +int jack_ctl_integer_info(struct snd_kcontrol *kcontrol, >> + struct snd_ctl_elem_info *uinfo) >> +{ >> + uinfo->type = SNDRV_CTL_ELEM

Re: [PATCH v2 1/2] ALSA: Added jack detection KControl support

2013-08-07 Thread Mark Brown
On Fri, Aug 02, 2013 at 12:59:24AM -0700, Felipe F. Tonello wrote: > +int jack_ctl_integer_info(struct snd_kcontrol *kcontrol, > + struct snd_ctl_elem_info *uinfo) > +{ > + uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; > + uinfo->count = 0x1U; > + uinfo->value

[PATCH v2 1/2] ALSA: Added jack detection KControl support

2013-08-02 Thread Felipe F. Tonello
From: "Felipe F. Tonello" This patch adds jack support for ALSA KControl. This support is necessary since the new kcontrol is used by user-space daemons, such as PulseAudio(>=2.0), to do jack detection.) Also, HDA's CONFIG_SND_HDA_INPUT_JACK is disabled because it causes to use standard snd_ja