All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Wu-Cheng Li (李務誠)" <wuchengli@google.com>
To: John Hsu <KCHSU0@nuvoton.com>
Cc: AP MS30 Linux ALSA <alsa-devel@alsa-project.org>,
	Cheng-yi Chiang <cychiang@google.com>,
	Anatol Pomozov <anatol.pomozov@gmail.com>,
	AC30 WTLi <WTLI@nuvoton.com>, Liam Girdwood <lgirdwood@gmail.com>,
	AC30 YHChuang <YHCHuang@nuvoton.com>,
	Mac Chiang <mac.chiang@intel.com>,
	broonie@kernel.org, AC30 CTLin0 <CTLIN0@nuvoton.com>,
	MS40 MHKuo <mhkuo@nuvoton.com>
Subject: Re: [PATCH] ASoC: nau8825: set clear_irq when imm IRQ happened
Date: Thu, 30 Nov 2017 10:30:11 +0800	[thread overview]
Message-ID: <CAOMLVLh8gWtoimHBe2Nh-yPY7Lp5BXsOvB_hsELEYZ1RShB6EQ@mail.gmail.com> (raw)
In-Reply-To: <1512007997-31704-1-git-send-email-KCHSU0@nuvoton.com>

Can you combine this patch with "ASoC: nau8825: disable crosstalk by
default"? This should be a part of that patch.

On Thu, Nov 30, 2017 at 10:13 AM, John Hsu <KCHSU0@nuvoton.com> wrote:
> Although the crosstalk is disabled, it is better to set clear_irq
> properly when the impedance measurement interrupt happens.
> It can avoid that the driver clears other IRQs by accident
> if the active_irq has another IRQ events.
>
> Signed-off-by: John Hsu <KCHSU0@nuvoton.com>
> ---
>  sound/soc/codecs/nau8825.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c
> index d3c1a02..603cd72 100644
> --- a/sound/soc/codecs/nau8825.c
> +++ b/sound/soc/codecs/nau8825.c
> @@ -1733,10 +1733,9 @@ static irqreturn_t nau8825_interrupt(int irq, void *data)
>                         nau8825->xtalk_event_mask = event_mask;
>                 }
>         } else if (active_irq & NAU8825_IMPEDANCE_MEAS_IRQ) {
> -               if (nau8825->xtalk_enable) {
> +               if (nau8825->xtalk_enable)
>                         schedule_work(&nau8825->xtalk_work);
> -                       clear_irq = NAU8825_IMPEDANCE_MEAS_IRQ;
> -               }
> +               clear_irq = NAU8825_IMPEDANCE_MEAS_IRQ;
>         } else if ((active_irq & NAU8825_JACK_INSERTION_IRQ_MASK) ==
>                 NAU8825_JACK_INSERTION_DETECTED) {
>                 /* One more step to check GPIO status directly. Thus, the
> --
> 2.6.4
>

  reply	other threads:[~2017-11-30  2:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-30  2:13 [PATCH] ASoC: nau8825: set clear_irq when imm IRQ happened John Hsu
2017-11-30  2:30 ` Wu-Cheng Li (李務誠) [this message]
2017-11-30  7:14   ` Wu-Cheng Li (李務誠)
2017-11-30 12:33 ` Applied "ASoC: nau8825: set clear_irq when imm IRQ happened" to the asoc tree Mark Brown

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=CAOMLVLh8gWtoimHBe2Nh-yPY7Lp5BXsOvB_hsELEYZ1RShB6EQ@mail.gmail.com \
    --to=wuchengli@google.com \
    --cc=CTLIN0@nuvoton.com \
    --cc=KCHSU0@nuvoton.com \
    --cc=WTLI@nuvoton.com \
    --cc=YHCHuang@nuvoton.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=anatol.pomozov@gmail.com \
    --cc=broonie@kernel.org \
    --cc=cychiang@google.com \
    --cc=lgirdwood@gmail.com \
    --cc=mac.chiang@intel.com \
    --cc=mhkuo@nuvoton.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.