4 Jun
2015
4 Jun
'15
6:25 p.m.
On Thu, Jun 04, 2015 at 04:04:14PM +0300, Peter Ujfalusi wrote:
If the card is not part of any card the tas_data->codec is NULL since it is set only during snd_soc_codec_driver.probe, which is not yet called.
@@ -120,6 +120,9 @@ static void tas2552_sw_shutdown(struct tas2552_data *tas_data, int sw_shutdown) { u8 cfg1_reg;
- if (!tas_data->codec)
return;
This fixes the crash but isn't whatever the function is doing important (so we should fix by using regmap for the I/O or something)?