From: Stephen Warren <swarren@wwwdotorg.org>
To: Bard Liao <bardliao@realtek.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>
Cc: Oder Chiou <oder_chiou@realtek.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"lars@metafoo.de" <lars@metafoo.de>, Flove <flove@realtek.com>
Subject: Re: [PATCH] ASoC: rt5640: correct 5640's device ID
Date: Mon, 05 May 2014 10:14:07 -0600 [thread overview]
Message-ID: <5367B8CF.7020408@wwwdotorg.org> (raw)
In-Reply-To: <ABFD875FF5FB574BA706497D987D48D73D6249@RTITMBSV03.realtek.com.tw>
On 05/04/2014 09:36 PM, Bard Liao wrote:
>> -----Original Message-----
>> From: Stephen Warren [mailto:swarren@wwwdotorg.org]
>> Sent: Thursday, May 01, 2014 12:10 AM
>> To: Bard Liao; broonie@kernel.org; lgirdwood@gmail.com
>> Cc: alsa-devel@alsa-project.org; lars@metafoo.de; Flove; Oder Chiou
>> Subject: Re: [PATCH] ASoC: rt5640: correct 5640's device ID
>>
>> On 04/30/2014 12:08 AM, bardliao@realtek.com wrote:
>>> From: Bard Liao <bardliao@realtek.com>
>>>
>>> This patch correct rt5640's device ID
>>>
>>> Signed-off-by: Bard Liao <bardliao@realtek.com>
>>> ---
>>> We will send another patch to fix the issue about the "Failed to add route"
>>> error.
>>
>> Tested-by: Stephen Warren <swarren@nvidia.com>
>>
>> (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.
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.
next prev parent reply other threads:[~2014-05-05 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-30 6:08 [PATCH] ASoC: rt5640: correct 5640's device ID bardliao
2014-04-30 16:09 ` Stephen Warren
2014-05-05 3:36 ` Bard Liao
2014-05-05 16:14 ` Stephen Warren [this message]
2014-04-30 18:25 ` 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=5367B8CF.7020408@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=alsa-devel@alsa-project.org \
--cc=bardliao@realtek.com \
--cc=broonie@kernel.org \
--cc=flove@realtek.com \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=oder_chiou@realtek.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox