]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dwc: Ensure i2s_reg_comp{1,2} is always initialised
authorJon Medhurst (Tixy) <tixy@linaro.org>
Mon, 1 Feb 2016 15:54:37 +0000 (15:54 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 2 Feb 2016 19:20:18 +0000 (19:20 +0000)
commit1fed1f4e3ff5925309a2e4ef1734ff7a9e3f26ed
treee9de2a946633315006d670a0393368641efa3cce
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
ASoC: dwc: Ensure i2s_reg_comp{1,2} is always initialised

In the case that the driver is configured from device-tree
i2s_reg_comp1 and i2s_reg_comp2 aren't initialised, breaking the driver.
Fix this by unconditionally setting these values before checking for quirks.

Fixes: 8438659920ea ("ASoC: dwc: add quirk to override COMP_PARAM_1 register")
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/designware_i2s.c