Merge "ASoC: wcd9330: Send bus status to CPE core"

This commit is contained in:
Linux Build Service Account 2014-07-12 21:07:54 -07:00 committed by Gerrit - the friendly Code Review server
commit c5dbccd45e

View file

@ -7067,8 +7067,11 @@ static void tomtom_init_slim_slave_cfg(struct snd_soc_codec *codec)
static int tomtom_device_down(struct wcd9xxx *wcd9xxx)
{
struct snd_soc_codec *codec;
struct tomtom_priv *priv;
codec = (struct snd_soc_codec *)(wcd9xxx->ssr_priv);
priv = snd_soc_codec_get_drvdata(codec);
wcd_cpe_ssr_event(priv->cpe_core, WCD_CPE_BUS_DOWN_EVENT);
snd_soc_card_change_online_state(codec->card, 0);
return 0;
@ -7544,7 +7547,7 @@ static int tomtom_post_reset_cb(struct wcd9xxx *wcd9xxx)
tomtom_init_slim_slave_cfg(codec);
tomtom_slim_interface_init_reg(codec);
wcd_cpe_ssr_event(tomtom->cpe_core, WCD_CPE_BUS_UP_EVENT);
wcd9xxx_resmgr_post_ssr(&tomtom->resmgr);
if (tomtom->mbhc_started) {