Charles Keepax 249dc49576
ASoC: dapm: Fix NULL pointer deference on CODEC to CODEC DAIs
Commit a655de808cbde ("ASoC: core: Allow topology to override
machine driver FE DAI link config.") caused soc_dai_hw_params to
be come dependent on the substream private_data being set with
a pointer to the snd_soc_pcm_runtime. Currently, CODEC to CODEC
links don't set this, which causes a NULL pointer dereference:

[<4069de54>] (soc_dai_hw_params) from
[<40694b68>] (snd_soc_dai_link_event+0x1a0/0x380)

Since the ASoC core in general assumes that the substream
private_data will be set to a pointer to the snd_soc_pcm_runtime,
update the CODEC to CODEC links to respect this.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-08-15 15:52:20 +01:00
..
2018-06-29 12:05:05 +01:00
2017-09-04 14:50:49 +02:00
2018-06-15 18:10:01 -03:00
2018-06-12 16:19:22 -07:00
2017-11-13 15:45:57 +01:00
2018-06-07 12:34:37 -07:00
2017-11-13 15:45:57 +01:00
2018-06-15 17:24:40 +09:00
2018-05-31 09:11:03 +02:00