All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hui Wang <hui.wang@canonical.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, yk@canonical.com,
	alex.hung@canonical.com,
	David Henningsson <david.henningsson@canonical.com>
Subject: Re: [PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec
Date: Wed, 27 Nov 2013 15:39:19 +0800	[thread overview]
Message-ID: <5295A1A7.2020804@canonical.com> (raw)
In-Reply-To: <s5h38miwboj.wl%tiwai@suse.de>

On 11/27/2013 03:23 PM, Takashi Iwai wrote:
> At Wed, 27 Nov 2013 15:11:41 +0800,
> Hui Wang wrote:
>> On 11/27/2013 02:44 PM, Takashi Iwai wrote:
>>> At Wed, 27 Nov 2013 06:17:16 +0100,
>>> David Henningsson wrote:
>>>> On 11/27/2013 04:26 AM, Hui Wang wrote:
>>>>> Most Thinkpad Edge series laptops use conexant codec, so far although
>>>>> the codecs have different minor Vendor Id and minor Subsystem Id, but
>>>>> they all belong to the cxt_5066 family, this change can make the
>>>>> mute/mic-mute LEDs support more generic among cxt_5066 family.
>>>> Hi Hui and thanks for your patch!
>>>>
>>>> It's also nice that you have tested the patch on several machines and
>>>> found it to be working.
>>>>
>>>> As for the actual implementation - as the rest of the thinkpad-acpi code
>>>> is copy-pasted between patch_realtek and patch_conexant, I think this
>>>> would also apply here, i e, no code in hda_local.h, instead copy from
>>>> patch_realtek to patch_conexant as necessary.
>>>>
>>>> While copy-pasting code is not the most elegant of solutions, I got the
>>>> impression from Takashi that he preferred that for now.
>>> If you'd like it to be included in 3.13, please just copy the small
>>> code snippet.
>> Yes we hope it can be merged to 3.13, so as your request, i just copy
>> the small code snippet in the V2 patch.
>>> For 3.14, we can move the thinkpad-related code into another file, but
>>> I have some bad feeling to put it into hda_local.h or whatever the
>>> common code base.
>>> Maybe just create hda_thinkpad.c or such and include from both
>>> patch_realtek.c and patch_conexant.c.  As long as the code size is
>>> small enough and they are all static, it should be fine.
>> Good suggestion, if we have more machines to test and the testing expose
>> more problems,
>> we should think about moving the common functions to the hda_thinkpad.c.
> Hrm, this comment makes me worry a bit to include into 3.13.
> Hasn't been the patch tested fully?  The merge window was already
> closed, and it means that we really need only fixes, the ones that
> won't regress obviously...
Sorry to make you misunderstand, this patch definitely works well on the 
machines with Conexant codec (cxt5066 family).  I have tested this patch 
on  9 laptops whose codecs all belong to cxt5066 family, they all worked 
well.

The problem i pointed to was that, assuming we meet a machine with 
conexant codec in future, but this codec doesn't belong to cxt5066 
family, this patch will not work on this machine, but this patch will 
not introduce regress on this machine as well.

Regards,
Hui.
>
> Takashi
>
>
>>

  reply	other threads:[~2013-11-27  7:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27  3:26 [PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec Hui Wang
2013-11-27  5:17 ` David Henningsson
2013-11-27  6:21   ` Hui Wang
2013-11-27  6:44   ` Takashi Iwai
2013-11-27  7:11     ` Hui Wang
2013-11-27  7:23       ` Takashi Iwai
2013-11-27  7:39         ` Hui Wang [this message]
2013-11-27  7:55           ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5295A1A7.2020804@canonical.com \
    --to=hui.wang@canonical.com \
    --cc=alex.hung@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=david.henningsson@canonical.com \
    --cc=tiwai@suse.de \
    --cc=yk@canonical.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.