static void sst_disable_ssp(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { if (!dai->active) { send_ssp_cmd(dai, dai->name, 0); sst_handle_vb_timer(dai, false); } }
static void sst_disable_ssp(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { pr_debug("In %s :dai=%s pb=%d cp= %d dai_active=%d id=%d\n", __func__, dai->name, dai->playback_active, dai->capture_active, dai->active, dai->id); if (!dai->active) { send_ssp_cmd(dai->platform, dai->name, 0); sst_handle_vb_timer(dai->platform, false); } }
static int sst_enable_ssp(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { pr_debug("In %s :dai=%s pb=%d cp= %d dai_active=%d id=%d\n", __func__, dai->name, dai->playback_active, dai->capture_active, dai->active, dai->id); if (!dai->active) { sst_handle_vb_timer(dai->platform, true); send_ssp_cmd(dai->platform, dai->name, 1); } return 0; }
static int sst_enable_ssp(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) { int ret = 0; if (!dai->active) { ret = sst_handle_vb_timer(dai, true); if (ret) return ret; ret = send_ssp_cmd(dai, dai->name, 1); } return ret; }