From: Takashi Iwai Subject: Re: [PATCH] ALSA: Add more jack button slots Date: Tue, 07 Sep 2010 08:11:05 +0200 Message-ID: References: <1283785736-14470-1-git-send-email-broonie@opensource.wolfsonmicro.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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 2552324392 for ; Tue, 7 Sep 2010 08:11:06 +0200 (CEST) In-Reply-To: <1283785736-14470-1-git-send-email-broonie@opensource.wolfsonmicro.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com List-Id: alsa-devel@alsa-project.org At Mon, 6 Sep 2010 16:08:56 +0100, Mark Brown wrote: > > Some devices have more flexible microphone detection and can detect > a wider range of buttons. > > Signed-off-by: Mark Brown Applied now to topic/misc branch. Thanks. Takashi > --- > include/sound/jack.h | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/include/sound/jack.h b/include/sound/jack.h > index d90b9fa..c140fc7 100644 > --- a/include/sound/jack.h > +++ b/include/sound/jack.h > @@ -47,6 +47,9 @@ enum snd_jack_types { > SND_JACK_BTN_0 = 0x4000, > SND_JACK_BTN_1 = 0x2000, > SND_JACK_BTN_2 = 0x1000, > + SND_JACK_BTN_3 = 0x0800, > + SND_JACK_BTN_4 = 0x0400, > + SND_JACK_BTN_5 = 0x0200, > }; > > struct snd_jack { > @@ -55,7 +58,7 @@ struct snd_jack { > int type; > const char *id; > char name[100]; > - unsigned int key[3]; /* Keep in sync with definitions above */ > + unsigned int key[6]; /* Keep in sync with definitions above */ > void *private_data; > void (*private_free)(struct snd_jack *); > }; > -- > 1.7.1 >