Lines Matching refs:frame_dur

99 int bt_audio_codec_cfg_frame_dur_to_frame_dur_us(enum bt_audio_codec_cfg_frame_dur frame_dur)  in bt_audio_codec_cfg_frame_dur_to_frame_dur_us()  argument
101 switch (frame_dur) { in bt_audio_codec_cfg_frame_dur_to_frame_dur_us()
426 enum bt_audio_codec_cfg_frame_dur frame_dur; in bt_audio_codec_cfg_get_frame_dur() local
444 frame_dur = data[0]; in bt_audio_codec_cfg_get_frame_dur()
445 if (bt_audio_codec_cfg_frame_dur_to_frame_dur_us(frame_dur) < 0) { in bt_audio_codec_cfg_get_frame_dur()
446 LOG_DBG("Invalid frame_dur value: 0x%02X", frame_dur); in bt_audio_codec_cfg_get_frame_dur()
450 return frame_dur; in bt_audio_codec_cfg_get_frame_dur()
454 enum bt_audio_codec_cfg_frame_dur frame_dur) in bt_audio_codec_cfg_set_frame_dur() argument
458 if (bt_audio_codec_cfg_frame_dur_to_frame_dur_us(frame_dur) < 0) { in bt_audio_codec_cfg_set_frame_dur()
459 LOG_DBG("Invalid freq value: %d", frame_dur); in bt_audio_codec_cfg_set_frame_dur()
463 frame_dur_u8 = (uint8_t)frame_dur; in bt_audio_codec_cfg_set_frame_dur()
1978 enum bt_audio_codec_cap_frame_dur frame_dur) in bt_audio_codec_cap_set_frame_dur() argument
1987 if ((frame_dur & BT_AUDIO_CODEC_CAP_DURATION_ANY) == 0) { in bt_audio_codec_cap_set_frame_dur()
1988 LOG_DBG("Invalid frame_dur value: %d", frame_dur); in bt_audio_codec_cap_set_frame_dur()
1992 if ((frame_dur & BT_AUDIO_CODEC_CAP_DURATION_PREFER_7_5) != 0) { in bt_audio_codec_cap_set_frame_dur()
1993 if ((frame_dur & BT_AUDIO_CODEC_CAP_DURATION_PREFER_10) != 0) { in bt_audio_codec_cap_set_frame_dur()
1994 LOG_DBG("Cannot prefer both 7.5 and 10ms: %d", frame_dur); in bt_audio_codec_cap_set_frame_dur()
1998 if ((frame_dur & BT_AUDIO_CODEC_CAP_DURATION_7_5) == 0) { in bt_audio_codec_cap_set_frame_dur()
1999 LOG_DBG("Cannot prefer 7.5ms when not supported: %d", frame_dur); in bt_audio_codec_cap_set_frame_dur()
2004 if ((frame_dur & BT_AUDIO_CODEC_CAP_DURATION_PREFER_10) != 0 && in bt_audio_codec_cap_set_frame_dur()
2005 (frame_dur & BT_AUDIO_CODEC_CAP_DURATION_10) == 0) { in bt_audio_codec_cap_set_frame_dur()
2006 LOG_DBG("Cannot prefer 10ms when not supported: %d", frame_dur); in bt_audio_codec_cap_set_frame_dur()
2010 frame_dur_u8 = (uint8_t)frame_dur; in bt_audio_codec_cap_set_frame_dur()