• Home
  • Raw
  • Download

Lines Matching refs:pcm

216     tBTIF_AV_MEDIA_FEEDINGS_PCM_STATE pcm;  member
804 media_feeding.cfg.pcm.sampling_freq = 44100; in btif_a2dp_setup_codec()
805 media_feeding.cfg.pcm.bit_per_sample = 16; in btif_a2dp_setup_codec()
806 media_feeding.cfg.pcm.num_channel = 2; in btif_a2dp_setup_codec()
1581 btif_media_cb.media_feeding_state.pcm.counter = 0; in btif_media_task_aa_tx_flush()
1582 btif_media_cb.media_feeding_state.pcm.aa_feed_residue = 0; in btif_media_task_aa_tx_flush()
1799 APPL_TRACE_DEBUG("sampling_freq:%d", p_feeding->feeding.cfg.pcm.sampling_freq); in btif_media_task_pcm2sbc_init()
1800 APPL_TRACE_DEBUG("num_channel:%d", p_feeding->feeding.cfg.pcm.num_channel); in btif_media_task_pcm2sbc_init()
1801 APPL_TRACE_DEBUG("bit_per_sample:%d", p_feeding->feeding.cfg.pcm.bit_per_sample); in btif_media_task_pcm2sbc_init()
1804 switch (p_feeding->feeding.cfg.pcm.sampling_freq) in btif_media_task_pcm2sbc_init()
2123 btif_media_cb.media_feeding_state.pcm.bytes_per_tick = in btif_media_task_feeding_state_reset()
2124 (btif_media_cb.media_feeding.cfg.pcm.sampling_freq * in btif_media_task_feeding_state_reset()
2125 btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8 * in btif_media_task_feeding_state_reset()
2126 btif_media_cb.media_feeding.cfg.pcm.num_channel * in btif_media_task_feeding_state_reset()
2130 (int)btif_media_cb.media_feeding_state.pcm.bytes_per_tick); in btif_media_task_feeding_state_reset()
2237 btif_media_cb.media_feeding.cfg.pcm.num_channel * in btif_get_num_aa_frame()
2238 btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8; in btif_get_num_aa_frame()
2246 btif_media_cb.media_feeding_state.pcm.counter += in btif_get_num_aa_frame()
2247 btif_media_cb.media_feeding_state.pcm.bytes_per_tick * in btif_get_num_aa_frame()
2251 result = btif_media_cb.media_feeding_state.pcm.counter/pcm_bytes_per_frame; in btif_get_num_aa_frame()
2258 btif_media_cb.media_feeding_state.pcm.counter -= result*pcm_bytes_per_frame; in btif_get_num_aa_frame()
2350 btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8; in btif_media_aa_read_feeding()
2379 if (sbc_sampling == btif_media_cb.media_feeding.cfg.pcm.sampling_freq) { in btif_media_aa_read_feeding()
2380 read_size = bytes_needed - btif_media_cb.media_feeding_state.pcm.aa_feed_residue; in btif_media_aa_read_feeding()
2383 btif_media_cb.media_feeding_state.pcm.aa_feed_residue, in btif_media_aa_read_feeding()
2386 btif_media_cb.media_feeding_state.pcm.aa_feed_residue = 0; in btif_media_aa_read_feeding()
2391 btif_media_cb.media_feeding_state.pcm.aa_feed_residue += nb_byte_read; in btif_media_aa_read_feeding()
2400 switch (btif_media_cb.media_feeding.cfg.pcm.sampling_freq) in btif_media_aa_read_feeding()
2417 src_samples *= btif_media_cb.media_feeding.cfg.pcm.sampling_freq; in btif_media_aa_read_feeding()
2423 if (btif_media_cb.media_feeding_state.pcm.aa_feed_counter <= fract_threshold) in btif_media_aa_read_feeding()
2429 btif_media_cb.media_feeding_state.pcm.aa_feed_counter++; /* one more read */ in btif_media_aa_read_feeding()
2430 if (btif_media_cb.media_feeding_state.pcm.aa_feed_counter > fract_max) in btif_media_aa_read_feeding()
2432 btif_media_cb.media_feeding_state.pcm.aa_feed_counter = 0; in btif_media_aa_read_feeding()
2438 read_size *= btif_media_cb.media_feeding.cfg.pcm.num_channel; in btif_media_aa_read_feeding()
2439 read_size *= (btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8); in btif_media_aa_read_feeding()
2463 bta_av_sbc_init_up_sample(btif_media_cb.media_feeding.cfg.pcm.sampling_freq, in btif_media_aa_read_feeding()
2464 sbc_sampling, btif_media_cb.media_feeding.cfg.pcm.bit_per_sample, in btif_media_aa_read_feeding()
2465 btif_media_cb.media_feeding.cfg.pcm.num_channel); in btif_media_aa_read_feeding()
2470 (UINT8 *)up_sampled_buffer + btif_media_cb.media_feeding_state.pcm.aa_feed_residue, in btif_media_aa_read_feeding()
2472 sizeof(up_sampled_buffer) - btif_media_cb.media_feeding_state.pcm.aa_feed_residue, in btif_media_aa_read_feeding()
2476 btif_media_cb.media_feeding_state.pcm.aa_feed_residue += dst_size_used; in btif_media_aa_read_feeding()
2479 if(btif_media_cb.media_feeding_state.pcm.aa_feed_residue >= bytes_needed) in btif_media_aa_read_feeding()
2486 btif_media_cb.media_feeding_state.pcm.aa_feed_residue -= bytes_needed; in btif_media_aa_read_feeding()
2488 if (btif_media_cb.media_feeding_state.pcm.aa_feed_residue != 0) in btif_media_aa_read_feeding()
2492 btif_media_cb.media_feeding_state.pcm.aa_feed_residue); in btif_media_aa_read_feeding()
2552 nb_frame, btif_media_cb.media_feeding_state.pcm.aa_feed_residue); in btif_media_aa_prep_sbc_2_send()
2553 btif_media_cb.media_feeding_state.pcm.counter += nb_frame * in btif_media_aa_prep_sbc_2_send()
2556 btif_media_cb.media_feeding.cfg.pcm.num_channel * in btif_media_aa_prep_sbc_2_send()
2557 btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8; in btif_media_aa_prep_sbc_2_send()