static int mtk_capture_alsa_stop(struct snd_pcm_substream *substream)
{
    //AFE_BLOCK_T *Vul_Block = &(VUL_Control_context->rBlock);
    printk("mtk_capture_alsa_stop \n");
    StopAudioCaptureHardware(substream);
    RemoveMemifSubStream(Soc_Aud_Digital_Block_MEM_VUL,substream);
    return 0;
}
static int mtk_capture_alsa_stop(struct snd_pcm_substream *substream)
{
    printk("mtk_capture_alsa_stop \n");
    StopAudioCaptureHardware(substream);
    AFE_BLOCK_T *Vul_Block = &(VUL_Control_context.rBlock);
    Vul_Block->u4DMAReadIdx  = 0;
    Vul_Block->u4WriteIdx  = 0;
    Vul_Block->u4DataRemained = 0;
    return 0;
}
Пример #3
0
static int mtk_capture_alsa_stop(struct snd_pcm_substream *substream)
{
    AFE_BLOCK_T *Vul_Block = &(TDM_VUL_Control_context->rBlock);
    printk("mtk_capture_alsa_stop \n");
    StopAudioCaptureHardware(substream);
    Vul_Block->u4DMAReadIdx  = 0;
    Vul_Block->u4WriteIdx  = 0;
    Vul_Block->u4DataRemained = 0;
    RemoveMemifSubStream(Soc_Aud_Digital_Block_MEM_VUL);
    return 0;
}
static int mtk_mod_dai_alsa_stop(struct snd_pcm_substream *substream)
{
    AFE_BLOCK_T *pModDai_Block = &(MOD_DAI_Control_context->rBlock);
    printk("mtk_mod_dai_alsa_stop \n");
    StopAudioCaptureHardware(substream);
    pModDai_Block->u4DMAReadIdx  = 0;
    pModDai_Block->u4WriteIdx  = 0;
    pModDai_Block->u4DataRemained = 0;
    RemoveMemifSubStream(Soc_Aud_Digital_Block_MEM_MOD_DAI, substream);
    return 0;
}