* [PATCH] Add "Line In" input jack constants
@ 2011-10-05 14:01 David Henningsson
2011-10-05 14:08 ` Takashi Iwai
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: David Henningsson @ 2011-10-05 14:01 UTC (permalink / raw)
To: Takashi Iwai, ALSA Development Mailing List
[-- Attachment #1: Type: text/plain, Size: 207 bytes --]
Hi,
Do you think this is reasonable to apply to 3.2? If so I'll continue
with writing some patches that use this new constant, of course.
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
[-- Attachment #2: 0001-Add-Line-In-input-jack-constants.patch --]
[-- Type: text/x-patch, Size: 2357 bytes --]
>From 356e80c4e2f5d9d1c85b5eee93d2932f7637b338 Mon Sep 17 00:00:00 2001
From: David Henningsson <david.henningsson@canonical.com>
Date: Wed, 5 Oct 2011 15:53:25 +0200
Subject: [PATCH] Add "Line In" input jack constants
Similar to Line Out, these constants form the base for future
patches enabling input jack reporting for Line in jacks.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
include/linux/input.h | 1 +
include/sound/jack.h | 1 +
sound/core/jack.c | 1 +
sound/pci/hda/hda_codec.c | 2 ++
4 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/linux/input.h b/include/linux/input.h
index a637e78..a514fb8 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -814,6 +814,7 @@ struct input_keymap_entry {
#define SW_KEYPAD_SLIDE 0x0a /* set = keypad slide out */
#define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */
#define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */
+#define SW_LINEIN_INSERT 0x0d /* set = inserted */
#define SW_MAX 0x0f
#define SW_CNT (SW_MAX+1)
diff --git a/include/sound/jack.h b/include/sound/jack.h
index c140fc7..63c7907 100644
--- a/include/sound/jack.h
+++ b/include/sound/jack.h
@@ -42,6 +42,7 @@ enum snd_jack_types {
SND_JACK_MECHANICAL = 0x0008, /* If detected separately */
SND_JACK_VIDEOOUT = 0x0010,
SND_JACK_AVOUT = SND_JACK_LINEOUT | SND_JACK_VIDEOOUT,
+ SND_JACK_LINEIN = 0x0020,
/* Kept separate from switches to facilitate implementation */
SND_JACK_BTN_0 = 0x4000,
diff --git a/sound/core/jack.c b/sound/core/jack.c
index 53b53e9..240a3e1 100644
--- a/sound/core/jack.c
+++ b/sound/core/jack.c
@@ -30,6 +30,7 @@ static int jack_switch_types[] = {
SW_LINEOUT_INSERT,
SW_JACK_PHYSICAL_INSERT,
SW_VIDEOOUT_INSERT,
+ SW_LINEIN_INSERT,
};
static int snd_jack_dev_free(struct snd_device *device)
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index e3db196..8b046a1 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -5264,6 +5264,8 @@ static const char *get_jack_default_name(struct hda_codec *codec, hda_nid_t nid,
return "Mic";
case SND_JACK_LINEOUT:
return "Line-out";
+ case SND_JACK_LINEIN:
+ return "Line-in";
case SND_JACK_HEADSET:
return "Headset";
case SND_JACK_VIDEOOUT:
--
1.7.5.4
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] Add "Line In" input jack constants
2011-10-05 14:01 [PATCH] Add "Line In" input jack constants David Henningsson
@ 2011-10-05 14:08 ` Takashi Iwai
2011-10-05 15:07 ` Mark Brown
2011-10-05 15:55 ` [PATCH] Add "Line In" input jack constants Takashi Iwai
2 siblings, 0 replies; 10+ messages in thread
From: Takashi Iwai @ 2011-10-05 14:08 UTC (permalink / raw)
To: David Henningsson; +Cc: ALSA Development Mailing List, Mark Brown
At Wed, 05 Oct 2011 16:01:22 +0200,
David Henningsson wrote:
>
> Hi,
>
> Do you think this is reasonable to apply to 3.2? If so I'll continue
> with writing some patches that use this new constant, of course.
Looks OK to me. I can take it in unless Mark has any objection.
thanks,
Takashi
> --
> David Henningsson, Canonical Ltd.
> http://launchpad.net/~diwic
> [2 0001-Add-Line-In-input-jack-constants.patch <text/x-patch (7bit)>]
> >From 356e80c4e2f5d9d1c85b5eee93d2932f7637b338 Mon Sep 17 00:00:00 2001
> From: David Henningsson <david.henningsson@canonical.com>
> Date: Wed, 5 Oct 2011 15:53:25 +0200
> Subject: [PATCH] Add "Line In" input jack constants
>
> Similar to Line Out, these constants form the base for future
> patches enabling input jack reporting for Line in jacks.
>
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> ---
> include/linux/input.h | 1 +
> include/sound/jack.h | 1 +
> sound/core/jack.c | 1 +
> sound/pci/hda/hda_codec.c | 2 ++
> 4 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/input.h b/include/linux/input.h
> index a637e78..a514fb8 100644
> --- a/include/linux/input.h
> +++ b/include/linux/input.h
> @@ -814,6 +814,7 @@ struct input_keymap_entry {
> #define SW_KEYPAD_SLIDE 0x0a /* set = keypad slide out */
> #define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */
> #define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */
> +#define SW_LINEIN_INSERT 0x0d /* set = inserted */
> #define SW_MAX 0x0f
> #define SW_CNT (SW_MAX+1)
>
> diff --git a/include/sound/jack.h b/include/sound/jack.h
> index c140fc7..63c7907 100644
> --- a/include/sound/jack.h
> +++ b/include/sound/jack.h
> @@ -42,6 +42,7 @@ enum snd_jack_types {
> SND_JACK_MECHANICAL = 0x0008, /* If detected separately */
> SND_JACK_VIDEOOUT = 0x0010,
> SND_JACK_AVOUT = SND_JACK_LINEOUT | SND_JACK_VIDEOOUT,
> + SND_JACK_LINEIN = 0x0020,
>
> /* Kept separate from switches to facilitate implementation */
> SND_JACK_BTN_0 = 0x4000,
> diff --git a/sound/core/jack.c b/sound/core/jack.c
> index 53b53e9..240a3e1 100644
> --- a/sound/core/jack.c
> +++ b/sound/core/jack.c
> @@ -30,6 +30,7 @@ static int jack_switch_types[] = {
> SW_LINEOUT_INSERT,
> SW_JACK_PHYSICAL_INSERT,
> SW_VIDEOOUT_INSERT,
> + SW_LINEIN_INSERT,
> };
>
> static int snd_jack_dev_free(struct snd_device *device)
> diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
> index e3db196..8b046a1 100644
> --- a/sound/pci/hda/hda_codec.c
> +++ b/sound/pci/hda/hda_codec.c
> @@ -5264,6 +5264,8 @@ static const char *get_jack_default_name(struct hda_codec *codec, hda_nid_t nid,
> return "Mic";
> case SND_JACK_LINEOUT:
> return "Line-out";
> + case SND_JACK_LINEIN:
> + return "Line-in";
> case SND_JACK_HEADSET:
> return "Headset";
> case SND_JACK_VIDEOOUT:
> --
> 1.7.5.4
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Add "Line In" input jack constants
2011-10-05 14:01 [PATCH] Add "Line In" input jack constants David Henningsson
2011-10-05 14:08 ` Takashi Iwai
@ 2011-10-05 15:07 ` Mark Brown
2011-10-06 6:23 ` Takashi Iwai
2011-10-06 6:46 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) David Henningsson
2011-10-05 15:55 ` [PATCH] Add "Line In" input jack constants Takashi Iwai
2 siblings, 2 replies; 10+ messages in thread
From: Mark Brown @ 2011-10-05 15:07 UTC (permalink / raw)
To: David Henningsson; +Cc: Takashi Iwai, ALSA Development Mailing List
On Wed, Oct 05, 2011 at 04:01:22PM +0200, David Henningsson wrote:
> Hi,
>
> Do you think this is reasonable to apply to 3.2? If so I'll continue
> with writing some patches that use this new constant, of course.
>
> --
> David Henningsson, Canonical Ltd.
> http://launchpad.net/~diwic
> From 356e80c4e2f5d9d1c85b5eee93d2932f7637b338 Mon Sep 17 00:00:00 2001
> From: David Henningsson <david.henningsson@canonical.com>
> Date: Wed, 5 Oct 2011 15:53:25 +0200
> Subject: [PATCH] Add "Line In" input jack constants
>
> Similar to Line Out, these constants form the base for future
> patches enabling input jack reporting for Line in jacks.
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
but please follow the patch submission process in SubmittingPatches - in
particular, don't send your patch as an attachment.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Add "Line In" input jack constants
2011-10-05 14:01 [PATCH] Add "Line In" input jack constants David Henningsson
2011-10-05 14:08 ` Takashi Iwai
2011-10-05 15:07 ` Mark Brown
@ 2011-10-05 15:55 ` Takashi Iwai
2011-10-06 3:36 ` Dmitry Torokhov
2 siblings, 1 reply; 10+ messages in thread
From: Takashi Iwai @ 2011-10-05 15:55 UTC (permalink / raw)
To: David Henningsson; +Cc: ALSA Development Mailing List, Dmitry Torokhov
At Wed, 05 Oct 2011 16:01:22 +0200,
David Henningsson wrote:
>
> Hi,
>
> Do you think this is reasonable to apply to 3.2? If so I'll continue
> with writing some patches that use this new constant, of course.
Oh, we should add Dmitry to Cc, since the patch touchs linux/input.h.
Dmitry, is it OK to add SW_LINEIN_INSERT as below?
thanks,
Takashi
>
> --
> David Henningsson, Canonical Ltd.
> http://launchpad.net/~diwic
> [2 0001-Add-Line-In-input-jack-constants.patch <text/x-patch (7bit)>]
> >From 356e80c4e2f5d9d1c85b5eee93d2932f7637b338 Mon Sep 17 00:00:00 2001
> From: David Henningsson <david.henningsson@canonical.com>
> Date: Wed, 5 Oct 2011 15:53:25 +0200
> Subject: [PATCH] Add "Line In" input jack constants
>
> Similar to Line Out, these constants form the base for future
> patches enabling input jack reporting for Line in jacks.
>
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> ---
> include/linux/input.h | 1 +
> include/sound/jack.h | 1 +
> sound/core/jack.c | 1 +
> sound/pci/hda/hda_codec.c | 2 ++
> 4 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/input.h b/include/linux/input.h
> index a637e78..a514fb8 100644
> --- a/include/linux/input.h
> +++ b/include/linux/input.h
> @@ -814,6 +814,7 @@ struct input_keymap_entry {
> #define SW_KEYPAD_SLIDE 0x0a /* set = keypad slide out */
> #define SW_FRONT_PROXIMITY 0x0b /* set = front proximity sensor active */
> #define SW_ROTATE_LOCK 0x0c /* set = rotate locked/disabled */
> +#define SW_LINEIN_INSERT 0x0d /* set = inserted */
> #define SW_MAX 0x0f
> #define SW_CNT (SW_MAX+1)
>
> diff --git a/include/sound/jack.h b/include/sound/jack.h
> index c140fc7..63c7907 100644
> --- a/include/sound/jack.h
> +++ b/include/sound/jack.h
> @@ -42,6 +42,7 @@ enum snd_jack_types {
> SND_JACK_MECHANICAL = 0x0008, /* If detected separately */
> SND_JACK_VIDEOOUT = 0x0010,
> SND_JACK_AVOUT = SND_JACK_LINEOUT | SND_JACK_VIDEOOUT,
> + SND_JACK_LINEIN = 0x0020,
>
> /* Kept separate from switches to facilitate implementation */
> SND_JACK_BTN_0 = 0x4000,
> diff --git a/sound/core/jack.c b/sound/core/jack.c
> index 53b53e9..240a3e1 100644
> --- a/sound/core/jack.c
> +++ b/sound/core/jack.c
> @@ -30,6 +30,7 @@ static int jack_switch_types[] = {
> SW_LINEOUT_INSERT,
> SW_JACK_PHYSICAL_INSERT,
> SW_VIDEOOUT_INSERT,
> + SW_LINEIN_INSERT,
> };
>
> static int snd_jack_dev_free(struct snd_device *device)
> diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
> index e3db196..8b046a1 100644
> --- a/sound/pci/hda/hda_codec.c
> +++ b/sound/pci/hda/hda_codec.c
> @@ -5264,6 +5264,8 @@ static const char *get_jack_default_name(struct hda_codec *codec, hda_nid_t nid,
> return "Mic";
> case SND_JACK_LINEOUT:
> return "Line-out";
> + case SND_JACK_LINEIN:
> + return "Line-in";
> case SND_JACK_HEADSET:
> return "Headset";
> case SND_JACK_VIDEOOUT:
> --
> 1.7.5.4
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Add "Line In" input jack constants
2011-10-05 15:55 ` [PATCH] Add "Line In" input jack constants Takashi Iwai
@ 2011-10-06 3:36 ` Dmitry Torokhov
0 siblings, 0 replies; 10+ messages in thread
From: Dmitry Torokhov @ 2011-10-06 3:36 UTC (permalink / raw)
To: Takashi Iwai; +Cc: ALSA Development Mailing List, David Henningsson
On Wed, Oct 05, 2011 at 05:55:17PM +0200, Takashi Iwai wrote:
> At Wed, 05 Oct 2011 16:01:22 +0200,
> David Henningsson wrote:
> >
> > Hi,
> >
> > Do you think this is reasonable to apply to 3.2? If so I'll continue
> > with writing some patches that use this new constant, of course.
>
> Oh, we should add Dmitry to Cc, since the patch touchs linux/input.h.
> Dmitry, is it OK to add SW_LINEIN_INSERT as below?
>
Yeah, that should be OK.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Add "Line In" input jack constants
2011-10-05 15:07 ` Mark Brown
@ 2011-10-06 6:23 ` Takashi Iwai
2011-10-06 7:29 ` David Henningsson
2011-10-06 6:46 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) David Henningsson
1 sibling, 1 reply; 10+ messages in thread
From: Takashi Iwai @ 2011-10-06 6:23 UTC (permalink / raw)
To: Mark Brown; +Cc: ALSA Development Mailing List, David Henningsson
At Wed, 5 Oct 2011 16:07:56 +0100,
Mark Brown wrote:
>
> On Wed, Oct 05, 2011 at 04:01:22PM +0200, David Henningsson wrote:
> > Hi,
> >
> > Do you think this is reasonable to apply to 3.2? If so I'll continue
> > with writing some patches that use this new constant, of course.
> >
> > --
> > David Henningsson, Canonical Ltd.
> > http://launchpad.net/~diwic
>
> > From 356e80c4e2f5d9d1c85b5eee93d2932f7637b338 Mon Sep 17 00:00:00 2001
> > From: David Henningsson <david.henningsson@canonical.com>
> > Date: Wed, 5 Oct 2011 15:53:25 +0200
> > Subject: [PATCH] Add "Line In" input jack constants
> >
> > Similar to Line Out, these constants form the base for future
> > patches enabling input jack reporting for Line in jacks.
>
> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
OK, applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Patch submission process (was: [PATCH] Add "Line In" input jack constants)
2011-10-05 15:07 ` Mark Brown
2011-10-06 6:23 ` Takashi Iwai
@ 2011-10-06 6:46 ` David Henningsson
2011-10-06 8:55 ` Patch submission process Clemens Ladisch
2011-10-06 10:00 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) Mark Brown
1 sibling, 2 replies; 10+ messages in thread
From: David Henningsson @ 2011-10-06 6:46 UTC (permalink / raw)
To: Mark Brown; +Cc: Takashi Iwai, ALSA Development Mailing List
On 10/05/2011 05:07 PM, Mark Brown wrote:
> but please follow the patch submission process in SubmittingPatches - in
> particular, don't send your patch as an attachment.
I find this hard to fulfil at times, in particular when I want to add
something to the email that I don't want to be a part of the commit
message. Is this possible with git send-email, and without sending the
patch as an attachment?
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Add "Line In" input jack constants
2011-10-06 6:23 ` Takashi Iwai
@ 2011-10-06 7:29 ` David Henningsson
0 siblings, 0 replies; 10+ messages in thread
From: David Henningsson @ 2011-10-06 7:29 UTC (permalink / raw)
To: Takashi Iwai; +Cc: ALSA Development Mailing List, Mark Brown
On 10/06/2011 08:23 AM, Takashi Iwai wrote:
> At Wed, 5 Oct 2011 16:07:56 +0100,
> Mark Brown wrote:
>>
>> On Wed, Oct 05, 2011 at 04:01:22PM +0200, David Henningsson wrote:
>>> Hi,
>>>
>>> Do you think this is reasonable to apply to 3.2? If so I'll continue
>>> with writing some patches that use this new constant, of course.
>>>
>>> --
>>> David Henningsson, Canonical Ltd.
>>> http://launchpad.net/~diwic
>>
>>> From 356e80c4e2f5d9d1c85b5eee93d2932f7637b338 Mon Sep 17 00:00:00 2001
>>> From: David Henningsson<david.henningsson@canonical.com>
>>> Date: Wed, 5 Oct 2011 15:53:25 +0200
>>> Subject: [PATCH] Add "Line In" input jack constants
>>>
>>> Similar to Line Out, these constants form the base for future
>>> patches enabling input jack reporting for Line in jacks.
>>
>> Acked-by: Mark Brown<broonie@opensource.wolfsonmicro.com>
>
> OK, applied now. Thanks.
Danke schön! And thanks for taking the effort of contacting the relevant
people.
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Patch submission process
2011-10-06 6:46 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) David Henningsson
@ 2011-10-06 8:55 ` Clemens Ladisch
2011-10-06 10:00 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) Mark Brown
1 sibling, 0 replies; 10+ messages in thread
From: Clemens Ladisch @ 2011-10-06 8:55 UTC (permalink / raw)
To: David Henningsson; +Cc: Takashi Iwai, ALSA Development Mailing List, Mark Brown
On 10/06/2011 08:46 AM, David Henningsson wrote:
> On 10/05/2011 05:07 PM, Mark Brown wrote:
> > ... don't send your patch as an attachment.
>
> I find this hard to fulfil at times, in particular when I want to add
> something to the email that I don't want to be a part of the commit
> message. Is this possible with git send-email, and without sending the
> patch as an attachment?
Use "git send-email --annotate", and delimit the something from the
commit message with a scissors line (man git-am).
Regards,
Clemens
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Patch submission process (was: [PATCH] Add "Line In" input jack constants)
2011-10-06 6:46 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) David Henningsson
2011-10-06 8:55 ` Patch submission process Clemens Ladisch
@ 2011-10-06 10:00 ` Mark Brown
1 sibling, 0 replies; 10+ messages in thread
From: Mark Brown @ 2011-10-06 10:00 UTC (permalink / raw)
To: David Henningsson; +Cc: Takashi Iwai, ALSA Development Mailing List
On Thu, Oct 06, 2011 at 08:46:22AM +0200, David Henningsson wrote:
> On 10/05/2011 05:07 PM, Mark Brown wrote:
> >but please follow the patch submission process in SubmittingPatches - in
> >particular, don't send your patch as an attachment.
> I find this hard to fulfil at times, in particular when I want to
> add something to the email that I don't want to be a part of the
> commit message. Is this possible with git send-email, and without
> sending the patch as an attachment?
The relevant section of SubmittingPatches is:
| - A marker line containing simply "---".
|
| - Any additional comments not suitable for the changelog.
|
| - The actual patch (diff output).
You can edit the patch after running format-patch, or use --annotate
with send-mail.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-10-06 10:00 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 14:01 [PATCH] Add "Line In" input jack constants David Henningsson
2011-10-05 14:08 ` Takashi Iwai
2011-10-05 15:07 ` Mark Brown
2011-10-06 6:23 ` Takashi Iwai
2011-10-06 7:29 ` David Henningsson
2011-10-06 6:46 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) David Henningsson
2011-10-06 8:55 ` Patch submission process Clemens Ladisch
2011-10-06 10:00 ` Patch submission process (was: [PATCH] Add "Line In" input jack constants) Mark Brown
2011-10-05 15:55 ` [PATCH] Add "Line In" input jack constants Takashi Iwai
2011-10-06 3:36 ` Dmitry Torokhov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.