Skip to contentSkip to conversation

ASoC: nau8825: fix fake interruption when booting

PATCH In review John Hsu 3 participants 10 messages Jun 10, 2019 – Jun 14, 2019

Subsystems (2)
lore
Share & tools
lore

John Hsu

author
#0 lore raw

PATCH 1/1 ASoC: nau8825: fix fake interruption when booting

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

The patch help to fix the issue as follows:
Google issue 133904101: Cave: excessive number of interrupts before Nau8825 codec is initialized Reported Issue
Chrome OS Version : ChromeOS R76-12217.0.0
Type of hardware :

What steps will reproduce the problem?
Boot device
What is the expected output?
A lot of interrupts without any events
What do you see instead?
The fake interrupts are gone

How frequently does this problem reproduce?
Always

What is the impact to the user, and is there a workaround? If so, what is it?

BUG=b:133904101
TEST=Boot device, and then check the interrupts are real.

---
 sound/soc/codecs/nau8825.c | 4 ++++
 sound/soc/codecs/nau8825.h | 2 ++
 2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
 		NAU8825_JACK_EJECT_DEBOUNCE_MASK,
 		nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+	/* Pull up IRQ pin */
+	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
 	/* Mask unneeded IRQs: 1 - disable, 0 - enable */
 	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +2 -0
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
 #define NAU8825_JACK_POLARITY	(1 << 1) /* 0 - active low, 1 - active high */
 
 /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
 #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
 #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
 #define NAU8825_IRQ_RMS_EN (1 << 8)
Signature · 1 line
2.21.0
Tested-by on v1 1/1
#1 lore raw
Quoted 25 lines · John Hsu

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

The patch help to fix the issue as follows:
Google issue 133904101: Cave: excessive number of interrupts before Nau8825 codec is initialized Reported Issue
Chrome OS Version : ChromeOS R76-12217.0.0
Type of hardware :

What steps will reproduce the problem?
Boot device
What is the expected output?
A lot of interrupts without any events
What do you see instead?
The fake interrupts are gone

How frequently does this problem reproduce?
Always

Quoted 7 lines

What is the impact to the user, and is there a workaround? If so, what is it?

BUG=b:133904101
TEST=Boot device, and then check the interrupts are real.

Thank you for the fix.
I think you can remove the description about issue 133904101 in the commit messages and BUG and TEST fields.

Quoted 37 lines
---
 sound/soc/codecs/nau8825.c | 4 ++++
 sound/soc/codecs/nau8825.h | 2 ++
 2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
                NAU8825_JACK_EJECT_DEBOUNCE_MASK,
                nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+       /* Pull up IRQ pin */
+       regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
        /* Mask unneeded IRQs: 1 - disable, 0 - enable */
        regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +2 -1
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
 #define NAU8825_JACK_POLARITY  (1 << 1) /* 0 - active low, 1 - active high */
 
 /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
 #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
 #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
 #define NAU8825_IRQ_RMS_EN (1 << 8)
--

2.21.0

#2 lore raw
Quoted 31 lines · Cheng-yi Chiang
Quoted 30 lines · John Hsu

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

The patch help to fix the issue as follows:
Google issue 133904101: Cave: excessive number of interrupts before Nau8825 codec is initialized Reported Issue
Chrome OS Version : ChromeOS R76-12217.0.0
Type of hardware :

What steps will reproduce the problem?
Boot device
What is the expected output?
A lot of interrupts without any events
What do you see instead?
The fake interrupts are gone

How frequently does this problem reproduce?
Always

What is the impact to the user, and is there a workaround? If so, what is it?

BUG=b:133904101
TEST=Boot device, and then check the interrupts are real.

Quoted 7 lines
Quoted 1 line

Thank you for the fix.
I think you can remove the description about issue 133904101 in the commit messages and BUG and TEST fields.

OK, I will remove it later.

Quoted 29 lines
Quoted 29 lines

---
  sound/soc/codecs/nau8825.c | 4 ++++
  sound/soc/codecs/nau8825.h | 2 ++
  2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
                 NAU8825_JACK_EJECT_DEBOUNCE_MASK,
                 nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+       /* Pull up IRQ pin */
+       regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
         /* Mask unneeded IRQs: 1 - disable, 0 - enable */
         regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +0 -0
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
  #define NAU8825_JACK_POLARITY  (1 << 1) /* 0 - active low, 1 - active high */
 
Quoted 9 lines
Quoted 9 lines
sound/soc/codecs/nau8825.h +2 -1
  /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
  #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
  #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
  #define NAU8825_IRQ_RMS_EN (1 << 8)
--

2.21.0

===========================================================================================
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.

author
#3 lore raw

PATCH 1/1 ASoC: nau8825: fix fake interruption when booting

In reply to John Hsu

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

What steps will reproduce the problem?
Boot device
What is the expected output?
A lot of interrupts without any events
What do you see instead?
The fake interrupts are gone
How frequently does this problem reproduce?
Always

---
 sound/soc/codecs/nau8825.c | 4 ++++
 sound/soc/codecs/nau8825.h | 2 ++
 2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
 		NAU8825_JACK_EJECT_DEBOUNCE_MASK,
 		nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+	/* Pull up IRQ pin */
+	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
 	/* Mask unneeded IRQs: 1 - disable, 0 - enable */
 	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +2 -0
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
 #define NAU8825_JACK_POLARITY	(1 << 1) /* 0 - active low, 1 - active high */
 
 /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
 #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
 #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
 #define NAU8825_IRQ_RMS_EN (1 << 8)
Signature · 1 line
2.21.0
#4 lore raw
Quoted 9 lines · John Hsu

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

Quoted 9 lines

What steps will reproduce the problem?
Boot device
What is the expected output?
A lot of interrupts without any events
What do you see instead?
The fake interrupts are gone
How frequently does this problem reproduce?
Always

I guess you don't need these descriptions.

Quoted 1 line

Please add my Tested-by.
Thanks!

Quoted 36 lines
---
 sound/soc/codecs/nau8825.c | 4 ++++
 sound/soc/codecs/nau8825.h | 2 ++
 2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
                NAU8825_JACK_EJECT_DEBOUNCE_MASK,
                nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+       /* Pull up IRQ pin */
+       regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
        /* Mask unneeded IRQs: 1 - disable, 0 - enable */
        regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +2 -1
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
 #define NAU8825_JACK_POLARITY  (1 << 1) /* 0 - active low, 1 - active high */
 
 /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
 #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
 #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
 #define NAU8825_IRQ_RMS_EN (1 << 8)
--

2.21.0

#5 lore raw
Quoted 18 lines · Cheng-yi Chiang
Quoted 8 lines · John Hsu

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

Quoted 9 lines

What steps will reproduce the problem?
Boot device
What is the expected output?
A lot of interrupts without any events
What do you see instead?
The fake interrupts are gone
How frequently does this problem reproduce?
Always

Quoted 1 line

I guess you don't need these descriptions.

Yes, I add it by referring to the comment of ChromeOS.

I can remove it.

Quoted 3 lines
Quoted 1 line

Please add my Tested-by.
Thanks!

OK, I will add it.

Quoted 27 lines
Quoted 27 lines
---
  sound/soc/codecs/nau8825.c | 4 ++++
  sound/soc/codecs/nau8825.h | 2 ++
  2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
                 NAU8825_JACK_EJECT_DEBOUNCE_MASK,
                 nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+       /* Pull up IRQ pin */
+       regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+               NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
         /* Mask unneeded IRQs: 1 - disable, 0 - enable */
         regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +0 -0
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
  #define NAU8825_JACK_POLARITY  (1 << 1) /* 0 - active low, 1 - active high */
 
Quoted 9 lines
Quoted 9 lines
sound/soc/codecs/nau8825.h +2 -1
  /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
  #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
  #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
  #define NAU8825_IRQ_RMS_EN (1 << 8)
--

2.21.0

===========================================================================================
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.

author
#6 lore raw

PATCH 1/1 ASoC: nau8825: fix fake interruption when booting

In reply to John Hsu

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

---
 sound/soc/codecs/nau8825.c | 4 ++++
 sound/soc/codecs/nau8825.h | 2 ++
 2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
 		NAU8825_JACK_EJECT_DEBOUNCE_MASK,
 		nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+	/* Pull up IRQ pin */
+	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
 	/* Mask unneeded IRQs: 1 - disable, 0 - enable */
 	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +2 -0
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
 #define NAU8825_JACK_POLARITY	(1 << 1) /* 0 - active low, 1 - active high */
 
 /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
 #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
 #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
 #define NAU8825_IRQ_RMS_EN (1 << 8)
Signature · 1 line
2.21.0
maintainer
#7 lore raw
Quoted 2 lines · John Hsu

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low

On some specific system?

Please don't send new patches in the middle of old threads, it makes it hard to spot them and work out what the current version is.

#8 lore raw

On 6/13/2019 7:20 PM, Mark Brown wrote:

On Mon, Jun 10, 2019 at 11:40:40AM +0800, John Hsu wrote:

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low

On some specific system?

No, not really.
The ISR is made for active low. The setup decreases the risk of system damage, in case the hardware has no pull-up resistor.

Please don't send new patches in the middle of old threads, it makes it hard to spot them and work out what the current version is.

I understand. Thanks for reminding. Sorry for a little pushy.

===========================================================================================
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.

maintainer
#9 lore raw

Applied "ASoC: nau8825: fix fake interruption when booting" to the asoc tree

In reply to John Hsu

The patch

ASoC: nau8825: fix fake interruption when booting

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From cbb9f8ccc8232b4647c4180af653eee744818221 Mon Sep 17 00:00:00 2001

From: John Hsu <[email protected]>
Date: Mon, 10 Jun 2019 11:40:40 +0800
Subject: [PATCH] ASoC: nau8825: fix fake interruption when booting

There is no pull-up resistor at IRQ line where it connects from the codec to SoC. When booting, the signal of IRQ pin will keep low which makes the SoC invoke the ISR repeatedly because the IRQ is registered trigger low. It will not stop until the codec sets up the interruption and pulls the signal high. In the patch, nau8825 will internally pull the signal to high at booting in case the fake interrupts happen.

---
 sound/soc/codecs/nau8825.c | 4 ++++
 sound/soc/codecs/nau8825.h | 2 ++
 2 files changed, 6 insertions(+)
sound/soc/codecs/nau8825.c +4 -0
index 47e65cf99879..83ec841f7865 100644
@@ -1881,6 +1881,10 @@ static void nau8825_init_regs(struct nau8825 *nau8825)
 		NAU8825_JACK_EJECT_DEBOUNCE_MASK,
 		nau8825->jack_eject_debounce << NAU8825_JACK_EJECT_DEBOUNCE_SFT);
 
+	/* Pull up IRQ pin */
+	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN,
+		NAU8825_IRQ_PIN_PULLUP | NAU8825_IRQ_PIN_PULL_EN);
 	/* Mask unneeded IRQs: 1 - disable, 0 - enable */
 	regmap_update_bits(regmap, NAU8825_REG_INTERRUPT_MASK, 0x7ff, 0x7ff);
 
sound/soc/codecs/nau8825.h +2 -0
index f6074c618569..3f41897ed3f6 100644
@@ -171,6 +171,8 @@
 #define NAU8825_JACK_POLARITY	(1 << 1) /* 0 - active low, 1 - active high */
 
 /* INTERRUPT_MASK (0xf) */
+#define NAU8825_IRQ_PIN_PULLUP (1 << 14)
+#define NAU8825_IRQ_PIN_PULL_EN (1 << 13)
 #define NAU8825_IRQ_OUTPUT_EN (1 << 11)
 #define NAU8825_IRQ_HEADSET_COMPLETE_EN (1 << 10)
 #define NAU8825_IRQ_RMS_EN (1 << 8)
Signature · 1 line
2.20.1