mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "SoC: soundwire: Add support to register for event listener"
This commit is contained in:
commit
8ff9993fa0
2 changed files with 10 additions and 0 deletions
|
|
@ -22,6 +22,8 @@ enum {
|
|||
SWR_REGISTER_WAKE_IRQ,
|
||||
SWR_SET_PORT_MAP,
|
||||
SWR_REQ_CLK_SWITCH,
|
||||
SWR_REGISTER_WAKEUP,
|
||||
SWR_DEREGISTER_WAKEUP,
|
||||
};
|
||||
|
||||
struct swr_mstr_port {
|
||||
|
|
|
|||
|
|
@ -2881,6 +2881,14 @@ int swrm_wcd_notify(struct platform_device *pdev, u32 id, void *data)
|
|||
mutex_unlock(&swrm->mlock);
|
||||
}
|
||||
break;
|
||||
case SWR_REGISTER_WAKEUP:
|
||||
msm_aud_evt_blocking_notifier_call_chain(
|
||||
SWR_WAKE_IRQ_REGISTER, (void *)swrm);
|
||||
break;
|
||||
case SWR_DEREGISTER_WAKEUP:
|
||||
msm_aud_evt_blocking_notifier_call_chain(
|
||||
SWR_WAKE_IRQ_DEREGISTER, (void *)swrm);
|
||||
break;
|
||||
case SWR_SET_PORT_MAP:
|
||||
if (!data) {
|
||||
dev_err(swrm->dev, "%s: data is NULL for id=%d\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue