• Helen Zeng's avatar
    ASoc: soc-pcm: Open/close share channel once if it is used by two streams · 5749b095
    Helen Zeng authored
    
    
    - During voice and normal recording concurrency case, both voice
    and recording streams share the same tx channel. If one stream
    already opens the tx channel, another stream will get error when
    trying to open the same channel again. If one stream ends and closes
    the channel, but another stream will lose the sound if it's still using
    it.
    - To prevent the above issues, only send SND_SOC_DAPM_STREAM_START event
    when capture active count is one. And send SND_SOC_DAPM_STREAM_STOP event
    when capture active count is zero.
    
    Change-Id: Ic6dcd5d8d1949c2b96d46915a4399a454075fbb7
    CRs-Fixed: 357022
    Signed-off-by: default avatarHelen Zeng <xiaoyunz@codeaurora.org>
    5749b095
soc-dai.h 11.3 KB