Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933809Ab3HGXGa (ORCPT ); Wed, 7 Aug 2013 19:06:30 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:36635 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933540Ab3HGXG3 (ORCPT ); Wed, 7 Aug 2013 19:06:29 -0400 MIME-Version: 1.0 In-Reply-To: <20130807164509.GO6427@sirena.org.uk> References: <1375430365-13232-1-git-send-email-eu@felipetonello.com> <1375430365-13232-2-git-send-email-eu@felipetonello.com> <20130807164509.GO6427@sirena.org.uk> Date: Wed, 7 Aug 2013 16:06:27 -0700 Message-ID: Subject: Re: [PATCH v2 1/2] ALSA: Added jack detection KControl support From: Felipe Tonello To: Mark Brown Cc: alsa-devel@alsa-project.org, Jaroslav Kysela , Takashi Iwai , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 Lines: 32 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_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? Yes, it makes more sense. I got confused with another talk we had previously, that's why I end up doing as an int. I will wait for more comments about these patches and will submit a v3. Thanks, Felipe Tonello -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/