diff --git a/subsys/bluetooth/audio/Kconfig.baps b/subsys/bluetooth/audio/Kconfig.baps index c6013d3f5ae..5782c446d23 100644 --- a/subsys/bluetooth/audio/Kconfig.baps +++ b/subsys/bluetooth/audio/Kconfig.baps @@ -273,6 +273,11 @@ legacy-debug-sym = BT_AUDIO_DEBUG_STREAM module-str = "Bluetooth Audio Stream" source "subsys/bluetooth/common/Kconfig.template.log_config_bt" +parent-module = BT +module = BT_AUDIO_CODEC +module-str = "Bluetooth Audio Codec" +source "subsys/logging/Kconfig.template.log_config_inherit" + config BT_AUDIO_DEBUG_STREAM_DATA bool "Bluetooth Audio Stream data debug" depends on BT_AUDIO_STREAM_LOG_LEVEL_DBG diff --git a/subsys/bluetooth/audio/codec.c b/subsys/bluetooth/audio/codec.c index c6815b12d1a..59b82539f37 100644 --- a/subsys/bluetooth/audio/codec.c +++ b/subsys/bluetooth/audio/codec.c @@ -16,7 +16,7 @@ #include -LOG_MODULE_REGISTER(bt_audio, LOG_LEVEL_DBG); +LOG_MODULE_REGISTER(bt_audio_codec, CONFIG_BT_AUDIO_CODEC_LOG_LEVEL); bool bt_codec_get_val(const struct bt_codec *codec, uint8_t type, diff --git a/tests/bluetooth/bsim_bt/bsim_test_audio/prj.conf b/tests/bluetooth/bsim_bt/bsim_test_audio/prj.conf index d927cd4549f..a7305b25cca 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_audio/prj.conf +++ b/tests/bluetooth/bsim_bt/bsim_test_audio/prj.conf @@ -142,6 +142,7 @@ CONFIG_BT_ASCS_LOG_LEVEL_DBG=y CONFIG_BT_PACS_LOG_LEVEL_DBG=y CONFIG_BT_AUDIO_STREAM_LOG_LEVEL_DBG=y CONFIG_BT_AUDIO_ISO_LOG_LEVEL_DBG=y +CONFIG_BT_AUDIO_CODEC_LOG_LEVEL_DBG=y CONFIG_BT_BAP_SCAN_DELEGATOR_LOG_LEVEL_DBG=y CONFIG_BT_BAP_BROADCAST_ASSISTANT_LOG_LEVEL_DBG=y CONFIG_BT_HAS_LOG_LEVEL_DBG=y diff --git a/tests/bluetooth/shell/audio.conf b/tests/bluetooth/shell/audio.conf index 68c1d45cbd8..9d2166d18e2 100644 --- a/tests/bluetooth/shell/audio.conf +++ b/tests/bluetooth/shell/audio.conf @@ -169,4 +169,5 @@ CONFIG_BT_AICS_LOG_LEVEL_DBG=y CONFIG_BT_VOCS_LOG_LEVEL_DBG=y CONFIG_BT_AUDIO_STREAM_LOG_LEVEL_DBG=y CONFIG_BT_AUDIO_ISO_LOG_LEVEL_DBG=y +CONFIG_BT_AUDIO_CODEC_LOG_LEVEL_DBG=y CONFIG_BT_CSIP_SET_COORDINATOR_LOG_LEVEL_DBG=y