asoc: Expose a sysfs node to notify device open/close.
Add support in kona machine driver to expose a sysfs node. Userspace uses this sysfs node to notify machine driver on which dai-link ( pcm id) is opened/closed. This information regarding device open/close is then compared against shutdown/ startup dai_link ops. If there is a mismatch we conclude that there has been a userspace service crash and we issue a close all session command to dsp and also clear all the dma buffers which were allocated by the service. Change-Id: I4fc13adf8cc527c87b822a3b189d4ff081539a3c Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
4adf995c01
commit
de3e09d08d
@@ -32,6 +32,10 @@ enum {
|
||||
};
|
||||
|
||||
struct msm_common_pdata {
|
||||
uint8_t *aud_dev_state;
|
||||
struct kobject aud_dev_kobj;
|
||||
uint8_t dsp_sessions_closed;
|
||||
uint32_t num_aud_devs;
|
||||
struct device_node *mi2s_gpio_p[MI2S_TDM_AUXPCM_MAX];
|
||||
struct mutex lock[MI2S_TDM_AUXPCM_MAX];
|
||||
atomic_t mi2s_gpio_ref_cnt[MI2S_TDM_AUXPCM_MAX];
|
||||
|
Reference in New Issue
Block a user