Merge "ASoC: wcd934x: add null check for soundwire control data"
This commit is contained in:
commit
2e1b1eb1e5
1 changed files with 3 additions and 2 deletions
|
@ -9076,6 +9076,7 @@ static int tavil_device_down(struct wcd9xxx *wcd9xxx)
|
||||||
|
|
||||||
codec = (struct snd_soc_codec *)(wcd9xxx->ssr_priv);
|
codec = (struct snd_soc_codec *)(wcd9xxx->ssr_priv);
|
||||||
priv = snd_soc_codec_get_drvdata(codec);
|
priv = snd_soc_codec_get_drvdata(codec);
|
||||||
|
if (priv->swr.ctrl_data)
|
||||||
swrm_wcd_notify(priv->swr.ctrl_data[0].swr_pdev,
|
swrm_wcd_notify(priv->swr.ctrl_data[0].swr_pdev,
|
||||||
SWR_DEVICE_DOWN, NULL);
|
SWR_DEVICE_DOWN, NULL);
|
||||||
tavil_dsd_reset(priv->dsd_config);
|
tavil_dsd_reset(priv->dsd_config);
|
||||||
|
|
Loading…
Add table
Reference in a new issue