]> git.karo-electronics.de Git - linux-beck.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)
commitd2f916aaccaf7b3bc27df2fd6cfc00f6cda2f78d
treee9de2a946633315006d670a0393368641efa3cce
parent92e963f50fc74041b5e9e744c330dca48e04f08d
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: a242cac1d3aa ("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