]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: format_register_str: Don't clip register values
authorStephen Warren <swarren@nvidia.com>
Fri, 1 Apr 2011 20:50:44 +0000 (14:50 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Apr 2011 13:11:26 +0000 (22:11 +0900)
commit91bc8ea6d7476910614f1ada1f8582c7d18db9a9
tree59e8f673eb8d23cd67117c1c1c50fcddfa6af6bd
parente6cef3dfb5dcd9e50e778ce8e3739ce2f93566df
ASoC: format_register_str: Don't clip register values

wordsize is used as the textual width of a register address.

regsize is used as the textual width of a register value.

The assignments to these values were swapped. In the case of WM8903, which
has 8-bit register addresses and 16-bit register values, this caused the
register values to be clipped to 2 digits instead of the full 4.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c