profiles/audio/ccp: Add initial code for ccp plugin
Subsystems (2)
PATCH 1/1 profiles/audio/ccp: Add initial code for ccp plugin
This adds initial code for ccp plugin which handle call control profile and Telephone Bearer Services and Generic Telephone Bearer Services for client role.
--- Makefile.plugins | 5 + configure.ac | 4 + profiles/audio/ccp.c | 238 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 247 insertions(+) create mode 100644 profiles/audio/ccp.c
Makefile.plugins +5 -0
@@ -138,6 +138,11 @@ builtin_modules += micp builtin_sources += profiles/audio/micp.c endif +if CCP +builtin_modules += ccp +builtin_sources += profiles/audio/ccp.c +endif + if CSIP builtin_modules += csip builtin_sources += profiles/audio/csip.c
configure.ac +4 -0
@@ -200,6 +200,10 @@ AC_ARG_ENABLE(mcp, AS_HELP_STRING([--disable-mcp], [disable MCP profile]), [enable_mcp=${enableval}]) AM_CONDITIONAL(MCP, test "${enable_mcp}" != "no") +AC_ARG_ENABLE(ccp, AS_HELP_STRING([--disable-ccp], + [disable CCP profile]), [enable_ccp=${enableval}]) +AM_CONDITIONAL(CCP, test "${enable_ccp}" != "no") + AC_ARG_ENABLE(vcp, AS_HELP_STRING([--disable-vcp], [disable VCP profile]), [enable_vcp=${enableval}]) AM_CONDITIONAL(VCP, test "${enable_vcp}" != "no")
profiles/audio/ccp.c new file +238 -0
238 lines not on this page · raw message
Signature · 1 line
2.34.1
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=826656
---Test result---
Test Summary:
CheckPatch FAIL 0.72 seconds GitLint PASS 0.28 seconds BuildEll PASS 24.21 seconds BluezMake PASS 750.96 seconds MakeCheck PASS 11.61 seconds MakeDistcheck PASS 167.44 seconds CheckValgrind PASS 235.84 seconds CheckSmatch PASS 340.89 seconds bluezmakeextell PASS 110.94 seconds IncrementalBuild PASS 696.23 seconds ScanBuild WARNING 1007.00 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[v1] profiles/audio/ccp: Add initial code for ccp plugin WARNING:LONG_LINE: line length of 129 exceeds 80 columns #218: FILE: profiles/audio/ccp.c:100:
+ btd_device_get_gatt_db(device));
WARNING:LONG_LINE: line length of 93 exceeds 80 columns #313: FILE: profiles/audio/ccp.c:195:
+ struct btd_adapter *adapter)
WARNING:LONG_LINE: line length of 100 exceeds 80 columns #324: FILE: profiles/audio/ccp.c:206:
+ struct btd_adapter *adapter)
WARNING:LONG_LINE: line length of 115 exceeds 80 columns #356: FILE: profiles/audio/ccp.c:238:
+ ccp_init, ccp_exit)
/github/workspace/src/src/13559560.patch total: 0 errors, 4 warnings, 259 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/github/workspace/src/src/13559560.patch has style problems, please review.
NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
##############################
Test: ScanBuild - WARNING
Desc: Run Scan Build
Output:
Makefile:13722: warning: overriding recipe for target 'install-data-hook' Makefile:13717: warning: ignoring old recipe for target 'install-data-hook' Makefile:13722: warning: overriding recipe for target 'install-data-hook' Makefile:13717: warning: ignoring old recipe for target 'install-data-hook' src/shared/gatt-client.c:451:21: warning: Use of memory after it is freed
gatt_db_unregister(op->client->db, op->db_id);
^~~~~~~~~~
src/shared/gatt-client.c:696:2: warning: Use of memory after it is freed
discovery_op_complete(op, false, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:993:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1099:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1291:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1356:2: warning: Use of memory after it is freed
discovery_op_complete(op, success, att_ecode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1631:6: warning: Use of memory after it is freed
if (read_db_hash(op)) {
^~~~~~~~~~~~~~~~
src/shared/gatt-client.c:1636:2: warning: Use of memory after it is freed
discover_all(op);
^~~~~~~~~~~~~~~~
src/shared/gatt-client.c:2140:6: warning: Use of memory after it is freed
if (read_db_hash(op)) {
^~~~~~~~~~~~~~~~
src/shared/gatt-client.c:2148:8: warning: Use of memory after it is freed
discovery_op_ref(op),
^~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:3237:2: warning: Use of memory after it is freed
complete_write_long_op(req, success, 0, false);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/shared/gatt-client.c:3259:2: warning: Use of memory after it is freed
request_unref(req);
^~~~~~~~~~~~~~~~~~12 warnings generated.
---
Regards,
Linux Bluetooth