Commit Graph

90 Commits

Author SHA1 Message Date
CNSS_WLAN Service
e5596a07c8 Merge "Enable Bazel in NIOBE" into bt-kernel.lnx.14.0 2024-03-21 03:47:45 -07:00
Lalit
5c665db94a Enable Bazel in NIOBE
- This changes will enable the Bazel in NIOBE target

Change-Id: Ic975af889c39d53be6194d2bbdf9f5576b425c35
Signed-off-by: Lalit <quic_lkaim@quicinc.com>
2024-03-19 21:59:02 +05:30
Satish Kumar Kodishala
f665ccac4e Delay after port closure when usecase ended for wcn6x5x
Delay after port closure when usecase ended for
WCN6x5x. This would give some time for SB to be
in right state before next usecase starts and helps
in quick SHO scenarios.

CRs-Fixed: 3749420
Change-Id: I5efab4f3985bb3614f16510646cb3387dff3b4b1
2024-03-05 03:17:08 -08:00
Girish BN
7b37fa2beb Optimizing Logging in BT Power Driver
- Removing Un-wanted Logging

Change-Id: I0812ec9f558a6f1fe3dd29df1f520fe14a1d16cd
Signed-off-by: Girish BN <quic_gbn@quicinc.com>
2024-02-22 21:09:55 +05:30
Girish BN
445b764a85 Optimize Primary and Secondary panic reason logging in kernel
- Sub-System directly sends the Primary and
   Secondary panic string to kernel, and will be logged
   in kernel.

Change-Id: Ief755c0ab06975ecfa5613d51f171b4b38c6d1ce
Signed-off-by: Girish BN <quic_gbn@quicinc.com>
2024-02-22 21:06:57 +05:30
Franklin Abreu Bueno
2c928118be Print Source Subsystem on UWB Kernel Panic
- Will now print source subsystem when a kernel panic happens.
- Added more UWB SoC crash reasons.

Change-Id: I4311d6d1cb346ab4a2d3606038e36c401cd9497a
Signed-off-by: Franklin Abreu Bueno <quic_fabreu@quicinc.com>
2024-02-12 10:43:20 -08:00
Balakrishna Godavarthi
34596eb093 btfmcodec: check before closing port
This change will check whether port was previously
opened before shutting down.

Change-Id: I6b74a006c4c240fa9498747c8c3af214d3709dc3
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2024-02-02 17:10:13 +05:30
Balakrishna Godavarthi
9abee5db74 btpower: Update BT error reasons
This change will update bt error reason to align with BT vendor.

Change-Id: I485b603d5469d5308f50375bd5052bd88647931c
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2024-02-02 12:33:35 +05:30
Balakrishna Godavarthi
679c16880e btkernel: update a typo error in bazel file
This change updates a typo error in bazel file.

Change-Id: I447cbc02cb0d28a514b8c2c5d1ec6741d718698d
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2024-02-01 22:11:32 +05:30
CNSS_WLAN Service
2ba58b010d Merge "Enable Bazel in PITTI" into bt-kernel.lnx.14.0 2024-01-31 21:32:10 -08:00
Balakrishna Godavarthi
17b53a7f38 btpower: Read soc type for dts
This change will always read soc type from dts during
probe.

Change-Id: Ia9f74da42f8dfbebe7104644ef77e228d5efe362
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2024-01-30 10:45:06 +05:30
Adesh Mohanrao Pathare
f483bb502c Enable Bazel in PITTI
- This changes will enable the Bazel in PITTI target

Change-Id: I619f642c1f1d43ae10f1d9f4be8665f000569139
Signed-off-by: Adesh Mohanrao Pathare <quic_adesmoha@quicinc.com>
2024-01-23 18:36:59 +05:30
Balakrishna Godavarthi
df9b6eae6a btpower: Use high priority work queue
This change used high priority work queue for voting
regulators.

Change-Id: I8cd0eb4cef00c25315b736dc39819b01469972e3
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2024-01-22 13:09:06 +05:30
CNSS_WLAN Service
9e3cfab002 Merge "niobe: Disable bt-kernel ko compilation" into bt-kernel.lnx.14.0 2024-01-19 09:02:49 -08:00
Amit Kumar Prasad
9f21e8cfbc niobe: Disable bt-kernel ko compilation
This will disable bt-kernel ko compilation based on the board property.

Change-Id: Ia2a4a55ee4b69b447db81882ea93c92380b771da
Signed-off-by: Amit Kumar Prasad <quic_amitpras@quicinc.com>
2024-01-18 19:59:28 -08:00
Girish BN
63ad6fb16f Add definition for Primary, Secondary crash reason
- Adding the definition for Primary and
   Secondary crash reason

Change-Id: I482f88524d1f5bfc759f17bdd13295dd2323a618
Signed-off-by: Girish BN <quic_gbn@quicinc.com>
2024-01-16 16:32:45 +05:30
Girish BN
2f0b16c8e1 Add Multi Client Support to Power Driver
This change adds multi-client support for BT power driver.

Change-Id: I0609fd6c602e68c6887296e015a2540733215619
Signed-off-by: Girish BN <quic_gbn@quicinc.com>
2024-01-08 22:55:34 +05:30
Adesh Mohanrao Pathare
22a19e2a01 BT: bt-kernel: Added volcano in compilation
Added volcano in the list of devices
to get the compilation generated
successfully.

Change-Id: I4b5b83639e84242a16e6f58ed8f6d5cbea619372
Signed-off-by: Adesh Mohanrao Pathare<quic_adesmoha@quicinc.com>
2023-12-08 17:19:11 +05:30
CNSS_WLAN Service
da5f5a2b53 Merge "Enable compilation of bt-kernel on Kalpeni" into bt-kernel.lnx.14.0 2023-11-19 09:25:45 -08:00
CNSS_WLAN Service
d871da5748 Merge "Enable Bazel in STRAIT" into bt-kernel.lnx.14.0 2023-11-14 17:25:02 -08:00
Girish BN
e0218954f3 Enable compilation of bt-kernel on Kalpeni
- Enable compilation of bt-kernel on Kalpeni

CRs-Fixed: 3660269
Change-Id: I56e127327a09cb05fe9f36bbfa97ab566a31eb57
Signed-off-by: Girish BN <quic_gbn@quicinc.com>
2023-11-13 22:45:05 -08:00
Balakrishna Godavarthi
d9dbe6c5bd btfmcodec: cancel workqueue
This change will cancel workqueue when bearer indication
is received.

Change-Id: Ib16849e684d6c2fb2ded817baff7ab31b5cbd6db
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-11-08 07:48:07 -08:00
Girish BN
28e600ba4e Enable Bazel in STRAIT
- This change enable the Bazel in STRAIT target

Change-Id: I115982d3fc1fa5da359be582e9e24518bac1678d
Signed-off-by: Girish BN <quic_gbn@quicinc.com>
2023-11-08 19:01:55 +05:30
Balakrishna Godavarthi
897ecff742 soundwire: Update soundwire driver to support btfmcodec
This change add supports in both btfmcodec and soundwire
to support btfmcodec driver has interface.

Change-Id: I2e77afaea44778147b362175aae33961dcc5042e
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-10-02 23:29:26 -07:00
Balakrishna Godavarthi
7bd1a061bb btfmcodec: Update usecase start
This change will notify client about usecase start
if transport selected is bt advance audio.

Change-Id: I5c85d32e0701cec4f36e0dda4110cc20338bf6a4
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-10-01 09:31:50 +05:30
CNSS_WLAN Service
77e8b20e22 Merge "Add support for BT/FM SoundWire slave driver" into bt-kernel.lnx.14.0 2023-09-28 12:39:26 -07:00
Satish Kumar Kodishala
d638487f10 Add support for BT/FM SoundWire slave driver
Added support for BT/FM SoundWire slave driver.
The driver registers as a codec driver with ALSA.
Slave port configuration is sent to master driver.
Master driver takes care of programming master and
slave registers at once when BT audio usecase is
started/stopped.

Change-Id: I3a4de9872323c470f2ec73218601be94a768d726
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-09-25 12:28:49 +05:30
CNSS_WLAN Service
89f2da4783 Merge "bt-kernel: add configuration for special bt kiwi" into bt-kernel.lnx.14.0 2023-09-15 15:49:24 -07:00
zhiwyan
245f899293 bt-kernel: add configuration for special bt kiwi
add new compatible for special bt kiwi case as
qcom,bt-ant-ldo can't be supported for HDK kiwi.

CRs-Fixed: 3607042
Change-Id: I1e072be95481231a5f54b83a74205298038e058d
Signed-off-by: zhiwyan <quic_zhiwyan@quicinc.com>
2023-09-06 15:52:43 +08:00
Balakrishna Godavarthi
d1e8e16be6 btfmcodec: Update with list_for_each_entry_safe API
This changes updates list_for_each_entry API with
list_for_each_entry_safe API.

Change-Id: Ifeb684ba1407123aef5b5b922e843a8089a6236f
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-08-29 15:34:28 +05:30
CNSS_WLAN Service
7fb1282936 Merge "btpower: Remove unused dependency" into bt-kernel.lnx.14.0 2023-08-25 04:04:00 -07:00
Satish Kumar Kodishala
1408642d4f Revert "Request to suspend after all ports are closed"
This reverts commit 38173f4069.

Change-Id: I9e85e9a558176124fb238410358537b741123d38
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-08-17 11:02:53 +05:30
Balakrishna Godavarthi
360a8bd705 Update R3 codec sampling rate to 192k
This change updates R3 codec sampling rate to 192k.

CRs-Fixed: 3585575
Change-Id: I316b021a0c737050b98cd51bfe6f7bc3a0f511f3
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-08-09 22:26:01 +05:30
Reut Zysman
240ba24497 btpower: Remove unused dependency
Remove dependency on smcinvoke.h.

Change-Id: I82d80d3f901d761070b2900701b70ee054d89888
Signed-off-by: Reut Zysman <quic_rzysman@quicinc.com>
2023-08-07 22:21:44 -07:00
CNSS_WLAN Service
8c7acc103d Merge "btfmcodec: Cache configs for all the transitions" into bt-kernel.lnx.14.0 2023-07-21 00:09:26 -07:00
Balakrishna Godavarthi
6b32d8743b btfmcodec: Cache configs for all the transitions
This change will cache configs for all the transitions

Change-Id: If1201fd8cf045fcc2a6c4d83d50e3dd939ebc3a4
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-07-19 11:31:51 -07:00
Balakrishna Godavarthi
63d367af6b btfmslim: Register only once with btfmcodec driver
This change will register hardware endpoint with btfmcodec
driver during initial boot. Based on the further changes to slimbus
status will not take any effect with driver registrations.

Change-Id: I1a3c20d111ed4288c26ab7e72168745e34b03bd5
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-07-18 09:34:43 -07:00
Satish Kumar Kodishala
c0568d1c4d Register only once with ALSA
Register only once with ALSA.

CRs-Fixed: 3543436
Change-Id: Ibc9bffd048921a7e3666c41771e9e08349af57d3
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-07-18 21:02:34 +05:30
Satish Kumar Kodishala
38173f4069 Request to suspend after all ports are closed
Request core slimbus to suspend after all
ports are closed. This is to early reset
slimbus hw  instead and avoid waiting till
time out after ports closure.

CRs-Fixed: 3536919
Change-Id: I1bf92b2651d9ee8716a06144ef75f9cb2779c415
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-07-12 10:47:54 -07:00
Balakrishna Godavarthi
f6eccaaf19 btfmcodec: fix logging errors
This change add format specifiers wherever required.

Change-Id: I8bac382b0cc50e302ed780335510c0ba7df279fa
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-07-05 20:27:37 +05:30
Balakrishna Godavarthi
fd58910c2d btfmcodec: Notify ADSP SSR to host
This change notifies ADSP SSR to host when it completely
boots up.

Change-Id: Icfa5a895a6f31e662ba4e7d2b818a7a75854f248
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-06-29 12:07:52 +05:30
satish kumar sugasi
818edfe5ac btpower: release secure mode state object
during bluetooth secure mode check process, once state of peripheral
is invoked and read successfully, release state object to avoid leak.

Change-Id: I826702d2a57cd92b57e6e50ca40a3dcafd82a8b7
Signed-off-by: satish kumar sugasi <quic_ssugasi@quicinc.com>
2023-06-23 19:28:27 -07:00
Balakrishna Godavarthi
8998587891 btfmcodec: Enable Dynamic logging
This change will enable dynamic logging based on below
flags
Below bit has to be set to enable respective logging.
 * Bit 0: Error message.
 * Bit 1: Warning message.
 * Bit 2: Debug message.
 * Bit 3: Info message.
 * 0x08 is similar to 0x0F.
 * 0x04 is similar to 0x07.
 * 0x02 is similar to 0x03.
 * 0x03 is default log level for BTFM Codec.

Change-Id: Ia986a49f73d6144f2631936b8d02985d3ccf98d0
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-06-20 19:13:30 -07:00
Balakrishna Godavarthi
c49fc215ed btfmcodec: Update bearer response instead of ind
This change will send bearer response instead of transport
failed indications.
Update correct codeid and smaple rate for seamles transitions

Change-Id: I4b91f5e158c02d4f2dc1852cc58cec959d028497
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-06-14 02:53:22 -07:00
CNSS_WLAN Service
f42a9a1f35 Merge "btpower: avoid gpio pinctrl if secure mode enabled" into bt-kernel.lnx.14.0 2023-06-12 02:31:58 -07:00
Balakrishna Godavarthi
cbe962c9b1 btfmcodec: Update Sampling rate for R4 Codec
This change updates sampling rate to 96khz for
R4 codec.

Change-Id: I93bc8c88921ed0fc170efea265e45a7f9790ca3e
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
2023-06-09 12:00:37 +05:30
satish kumar sugasi
8b49d4668d btpower: avoid gpio pinctrl if secure mode enabled
This checks for secure mode enabled in  driver probe and
skips sending platform device data to device probe which
will try to do write default setting for bt reset gpio pin.

Change-Id: I10d83b26a4b32517a6b0ff95eb0132c0be9bab3c
CRs-Fixed: 3406335
Signed-off-by: satish kumar sugasi <quic_ssugasi@quicinc.com>
2023-06-08 15:58:46 -07:00
P.N.Janani
37707f54de Adding BT support for blair target
-Enable BT Kernel compilation support for blair

CRs-Fixed: 3509655
Change-Id: I637909670819b470081d96e68a66155aab136be9
Signed-off-by: P.N JANANI <quic_janani@quicinc.com>
2023-05-29 19:29:53 +05:30
Balakrishna Godavarthi
4ad148c189 btfmcodec: fix compilation issue
This change will protect btfm_slim_unregister_codec under
a compile time flag. With out which a compilation issue is
observed when btfmcodec driver is selected.

Change-Id: I7fd85904c39efefd9d9819c83591098c16fc793b
2023-05-25 15:21:58 +05:30
Balakrishna Godavarthi
55b61275af btfmslim: Update DAI names to have Uniformity
This changes update below DAI names to have Uniformity across
multiple transports.

BTFM_BT_SCO_SLIM_TX  -> BTAUDIO_TX
BTFM_BT_SCO_A2DP_SLIM_RX -> BTAUDIO_RX

Change-Id: Ie43cb8d19c3f8520f79abf9022c7b44dc644e70f
2023-05-25 15:21:24 +05:30