[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-id: <5798483D.2090904@samsung.com>
Date: Wed, 27 Jul 2016 14:35:57 +0900
From: Chanwoo Choi <cw00.choi@...sung.com>
To: myungjoo.ham@...sung.com,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc: "zyw@...k-chips.com" <zyw@...k-chips.com>,
"groeck@...omium.org" <groeck@...omium.org>,
"cwchoi00@...il.com" <cwchoi00@...il.com>
Subject: Re: [PATCH 1/6] extcon: Add the extcon_type to group each connector
into five category
Hi Myungjoo,
On 2016년 07월 27일 13:27, MyungJoo Ham wrote:
>> This patch adds the new extcon type to group the each connecotr
>> into following five category. This type would be used to handle
>> the connectors as a group unit instead of a connector unit.
>> - EXTCON_TYPE_USB : USB connector
>> - EXTCON_TYPE_CHG : Charger connector
>> - EXTCON_TYPE_JACK : Jack connector
>
> "Jack" seems to be an internal jargon that many people won't recognize.
> It's, in fact, 3.5-pi, isn't it?
You're right. But, the ALSA framework already used the 'jack' word
for headphone/headset/microphone for a long time. (sound/soc/soc-jack.c)
So, To prevent the confusion, I use the 'jack' word.
>
> Anyway, this is already being used as an enum with drivers,
> I'd suggest to add a comment in extcon.h stating that
> "Jack connector" is usually the 3.5-pi earbud connector.
Additionally, jack means the the LINE_IN/OUT, VIDEO_IN/OUT,
SPDIF_IN/OUT in the extcon.
>
> Anyway, I like the direction of this patch.
Thanks.
>
>
> Signed-off-by: MyungJoo Ham <myungjoo.ham@...sung.com>
Regards,
Chanwoo Choi
>
> Cheers,
> MyungJoo
>
>> --- a/include/linux/extcon.h
>> +++ b/include/linux/extcon.h
>> @@ -29,6 +29,15 @@
>> #include <linux/device.h>
>>
>> /*
>> + * Define the type of supported external connectors
>> + */
>> +#define EXTCON_TYPE_USB BIT(0) /* USB connector */
>> +#define EXTCON_TYPE_CHG BIT(1) /* Charger connector */
>> +#define EXTCON_TYPE_JACK BIT(2) /* Jack connector */
> + /* Usually, this is a 3.5-pi earbud conector */
>> +#define EXTCON_TYPE_DISP BIT(3) /* Display connector */
>> +#define EXTCON_TYPE_MISC BIT(4) /* Miscellaneous connector */
>> +
>> +/*
>> * Define the unique id of supported external connectors
>> */
>> #define EXTCON_NONE 0
>> --
>> 1.9.1
>>
Powered by blists - more mailing lists