Lines Matching refs:indent
251 size_t indent; member
258 const size_t elem_indent = ltv_info->indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_ltv_elem()
260 shell_print(ltv_info->sh, "%*s#%zu: type 0x%02x value_len %u", ltv_info->indent, "", in print_ltv_elem()
276 static void print_ltv_array(const struct shell *sh, size_t indent, const uint8_t *ltv_data, in print_ltv_array() argument
282 .indent = indent, in print_ltv_array()
288 shell_error(sh, "%*sInvalid LTV data: %d", indent, "", err); in print_ltv_array()
292 static inline void print_codec_meta_pref_context(const struct shell *sh, size_t indent, in print_codec_meta_pref_context() argument
295 shell_print(sh, "%*sPreferred audio contexts:", indent, ""); in print_codec_meta_pref_context()
297 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_meta_pref_context()
304 shell_print(sh, "%*s%s (0x%04X)", indent, "", in print_codec_meta_pref_context()
310 static inline void print_codec_meta_stream_context(const struct shell *sh, size_t indent, in print_codec_meta_stream_context() argument
313 shell_print(sh, "%*sStreaming audio contexts:", indent, ""); in print_codec_meta_stream_context()
315 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_meta_stream_context()
322 shell_print(sh, "%*s%s (0x%04X)", indent, "", in print_codec_meta_stream_context()
328 static inline void print_codec_meta_program_info(const struct shell *sh, size_t indent, in print_codec_meta_program_info() argument
332 shell_print(sh, "%*sProgram info:", indent, ""); in print_codec_meta_program_info()
334 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_meta_program_info()
336 shell_fprintf(sh, SHELL_NORMAL, "%*s", indent, ""); in print_codec_meta_program_info()
344 static inline void print_codec_meta_language(const struct shell *sh, size_t indent, in print_codec_meta_language() argument
347 shell_print(sh, "%*sLanguage: %c%c%c", indent, "", (char)lang[0], (char)lang[1], in print_codec_meta_language()
351 static inline void print_codec_meta_ccid_list(const struct shell *sh, size_t indent, in print_codec_meta_ccid_list() argument
354 shell_print(sh, "%*sCCID list:", indent, ""); in print_codec_meta_ccid_list()
356 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_meta_ccid_list()
360 shell_print(sh, "%*s0x%02X ", indent, "", ccid_list[i]); in print_codec_meta_ccid_list()
364 static inline void print_codec_meta_parental_rating(const struct shell *sh, size_t indent, in print_codec_meta_parental_rating() argument
367 shell_print(sh, "%*sRating: %s (0x%02X)", indent, "", in print_codec_meta_parental_rating()
371 static inline void print_codec_meta_program_info_uri(const struct shell *sh, size_t indent, in print_codec_meta_program_info_uri() argument
375 shell_print(sh, "%*sProgram info URI:", indent, ""); in print_codec_meta_program_info_uri()
377 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_meta_program_info_uri()
379 shell_fprintf(sh, SHELL_NORMAL, "%*s", indent, ""); in print_codec_meta_program_info_uri()
388 static inline void print_codec_meta_audio_active_state(const struct shell *sh, size_t indent, in print_codec_meta_audio_active_state() argument
391 shell_print(sh, "%*sAudio active state: %s (0x%02X)", indent, "", in print_codec_meta_audio_active_state()
396 size_t indent) in print_codec_meta_bcast_audio_immediate_rend_flag() argument
398 shell_print(sh, "%*sBroadcast audio immediate rendering flag set", indent, ""); in print_codec_meta_bcast_audio_immediate_rend_flag()
401 static inline void print_codec_meta_extended(const struct shell *sh, size_t indent, in print_codec_meta_extended() argument
404 shell_print(sh, "%*sExtended metadata:", indent, ""); in print_codec_meta_extended()
406 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_meta_extended()
408 shell_fprintf(sh, SHELL_NORMAL, "%*s", indent, ""); in print_codec_meta_extended()
417 static inline void print_codec_meta_vendor(const struct shell *sh, size_t indent, in print_codec_meta_vendor() argument
420 shell_print(sh, "%*sVendor metadata:", indent, ""); in print_codec_meta_vendor()
422 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_meta_vendor()
424 shell_fprintf(sh, SHELL_NORMAL, "%*s", indent, ""); in print_codec_meta_vendor()
433 static inline void print_codec_cap_freq(const struct shell *sh, size_t indent, in print_codec_cap_freq() argument
436 shell_print(sh, "%*sSupported sampling frequencies:", indent, ""); in print_codec_cap_freq()
438 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap_freq()
444 shell_print(sh, "%*s%s (0x%04X)", indent, "", in print_codec_cap_freq()
450 static inline void print_codec_cap_frame_dur(const struct shell *sh, size_t indent, in print_codec_cap_frame_dur() argument
453 shell_print(sh, "%*sSupported frame durations:", indent, ""); in print_codec_cap_frame_dur()
455 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap_frame_dur()
461 shell_print(sh, "%*s%s (0x%02X)", indent, "", in print_codec_cap_frame_dur()
467 static inline void print_codec_cap_chan_count(const struct shell *sh, size_t indent, in print_codec_cap_chan_count() argument
470 shell_print(sh, "%*sSupported channel counts:", indent, ""); in print_codec_cap_chan_count()
472 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap_chan_count()
478 shell_print(sh, "%*s%s (0x%02X)", indent, "", in print_codec_cap_chan_count()
485 const struct shell *sh, size_t indent, in print_codec_cap_octets_per_codec_frame() argument
488 shell_print(sh, "%*sSupported octets per codec frame counts:", indent, ""); in print_codec_cap_octets_per_codec_frame()
490 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap_octets_per_codec_frame()
491 shell_print(sh, "%*sMin: %u", indent, "", codec_frame->min); in print_codec_cap_octets_per_codec_frame()
492 shell_print(sh, "%*sMax: %u", indent, "", codec_frame->max); in print_codec_cap_octets_per_codec_frame()
495 static inline void print_codec_cap_max_codec_frames_per_sdu(const struct shell *sh, size_t indent, in print_codec_cap_max_codec_frames_per_sdu() argument
498 shell_print(sh, "%*sSupported max codec frames per SDU: %u", indent, "", in print_codec_cap_max_codec_frames_per_sdu()
502 static inline void print_codec_cap(const struct shell *sh, size_t indent, in print_codec_cap() argument
505 shell_print(sh, "%*scodec cap id 0x%02x cid 0x%04x vid 0x%04x", indent, "", codec_cap->id, in print_codec_cap()
508 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap()
511 shell_print(sh, "%*sCodec specific capabilities:", indent, ""); in print_codec_cap()
513 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap()
515 shell_print(sh, "%*sNone", indent, ""); in print_codec_cap()
522 print_codec_cap_freq(sh, indent, (enum bt_audio_codec_cap_freq)ret); in print_codec_cap()
527 print_codec_cap_frame_dur(sh, indent, in print_codec_cap()
533 print_codec_cap_chan_count(sh, indent, in print_codec_cap()
539 print_codec_cap_octets_per_codec_frame(sh, indent, &codec_frame); in print_codec_cap()
544 print_codec_cap_max_codec_frames_per_sdu(sh, indent, (uint8_t)ret); in print_codec_cap()
547 shell_fprintf(sh, SHELL_NORMAL, "%*s", indent, ""); in print_codec_cap()
550 shell_fprintf(sh, SHELL_NORMAL, "%*s%02X", indent, "", codec_cap->data[i]); in print_codec_cap()
557 indent -= SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap()
561 shell_print(sh, "%*sCodec capabilities metadata:", indent, ""); in print_codec_cap()
563 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cap()
565 shell_print(sh, "%*sNone", indent, ""); in print_codec_cap()
572 print_codec_meta_pref_context(sh, indent, (enum bt_audio_context)ret); in print_codec_cap()
577 print_codec_meta_stream_context(sh, indent, (enum bt_audio_context)ret); in print_codec_cap()
582 print_codec_meta_program_info(sh, indent, data, (uint8_t)ret); in print_codec_cap()
587 print_codec_meta_language(sh, indent, data); in print_codec_cap()
592 print_codec_meta_ccid_list(sh, indent, data, (uint8_t)ret); in print_codec_cap()
597 print_codec_meta_parental_rating(sh, indent, in print_codec_cap()
603 print_codec_meta_audio_active_state(sh, indent, in print_codec_cap()
609 print_codec_meta_bcast_audio_immediate_rend_flag(sh, indent); in print_codec_cap()
614 print_codec_meta_extended(sh, indent, data, (uint8_t)ret); in print_codec_cap()
619 print_codec_meta_vendor(sh, indent, data, (uint8_t)ret); in print_codec_cap()
625 static inline void print_codec_cfg_freq(const struct shell *sh, size_t indent, in print_codec_cfg_freq() argument
628 shell_print(sh, "%*sSampling frequency: %u Hz (0x%04X)", indent, "", in print_codec_cfg_freq()
632 static inline void print_codec_cfg_frame_dur(const struct shell *sh, size_t indent, in print_codec_cfg_frame_dur() argument
635 shell_print(sh, "%*sFrame duration: %u us (0x%02X)", indent, "", in print_codec_cfg_frame_dur()
639 static inline void print_codec_cfg_chan_allocation(const struct shell *sh, size_t indent, in print_codec_cfg_chan_allocation() argument
642 shell_print(sh, "%*sChannel allocation:", indent, ""); in print_codec_cfg_chan_allocation()
644 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cfg_chan_allocation()
647 shell_print(sh, "%*s Mono", indent, ""); in print_codec_cfg_chan_allocation()
654 shell_print(sh, "%*s%s (0x%08X)", indent, "", in print_codec_cfg_chan_allocation()
661 static inline void print_codec_cfg_octets_per_frame(const struct shell *sh, size_t indent, in print_codec_cfg_octets_per_frame() argument
664 shell_print(sh, "%*sOctets per codec frame: %u", indent, "", octets_per_frame); in print_codec_cfg_octets_per_frame()
667 static inline void print_codec_cfg_frame_blocks_per_sdu(const struct shell *sh, size_t indent, in print_codec_cfg_frame_blocks_per_sdu() argument
670 shell_print(sh, "%*sCodec frame blocks per SDU: %u", indent, "", frame_blocks_per_sdu); in print_codec_cfg_frame_blocks_per_sdu()
673 static inline void print_codec_cfg(const struct shell *sh, size_t indent, in print_codec_cfg() argument
676 shell_print(sh, "%*scodec cfg id 0x%02x cid 0x%04x vid 0x%04x count %u", indent, "", in print_codec_cfg()
679 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cfg()
682 shell_print(sh, "%*sCodec specific configuration:", indent, ""); in print_codec_cfg()
684 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cfg()
686 shell_print(sh, "%*sNone", indent, ""); in print_codec_cfg()
693 print_codec_cfg_freq(sh, indent, (enum bt_audio_codec_cfg_freq)ret); in print_codec_cfg()
698 print_codec_cfg_frame_dur(sh, indent, in print_codec_cfg()
704 print_codec_cfg_chan_allocation(sh, indent, chan_allocation); in print_codec_cfg()
709 print_codec_cfg_octets_per_frame(sh, indent, (uint16_t)ret); in print_codec_cfg()
714 print_codec_cfg_frame_blocks_per_sdu(sh, indent, (uint8_t)ret); in print_codec_cfg()
717 shell_fprintf(sh, SHELL_NORMAL, "%*s", indent, ""); in print_codec_cfg()
720 shell_fprintf(sh, SHELL_NORMAL, "%*s%02X", indent, "", codec_cfg->data[i]); in print_codec_cfg()
727 indent -= SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cfg()
731 shell_print(sh, "%*sCodec specific metadata:", indent, ""); in print_codec_cfg()
733 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_codec_cfg()
735 shell_print(sh, "%*sNone", indent, ""); in print_codec_cfg()
742 print_codec_meta_pref_context(sh, indent, (enum bt_audio_context)ret); in print_codec_cfg()
747 print_codec_meta_stream_context(sh, indent, (enum bt_audio_context)ret); in print_codec_cfg()
752 print_codec_meta_program_info(sh, indent, data, (uint8_t)ret); in print_codec_cfg()
757 print_codec_meta_language(sh, indent, data); in print_codec_cfg()
762 print_codec_meta_ccid_list(sh, indent, data, (uint8_t)ret); in print_codec_cfg()
767 print_codec_meta_parental_rating(sh, indent, in print_codec_cfg()
773 print_codec_meta_audio_active_state(sh, indent, in print_codec_cfg()
779 print_codec_meta_bcast_audio_immediate_rend_flag(sh, indent); in print_codec_cfg()
784 print_codec_meta_extended(sh, indent, data, (uint8_t)ret); in print_codec_cfg()
789 print_codec_meta_vendor(sh, indent, data, (uint8_t)ret); in print_codec_cfg()
813 size_t indent = 2 * SHELL_PRINT_INDENT_LEVEL_SIZE; in print_base_subgroup_bis_cb() local
816 shell_print(ctx_shell, "%*sBIS index: 0x%02X", indent, "", bis->index); in print_base_subgroup_bis_cb()
818 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_base_subgroup_bis_cb()
831 print_codec_cfg(ctx_shell, indent, &codec_cfg); in print_base_subgroup_bis_cb()
833 shell_print(ctx_shell, "%*sCodec specific configuration:", indent, ""); in print_base_subgroup_bis_cb()
834 print_ltv_array(ctx_shell, indent, bis->data, bis->data_len); in print_base_subgroup_bis_cb()
837 shell_print(ctx_shell, "%*sCodec specific configuration:", indent, ""); in print_base_subgroup_bis_cb()
839 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_base_subgroup_bis_cb()
840 shell_fprintf(ctx_shell, SHELL_NORMAL, "%*s", indent, ""); in print_base_subgroup_bis_cb()
855 size_t indent = 1 * SHELL_PRINT_INDENT_LEVEL_SIZE; in print_base_subgroup_cb() local
868 shell_print(ctx_shell, "%*sCodec Format: 0x%02X", indent, "", codec_id.id); in print_base_subgroup_cb()
869 shell_print(ctx_shell, "%*sCompany ID : 0x%04X", indent, "", codec_id.cid); in print_base_subgroup_cb()
870 shell_print(ctx_shell, "%*sVendor ID : 0x%04X", indent, "", codec_id.vid); in print_base_subgroup_cb()
874 print_codec_cfg(ctx_shell, indent, &codec_cfg); in print_base_subgroup_cb()
882 shell_print(ctx_shell, "%*sCodec specific configuration:", indent, ""); in print_base_subgroup_cb()
883 indent += SHELL_PRINT_INDENT_LEVEL_SIZE; in print_base_subgroup_cb()
887 print_ltv_array(ctx_shell, indent, data, (uint8_t)ret); in print_base_subgroup_cb()
889 shell_fprintf(ctx_shell, SHELL_NORMAL, "%*s", indent, ""); in print_base_subgroup_cb()
904 "%*sCodec specific metadata:", indent - SHELL_PRINT_INDENT_LEVEL_SIZE, in print_base_subgroup_cb()
909 print_ltv_array(ctx_shell, indent, data, (uint8_t)ret); in print_base_subgroup_cb()
911 shell_fprintf(ctx_shell, SHELL_NORMAL, "%*s", indent, ""); in print_base_subgroup_cb()