Initialize fsa4480 blocking notifier chain head as per the
lockdep annotation to fix the warnings with LOCKDEP enabled.
Change-Id: I771b0d9e1a9c1d28cd9b5bee2d7695ff95178db9
Signed-off-by: Puneeth Prabhu <quic_pprabh@quicinc.com>
Headset is not detected after system goes into suspend
as sufficient delay is not given after pm_stay_awake
for system to wakeup. Implementing freezable workqeueue
after pm_stay_awake resolves the issue.
Change-Id: Ia104a1577004a4242470f3b4150be23698fc92b1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
USB re-enumeration failure is coming post PDR due to
switch settings being reset in fsa unreg notifier.
Reset switch settings only for audio adapter to
resolve issue.
Change-Id: I2462a2f1d3679adbd71dd1a7abd30726f7c68e6a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Mute is observed on USB digital headset after SSR due to
headset removal being called. Do not reset switch settings
during fsa unregister to resolve this.
Change-Id: Ia2e349b3913ebfefbf8c19316b2c70b6c314cb92
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Notify to FSA driver clients only if it is a audio
accessory plug. Add other type of accessory plug that
FSA driver should notify of if any in the switch condition.
Change-Id: I094835f5bfb950c60c89163443a25849dd0b5b52
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
cancel_work is removed in kernel-4.19. Update to
cancel_work_sync.
Change-Id: I081ab94af94f1ec65f63a74a022398a5381a61a9
Signed-off-by: Meng Wang <mengw@codeaurora.org>
Send usbc mode at register function so that all drivers
registering first time will get the notification of
current usb connection type, if any.
Change-Id: Ifac7af1ff546a17bc6f382246ae0aeec5194ca9f
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Program the FSA4480 to enable USB in DisplayPort mode in order
to allow concurrency use cases with USB devices.
CRs-Fixed: 2377072
Change-Id: Ied8d090296dafc91fca17200fc216b1cfc70cbfd
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
During fsa4480_remove cancel scheduled work for usbc_analog_en
and call pm_relax.
Change-Id: I8e09ce56a5c38cf4c7f576edaae761d29ae8322e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Fsa driver schedules work to send usbc plug event notificaions
to mbhc but does not hold the system supend.
Add pm calls to hold system suspend
until mbhc notification is complete.
Change-Id: I31116844c592a8d2525605036cb7f0588aadf11f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Modify spdx tag for all CAF authored files for Kona.
Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
This is a snapshot of driver support for FSA4480 I2C device as of
msm-4.14 commit '96e8162852225049d0a6afcc57dd49c48b8bf170'(Add
driver for FSA4480 I2C device).
Change-Id: Iac392c82a72fe5de469fda094059ef7691772ca8
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Signed-off-by: Meng Wang <mengw@codeaurora.org>