/external/adhd/cras/src/server/ |
D | cras_iodev.c | 72 static int default_no_stream_playback(struct cras_iodev *odev) in default_no_stream_playback() argument 76 unsigned int target_hw_level = odev->min_cb_level * 2; in default_no_stream_playback() 80 rc = cras_iodev_frames_queued(odev, &hw_tstamp); in default_no_stream_playback() 87 rc = cras_iodev_output_underrun(odev, hw_level, 0); in default_no_stream_playback() 91 rc = cras_iodev_frames_queued(odev, &hw_tstamp); in default_no_stream_playback() 97 ATLOG(atlog, AUDIO_THREAD_ODEV_DEFAULT_NO_STREAMS, odev->info.idx, in default_no_stream_playback() 100 fr_to_write = cras_iodev_buffer_avail(odev, hw_level); in default_no_stream_playback() 103 return cras_iodev_fill_odev_zeros(odev, fr_to_write); in default_no_stream_playback() 129 static unsigned int dev_playback_frames(struct cras_iodev *odev) in dev_playback_frames() argument 134 DL_FOREACH (odev->streams, curr) { in dev_playback_frames() [all …]
|
D | dev_io.c | 83 struct open_dev *odev; in update_estimated_rate() local 84 DL_FOREACH (odev_list, odev) { in update_estimated_rate() 86 odev->dev->active_node)) in update_estimated_rate() 88 if (odev->dev->format->frame_rate != in update_estimated_rate() 91 tracked_dev = odev->dev; in update_estimated_rate() 198 struct cras_iodev *odev = adev->dev; in fetch_streams() local 202 delay = cras_iodev_delay_frames(odev); in fetch_streams() 651 struct cras_iodev *odev = adev->dev; in write_streams() local 654 unsigned int frame_bytes = cras_get_format_bytes(odev->format); in write_streams() 659 max_offset = cras_iodev_max_stream_offset(odev); in write_streams() [all …]
|
D | cras_iodev.h | 274 int (*get_valid_frames)(struct cras_iodev *odev, 665 int cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames); 674 cras_iodev_default_frames_to_play_in_sleep(struct cras_iodev *odev, 686 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev *odev, 696 int cras_iodev_odev_should_wake(const struct cras_iodev *odev); 709 int cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable); 728 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev); 778 int cras_iodev_output_underrun(struct cras_iodev *odev, unsigned int hw_level, 789 int cras_iodev_start_ramp(struct cras_iodev *odev, 800 int cras_iodev_start_volume_ramp(struct cras_iodev *odev, [all …]
|
D | cras_alsa_io.c | 1817 static int adjust_appl_ptr_for_leaving_free_run(struct cras_iodev *odev) in adjust_appl_ptr_for_leaving_free_run() argument 1819 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr_for_leaving_free_run() 1822 ahead = odev->min_buffer_level + odev->min_cb_level; in adjust_appl_ptr_for_leaving_free_run() 1830 static int adjust_appl_ptr_for_underrun(struct cras_iodev *odev) in adjust_appl_ptr_for_underrun() argument 1832 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr_for_underrun() 1835 ahead = odev->min_buffer_level + odev->min_cb_level + in adjust_appl_ptr_for_underrun() 1836 odev->min_cb_level / 2; in adjust_appl_ptr_for_underrun() 1844 static int adjust_appl_ptr_samples_remaining(struct cras_iodev *odev) in adjust_appl_ptr_samples_remaining() argument 1846 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr_samples_remaining() 1855 rc = odev->frames_queued(odev, &hw_tstamp); in adjust_appl_ptr_samples_remaining() [all …]
|
D | cras_hfp_ag_profile.c | 95 struct cras_iodev *odev; member 124 if (ag->odev) in destroy_audio_gateway() 125 hfp_alsa_iodev_destroy(ag->odev); in destroy_audio_gateway() 129 if (ag->odev) in destroy_audio_gateway() 130 hfp_iodev_destroy(ag->odev); in destroy_audio_gateway() 411 ag->odev = hfp_alsa_iodev_create(out_aio, ag->device, in cras_hfp_ag_start() 419 ag->odev = in cras_hfp_ag_start() 424 if (!ag->idev && !ag->odev) { in cras_hfp_ag_start()
|
D | cras_apm_list.c | 132 struct cras_iodev *odev; member 294 if (rmodule->odev) { in cras_apm_list_add_apm() 296 cras_iodev_is_aec_use_case(rmodule->odev->active_node); in cras_apm_list_add_apm() 423 if (rmodule->odev == echo_ref) in update_first_output_dev_to_process() 427 if (rmodule->odev) { in update_first_output_dev_to_process() 428 cras_iodev_set_ext_dsp_module(rmodule->odev, NULL); in update_first_output_dev_to_process() 429 rmodule->odev = NULL; in update_first_output_dev_to_process() 432 rmodule->odev = echo_ref; in update_first_output_dev_to_process() 454 if (rmodule->odev == echo_ref) { in handle_device_disabled() 456 rmodule->odev = NULL; in handle_device_disabled()
|
D | cras_a2dp_iodev.c | 178 struct cras_iodev *odev = &a2dpio->base; in enter_no_stream() local 185 rc = fill_zeros_to_target_level(odev, 3 * odev->min_buffer_level); in enter_no_stream() 188 return encode_and_flush(odev); in enter_no_stream() 198 struct cras_iodev *odev = &a2dpio->base; in leave_no_stream() local 205 return fill_zeros_to_target_level(odev, 2 * odev->min_buffer_level); in leave_no_stream() 214 static int no_stream(struct cras_iodev *odev, int enable) in no_stream() argument 216 struct a2dp_io *a2dpio = (struct a2dp_io *)odev; in no_stream()
|
D | cras_bt_device.c | 484 struct cras_iodev *odev = device->bt_iodevs[CRAS_STREAM_OUTPUT]; in cras_bt_device_has_a2dp() local 487 return odev && in cras_bt_device_has_a2dp() 488 cras_bt_io_get_profile(odev, CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE); in cras_bt_device_has_a2dp()
|
D | audio_thread.c | 259 static void fill_odevs_zeros_min_level(struct cras_iodev *odev) in fill_odevs_zeros_min_level() argument 261 cras_iodev_fill_odev_zeros(odev, odev->min_buffer_level); in fill_odevs_zeros_min_level()
|
/external/iputils/Modules/ |
D | pg3.c | 149 struct net_device *odev; in pg_setup_inject() local 153 odev = __dev_get_by_name(pg_outdev); in pg_setup_inject() 154 if (!odev) { in pg_setup_inject() 159 if (odev->type != ARPHRD_ETHER) { in pg_setup_inject() 164 if (!netif_running(odev)) { in pg_setup_inject() 169 for(p1=6,p2=0; p1 < odev->addr_len+6;p1++) in pg_setup_inject() 170 hh[p1]=odev->dev_addr[p2++]; in pg_setup_inject() 173 if (odev->ip_ptr) { in pg_setup_inject() 174 struct in_device *in_dev = odev->ip_ptr; in pg_setup_inject() 179 atomic_inc(&odev->refcnt); in pg_setup_inject() [all …]
|
/external/adhd/cras/src/tests/ |
D | dev_io_unittest.cc | 71 DL_APPEND(dev_list, dev->odev.get()); in TEST_F() 89 DL_APPEND(dev_list, dev->odev.get()); in TEST_F() 124 DL_APPEND(idev_list, in_dev->odev.get()); in TEST_F() 126 DL_APPEND(odev_list, out_dev->odev.get()); in TEST_F() 153 DL_APPEND(idev_list, in_dev->odev.get()); in TEST_F() 155 DL_APPEND(odev_list, out_dev->odev.get()); in TEST_F() 185 DL_APPEND(dev_list, dev1->odev.get()); in TEST_F() 186 DL_APPEND(dev_list, dev2->odev.get()); in TEST_F() 229 DL_APPEND(dev_list, dev1->odev.get()); in TEST_F() 230 DL_APPEND(dev_list, dev2->odev.get()); in TEST_F() [all …]
|
D | dev_io_stubs.h | 50 Device(IodevPtr dev, IonodePtr node, OpendevPtr odev) in Device() 51 : dev(std::move(dev)), node(std::move(node)), odev(std::move(odev)) {} in Device() 54 OpendevPtr odev; member
|
D | iodev_stub.cc | 163 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev* odev) { in cras_iodev_prepare_output_before_write_samples() argument 175 int cras_iodev_odev_should_wake(const struct cras_iodev* odev) { in cras_iodev_odev_should_wake() argument 179 int cras_iodev_output_underrun(struct cras_iodev* odev, in cras_iodev_output_underrun() argument 198 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev* odev, in cras_iodev_frames_to_play_in_sleep() argument
|
D | timing_unittest.cc | 56 DL_APPEND(dev_list_, dev->odev.get()); in SingleInputDevNextWake() 85 DL_APPEND(dev_list_, dev->odev.get()); in SingleOutputDevNextWake() 91 dev->odev->wake_ts = *dev_wake_ts; in SingleOutputDevNextWake() 121 DL_APPEND(idev_list_, dev->odev.get()); in TEST_F() 122 struct cras_iodev* iodev = dev->odev->dev; in TEST_F() 829 DL_APPEND(odev_list_, out_dev->odev.get()); in TEST_F() 830 struct cras_iodev* out_iodev = out_dev->odev->dev; in TEST_F() 834 DL_APPEND(idev_list_, in_dev->odev.get()); in TEST_F() 871 DL_APPEND(odev_list_, dev->odev.get()); in TEST_F() 872 struct cras_iodev* iodev = dev->odev->dev; in TEST_F() [all …]
|
D | audio_thread_unittest.cc | 343 struct cras_iodev odev; in TEST_F() local 351 SetupDevice(&odev, CRAS_STREAM_OUTPUT); in TEST_F() 359 thread_add_open_dev(thread_, &odev); in TEST_F() 362 EXPECT_EQ(adev->dev, &odev); in TEST_F() 366 thread_rm_open_dev(thread_, CRAS_STREAM_OUTPUT, odev.info.idx); in TEST_F() 1315 int cras_iodev_fill_odev_zeros(struct cras_iodev* odev, unsigned int frames) { in cras_iodev_fill_odev_zeros() argument 1320 int cras_iodev_output_underrun(struct cras_iodev* odev, in cras_iodev_output_underrun() argument 1327 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev* odev) { in cras_iodev_prepare_output_before_write_samples() argument 1329 odev->state = cras_iodev_prepare_output_before_write_samples_state; in cras_iodev_prepare_output_before_write_samples() 1337 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev* odev, in cras_iodev_frames_to_play_in_sleep() argument [all …]
|
D | dev_io_stubs.cc | 138 OpendevPtr odev(reinterpret_cast<open_dev*>(calloc(1, sizeof(open_dev))), in create_device() local 140 odev->dev = dev.get(); in create_device() 142 DevicePtr d(new Device(std::move(dev), std::move(node), std::move(odev))); in create_device()
|
D | empty_iodev_unittest.cc | 55 int cras_iodev_default_no_stream_playback(struct cras_iodev* odev, int enable) { in cras_iodev_default_no_stream_playback() argument
|
D | a2dp_iodev_unittest.cc | 911 int cras_iodev_fill_odev_zeros(struct cras_iodev* odev, unsigned int frames) { in cras_iodev_fill_odev_zeros() argument 916 odev->get_buffer(odev, &area, &frames); in cras_iodev_fill_odev_zeros() 917 odev->put_buffer(odev, frames); in cras_iodev_fill_odev_zeros()
|
D | bt_io_unittest.cc | 473 int cras_iodev_default_no_stream_playback(struct cras_iodev* odev, int enable) { in cras_iodev_default_no_stream_playback() argument 483 struct cras_iodev* odev, in cras_iodev_default_frames_to_play_in_sleep() argument
|
D | hfp_iodev_unittest.cc | 370 int cras_iodev_fill_odev_zeros(struct cras_iodev* odev, unsigned int frames) { in cras_iodev_fill_odev_zeros() argument
|
D | alsa_io_unittest.cc | 2953 int cras_iodev_fill_odev_zeros(struct cras_iodev* odev, unsigned int frames) { in cras_iodev_fill_odev_zeros() argument 3013 int cras_iodev_default_no_stream_playback(struct cras_iodev* odev, int enable) { in cras_iodev_default_no_stream_playback() argument 3017 int cras_iodev_output_underrun(struct cras_iodev* odev, in cras_iodev_output_underrun() argument 3020 return odev->output_underrun(odev); in cras_iodev_output_underrun()
|
/external/autotest/client/cros/audio/ |
D | audio_helper.py | 229 def get_play_sine_args(channel, odev='default', freq=1000, duration=10, argument 240 odev, 'synth', str(duration)] 250 def play_sine(channel, odev='default', freq=1000, duration=10, argument 260 cmdargs = get_play_sine_args(channel, odev, freq, duration, sample_size)
|
/external/iproute2/ip/ |
D | iproute.c | 1682 char *odev = NULL; in iproute_get() local 1723 odev = *argv; in iproute_get() 1732 odev = *argv; in iproute_get() 1775 if (idev || odev) { in iproute_get() 1785 if (odev) { in iproute_get() 1786 if ((idx = ll_name_to_index(odev)) == 0) { in iproute_get() 1787 fprintf(stderr, "Cannot find device \"%s\"\n", odev); in iproute_get() 1835 if (!odev && tb[RTA_OIF]) in iproute_get()
|
/external/toybox/toys/pending/ |
D | ip.c | 1496 int tb,idev,odev,proto; member 1655 if (gfilter.odev != 0) if (!attr[RTA_OIF]) return 0; in display_route_info() 1657 if (gfilter.odev !=0 && gfilter.odev != *(int*)RTA_DATA(attr[RTA_OIF])) in display_route_info() 1782 char *idev = NULL, *odev = NULL; in route_get() local 1819 else odev = *argv, flag = RTA_OIF; in route_get() 1856 if (!odev && attr[RTA_OIF]) attr[RTA_OIF]->rta_type = 0; in route_get() 1902 else gfilter.odev = dev; in route_show_flush()
|
/external/iputils/doc/ |
D | pg3.sgml | 47 <term><option>odev <replaceable/DEVICE/</option></term>
|