static int msm_compr_close(struct snd_pcm_substream *substream) { int ret = 0; if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ret = msm_compr_playback_close(substream); else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) ret = EINVAL; return ret; }
static int msm_compr_close(struct snd_pcm_substream *substream) { int ret = 0; //roger+{ compr_msm_global.prtd = NULL; //roger+} if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ret = msm_compr_playback_close(substream); else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) ret = EINVAL; return ret; }
static int msm_compr_close(struct snd_pcm_substream *substream) { int ret = 0; //roger+{ compr_msm_global.prtd = NULL; //roger+} pr_debug("[AUD]%s +++\n", __func__); if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ret = msm_compr_playback_close(substream); else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) ret = EINVAL; pr_debug("[AUD]%s ---\n", __func__); return ret; }