Thread (55 messages) 55 messages, 2 authors, 2012-07-26

[PATCH 20/21] ASoC: codecs: Enable AB8500 CODEC for Device Tree

flat view

From: Lee Jones <hidden>
Date: 2012-07-26 15:01:22
Also in: alsa-devel, lkml

On 26/07/12 15:28, Mark Brown wrote:
On Thu, Jul 26, 2012 at 03:00:17PM +0100, Lee Jones wrote:
quoted
On 26/07/12 12:50, Mark Brown wrote:
quoted
quoted
Yet again no binding documentation....
quoted
RFC. ;)
quoted
I'll write the documentation when/if the properties are accepted.
No, write the documentation.  It's way too much effort to reverse
engineer the bindings from the code.
quoted
quoted
quoted
+		default :
+			codec->ear_cmv = EAR_CMV_UNKNOWN;
+			dev_err(dev, "Unsuitable earpiece voltage found in DT\n");
quoted
quoted
The platform data code picks a default, can't the DT code do the same?
quoted
No, I don't think that it does? The original code returns -EINVAL
unless a value is specified.
The code doesn't specify values for the enumeration so it ought to
default to EAR_CMV_0_95V if nothing is specified.
Ah, I see what you mean. I guess we could compromise and print a warning 
_and_ fall back to the 0th original emum.
quoted
The original author is keen to have a clear error message in case
users try to specify non-exact values. I'd rather we fail-out than
use incorrect values which would be a great deal harder for a user
to debug.
By that argument all the properties should be mandatory but it's only
this one IIRC.
This is the only value which the user can pick an obscure value, such as 
913, thinking they can pick 913mV. I'm happy to fall-back, as long as 
Ola is too.

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help