ASoC: rt5640: correct 5640's device ID
Subsystems (3)
PATCH 1/1 ASoC: rt5640: correct 5640's device ID
From: Bard Liao <[email protected]>
This patch correct rt5640's device ID
---
We will send another patch to fix the issue about the "Failed to add route" error.
--- sound/soc/codecs/rt5640.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt5640.h +1 -1
@@ -195,7 +195,7 @@/* SW Reset & Device ID (0x00) */ #define RT5640_ID_MASK (0x3 << 1)#define RT5640_ID_5639 (0x0 << 1) -#define RT5640_ID_5640 (0x1 << 1) +#define RT5640_ID_5640 (0x2 << 1)#define RT5640_ID_5642 (0x3 << 1)
Signature · 1 line
1.8.1.1.439.g50a6b54
Quoted 8 lines · On 04/30/2014 12:08 AM, [email protected] wrote:
From: Bard Liao <[email protected]>
This patch correct rt5640's device ID
Signed-off-by Bard Liao <[email protected]>---
We will send another patch to fix the issue about the "Failed to add route" error.
(On NVIDIA Tegra Beaver/RT5640, Dalmore/RT5640, Jetson TK1/RT5639)
Note that this patch alone (on top of next-20140429) completely eliminates any of the "failed to add route" errors that I mentioned earlier, although perhaps there's still a need to investigate why they happened.
Quoted 17 lines
-----Original Message-----
From: Stephen Warren [mailto:[email protected]]
Sent: Thursday, May 01, 2014 12:10 AM
To: Bard Liao; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Flove; Oder Chiou
Subject: Re: [PATCH] ASoC: rt5640: correct 5640's device IDQuoted 8 lines · On 04/30/2014 12:08 AM, [email protected] wrote:
From: Bard Liao <[email protected]>
This patch correct rt5640's device ID
Signed-off-by Bard Liao <[email protected]>---
We will send another patch to fix the issue about the "Failed to add route" error.
Quoted 8 lines
Tested-by Stephen Warren <[email protected]>(On NVIDIA Tegra Beaver/RT5640, Dalmore/RT5640, Jetson TK1/RT5639)
Note that this patch alone (on top of next-20140429) completely eliminates any of the "failed to add route" errors that I mentioned earlier, although perhaps there's still a need to investigate why they happened.
The "failed to add route" errors is coming from we didn't handle a default case when determining which codec is attached. As a result, no _dapm_new_controls is called. That's why once we can determine codecs properly, the errors will be gone. Actually, there are only three possible ID values, and all of them are in the switch cases now. So, I am thinking if we need to add a default case to handle unexpected cases.
Quoted 1 line
------Please consider the environment before printing this e-mail.
Quoted 26 lines · Bard Liao
Quoted 17 lines
-----Original Message-----
From: Stephen Warren [mailto:[email protected]]
Sent: Thursday, May 01, 2014 12:10 AM
To: Bard Liao; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Flove; Oder Chiou
Subject: Re: [PATCH] ASoC: rt5640: correct 5640's device IDQuoted 8 lines · On 04/30/2014 12:08 AM, [email protected] wrote:
From: Bard Liao <[email protected]>
This patch correct rt5640's device ID
Signed-off-by Bard Liao <[email protected]>---
We will send another patch to fix the issue about the "Failed to add route" error.Quoted 8 lines
Tested-by Stephen Warren <[email protected]>(On NVIDIA Tegra Beaver/RT5640, Dalmore/RT5640, Jetson TK1/RT5639)
Note that this patch alone (on top of next-20140429) completely eliminates any of the "failed to add route" errors that I mentioned earlier, although perhaps there's still a need to investigate why they happened.
Quoted 5 lines
The "failed to add route" errors is coming from we didn't handle a default case when determining which codec is attached. As a result, no
_dapm_new_controlsis called. That's why once we can determine codecs properly, the errors will be gone. Actually, there are only three possible ID values, and all of them are in the switch cases now. So, I am thinking if we need to add a default case to handle unexpected cases.
Ah, that makes sense.
It's probably worth adding a default case, so that a meaningful error message can be printed e.g. if the I2C read of the ID register gets corrupted, or someone tries to use the driver on a chip that isn't (yet) supported by it.
Quoted 3 lines · On Wed, Apr 30, 2014 at 02:08:45PM +0800, [email protected] wrote:
From: Bard Liao <[email protected]>
This patch correct rt5640's device ID
Applied, thanks.