[alsa-devel] [PATCH v2 1/2] ALSA: Added jack detection KControl support
Mark Brown
broonie at kernel.org
Wed Aug 7 18:45:09 CEST 2013
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 = 0x10000U;
> + uinfo->value.integer.min = 0;
> + uinfo->value.integer.max = 0xffff;
> + return 0;
> +}
I'd expected to see us creating multiple boolean controls here. I don't
have a great problem with doing things this way but it's surprising and
I worry about confusing existing userspace, Takashi?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130807/23cfff2a/attachment.sig>
More information about the Alsa-devel
mailing list