ANDROID: GKI: ALSA: PCM: volume API implementation
Introduced a new helper function snd_pcm_add_volume_ctls() to create control elements representing the volume for each PCM (sub)stream. This patch also squashes the logic implemented by below change- ASoC: Fix freed memory access of pcm stream kctl Consider sound card instantiate fails due to audrx init failure. In such case, all dais/ctls are de-registered and freed. But as part of it, access to unregistered ctls for pcm_chmap and similar controls result in crash. Ctls are freed at disconnection but the disconnect is called only when it was registered. Bug: 151372815 Test: build CRs-Fixed: 1038054 Signed-off-by:Laxminath Kasam <lkasam@codeaurora.org> Signed-off-by:
Damir Didjusto <damird@codeaurora.org> Signed-off-by:
Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by:
Sudheer Papothi <spapothi@codeaurora.org> Signed-off-by:
Meng Wang <mwang@codeaurora.org> (cherry picked from commit cb09747101a64864f3d852dc31c775a7a1ed79f7) Signed-off-by:
Hridya Valsaraju <hridya@google.com> Change-Id: I0c1f206f2e17fc1746eb83fab0e9b0ce379a5beb
Loading
Please register or sign in to comment