/external/adhd/cras/src/server/ |
D | cras_iodev.c | 69 static int default_no_stream_playback(struct cras_iodev *odev) in default_no_stream_playback() argument 73 unsigned int target_hw_level = odev->min_cb_level * 2; in default_no_stream_playback() 77 rc = cras_iodev_frames_queued(odev, &hw_tstamp); in default_no_stream_playback() 84 rc = cras_iodev_output_underrun(odev); in default_no_stream_playback() 88 rc = cras_iodev_frames_queued(odev, &hw_tstamp); in default_no_stream_playback() 94 ATLOG(atlog, AUDIO_THREAD_ODEV_DEFAULT_NO_STREAMS, odev->info.idx, in default_no_stream_playback() 97 fr_to_write = cras_iodev_buffer_avail(odev, hw_level); in default_no_stream_playback() 100 return cras_iodev_fill_odev_zeros(odev, fr_to_write); in default_no_stream_playback() 126 static unsigned int dev_playback_frames(struct cras_iodev *odev) in dev_playback_frames() argument 131 DL_FOREACH (odev->streams, curr) { in dev_playback_frames() [all …]
|
D | dev_io.c | 138 struct cras_iodev *odev = adev->dev; in fetch_streams() local 142 delay = cras_iodev_delay_frames(odev); in fetch_streams() 572 struct cras_iodev *odev = adev->dev; in write_streams() local 575 unsigned int frame_bytes = cras_get_format_bytes(odev->format); in write_streams() 580 max_offset = cras_iodev_max_stream_offset(odev); in write_streams() 630 offset = cras_iodev_stream_offset(odev, curr); in write_streams() 633 nwritten = dev_stream_mix(curr, odev->format, in write_streams() 642 cras_iodev_stream_written(odev, curr, nwritten); in write_streams() 645 write_limit = cras_iodev_all_streams_written(odev); in write_streams() 693 struct cras_iodev *odev = adev->dev; in write_output_samples() local [all …]
|
D | cras_alsa_io.c | 1709 static int adjust_appl_ptr_for_leaving_free_run(struct cras_iodev *odev) in adjust_appl_ptr_for_leaving_free_run() argument 1711 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr_for_leaving_free_run() 1714 ahead = odev->min_buffer_level + odev->min_cb_level; in adjust_appl_ptr_for_leaving_free_run() 1722 static int adjust_appl_ptr_for_underrun(struct cras_iodev *odev) in adjust_appl_ptr_for_underrun() argument 1724 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr_for_underrun() 1727 ahead = odev->min_buffer_level + odev->min_cb_level + in adjust_appl_ptr_for_underrun() 1728 odev->min_cb_level / 2; in adjust_appl_ptr_for_underrun() 1736 static int adjust_appl_ptr_samples_remaining(struct cras_iodev *odev) in adjust_appl_ptr_samples_remaining() argument 1738 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr_samples_remaining() 1747 rc = odev->frames_queued(odev, &hw_tstamp); in adjust_appl_ptr_samples_remaining() [all …]
|
D | cras_iodev.h | 266 int (*get_valid_frames)(const struct cras_iodev *odev, 664 int cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames); 674 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev *odev, 684 int cras_iodev_odev_should_wake(const struct cras_iodev *odev); 697 int cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable); 716 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev); 764 int cras_iodev_output_underrun(struct cras_iodev *odev); 774 int cras_iodev_start_ramp(struct cras_iodev *odev, 785 int cras_iodev_start_volume_ramp(struct cras_iodev *odev, 806 int cras_iodev_is_zero_volume(const struct cras_iodev *odev);
|
D | cras_hfp_ag_profile.c | 88 struct cras_iodev *odev; member 113 if (ag->odev) in destroy_audio_gateway() 114 hfp_alsa_iodev_destroy(ag->odev); in destroy_audio_gateway() 118 if (ag->odev) in destroy_audio_gateway() 119 hfp_iodev_destroy(ag->odev); in destroy_audio_gateway() 391 ag->odev = hfp_alsa_iodev_create(out_aio, ag->device, in cras_hfp_ag_start() 399 ag->odev = in cras_hfp_ag_start() 404 if (!ag->idev && !ag->odev) { in cras_hfp_ag_start()
|
D | cras_apm_list.c | 109 struct cras_iodev *odev; member 350 if (rmodule->odev == echo_ref) in update_first_output_dev_to_process() 354 if (rmodule->odev) { in update_first_output_dev_to_process() 355 cras_iodev_set_ext_dsp_module(rmodule->odev, NULL); in update_first_output_dev_to_process() 356 rmodule->odev = NULL; in update_first_output_dev_to_process() 359 rmodule->odev = echo_ref; in update_first_output_dev_to_process() 381 if (rmodule->odev == echo_ref) { in handle_device_disabled() 383 rmodule->odev = NULL; in handle_device_disabled()
|
D | cras_bt_device.c | 442 struct cras_iodev *odev = device->bt_iodevs[CRAS_STREAM_OUTPUT]; in cras_bt_device_has_a2dp() local 445 return odev && in cras_bt_device_has_a2dp() 446 cras_bt_io_get_profile(odev, CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE); in cras_bt_device_has_a2dp()
|
D | audio_thread.c | 261 static void fill_odevs_zeros_min_level(struct cras_iodev *odev) in fill_odevs_zeros_min_level() argument 263 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 | 61 DL_APPEND(dev_list, dev->odev.get()); in TEST_F() 79 DL_APPEND(dev_list, dev->odev.get()); in TEST_F() 110 DL_APPEND(dev_list, dev1->odev.get()); in TEST_F() 111 DL_APPEND(dev_list, dev2->odev.get()); in TEST_F() 149 DL_APPEND(dev_list, dev->odev.get()); in TEST_F() 173 DL_APPEND(dev_list, dev1->odev.get()); in TEST_F() 174 DL_APPEND(dev_list, dev2->odev.get()); in TEST_F()
|
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 | 137 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev* odev) { in cras_iodev_prepare_output_before_write_samples() argument 149 int cras_iodev_odev_should_wake(const struct cras_iodev* odev) { in cras_iodev_odev_should_wake() argument 153 int cras_iodev_output_underrun(struct cras_iodev* odev) { in cras_iodev_output_underrun() argument 170 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev* odev, in cras_iodev_frames_to_play_in_sleep() argument
|
D | audio_thread_unittest.cc | 341 struct cras_iodev odev; in TEST_F() local 349 SetupDevice(&odev, CRAS_STREAM_OUTPUT); in TEST_F() 357 thread_add_open_dev(thread_, &odev); in TEST_F() 360 EXPECT_EQ(adev->dev, &odev); in TEST_F() 364 thread_rm_open_dev(thread_, CRAS_STREAM_OUTPUT, odev.info.idx); in TEST_F() 1309 int cras_iodev_fill_odev_zeros(struct cras_iodev* odev, unsigned int frames) { in cras_iodev_fill_odev_zeros() argument 1314 int cras_iodev_output_underrun(struct cras_iodev* odev) { in cras_iodev_output_underrun() argument 1319 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev* odev) { in cras_iodev_prepare_output_before_write_samples() argument 1321 odev->state = cras_iodev_prepare_output_before_write_samples_state; in cras_iodev_prepare_output_before_write_samples() 1329 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev* odev, in cras_iodev_frames_to_play_in_sleep() argument [all …]
|
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(dev_list_, dev->odev.get()); in TEST_F() 122 struct cras_iodev* iodev = dev->odev->dev; in TEST_F() 826 DL_APPEND(dev_list_, dev->odev.get()); in TEST_F() 827 struct cras_iodev* iodev = dev->odev->dev; in TEST_F() 856 DL_APPEND(dev_list_, dev->odev.get()); in TEST_F() 857 struct cras_iodev* iodev = dev->odev->dev; in TEST_F() 885 DL_APPEND(dev_list_, dev->odev.get()); in TEST_F() [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 | bt_io_unittest.cc | 442 int cras_iodev_default_no_stream_playback(struct cras_iodev* odev, int enable) { in cras_iodev_default_no_stream_playback() argument
|
D | iodev_unittest.cc | 514 static int no_stream(struct cras_iodev* odev, int enable) { in no_stream() argument 518 return cras_iodev_default_no_stream_playback(odev, enable); in no_stream() 521 static int is_free_running(const struct cras_iodev* odev) { in is_free_running() argument
|
D | control_rclient_unittest.cc | 781 struct cras_iodev* odev) {} in audio_thread_add_output_dev() argument
|
D | alsa_io_unittest.cc | 2874 int cras_iodev_fill_odev_zeros(struct cras_iodev* odev, unsigned int frames) { in cras_iodev_fill_odev_zeros() argument 2931 int cras_iodev_default_no_stream_playback(struct cras_iodev* odev, int enable) { in cras_iodev_default_no_stream_playback() argument
|
D | iodev_list_unittest.cc | 1751 int cras_iodev_start_volume_ramp(struct cras_iodev* odev, in cras_iodev_start_volume_ramp() argument
|
/external/autotest/client/cros/audio/ |
D | audio_helper.py | 216 def get_play_sine_args(channel, odev='default', freq=1000, duration=10, argument 227 odev, 'synth', str(duration)] 237 def play_sine(channel, odev='default', freq=1000, duration=10, argument 247 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 1657 if (gfilter.odev != 0) if (!attr[RTA_OIF]) return 0; in display_route_info() 1659 if (gfilter.odev !=0 && gfilter.odev != *(int*)RTA_DATA(attr[RTA_OIF])) in display_route_info() 1784 char *idev = NULL, *odev = NULL; in route_get() local 1821 else odev = *argv, flag = RTA_OIF; in route_get() 1858 if (!odev && attr[RTA_OIF]) attr[RTA_OIF]->rta_type = 0; in route_get() 1904 else gfilter.odev = dev; in route_show_flush()
|
/external/iputils/doc/ |
D | pg3.sgml | 47 <term><option>odev <replaceable/DEVICE/</option></term>
|