/external/adhd/cras/src/server/ |
D | cras_iodev.c | 51 static int default_no_stream_playback(struct cras_iodev *odev) in default_no_stream_playback() argument 55 unsigned int target_hw_level = odev->min_cb_level * 2; in default_no_stream_playback() 59 rc = cras_iodev_frames_queued(odev, &hw_tstamp); in default_no_stream_playback() 66 rc = cras_iodev_output_underrun(odev); in default_no_stream_playback() 70 rc = cras_iodev_frames_queued(odev, &hw_tstamp); in default_no_stream_playback() 77 odev->info.idx, hw_level, target_hw_level); in default_no_stream_playback() 79 fr_to_write = cras_iodev_buffer_avail(odev, hw_level); in default_no_stream_playback() 82 return cras_iodev_fill_odev_zeros(odev, fr_to_write); in default_no_stream_playback() 108 static unsigned int dev_playback_frames(struct cras_iodev* odev) in dev_playback_frames() argument 113 DL_FOREACH(odev->streams, curr) { in dev_playback_frames() [all …]
|
D | dev_io.c | 105 struct cras_iodev *odev = adev->dev; in fetch_streams() local 109 delay = cras_iodev_delay_frames(odev); in fetch_streams() 493 struct cras_iodev *odev = adev->dev; in write_streams() local 496 unsigned int frame_bytes = cras_get_format_bytes(odev->ext_format); in write_streams() 501 max_offset = cras_iodev_max_stream_offset(odev); in write_streams() 548 offset = cras_iodev_stream_offset(odev, curr); in write_streams() 551 nwritten = dev_stream_mix(curr, odev->ext_format, in write_streams() 560 cras_iodev_stream_written(odev, curr, nwritten); in write_streams() 563 write_limit = cras_iodev_all_streams_written(odev); in write_streams() 614 struct cras_iodev *odev = adev->dev; in write_output_samples() local [all …]
|
D | cras_alsa_io.c | 1737 static int adjust_appl_ptr(struct cras_iodev *odev) in adjust_appl_ptr() argument 1739 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr() 1746 odev->min_buffer_level + odev->min_cb_level); in adjust_appl_ptr() 1753 static int adjust_appl_ptr_samples_remaining(struct cras_iodev *odev) in adjust_appl_ptr_samples_remaining() argument 1755 struct alsa_io *aio = (struct alsa_io *)odev; in adjust_appl_ptr_samples_remaining() 1764 rc = odev->frames_queued(odev, &hw_tstamp); in adjust_appl_ptr_samples_remaining() 1773 if (real_hw_level < odev->min_buffer_level) in adjust_appl_ptr_samples_remaining() 1774 return odev->output_underrun(odev); in adjust_appl_ptr_samples_remaining() 1779 offset = MAX(odev->min_buffer_level + odev->min_cb_level, valid_sample); in adjust_appl_ptr_samples_remaining() 1783 rc = cras_iodev_fill_odev_zeros(odev, offset - real_hw_level); in adjust_appl_ptr_samples_remaining() [all …]
|
D | cras_iodev.h | 625 int cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames); 635 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev *odev, 645 int cras_iodev_odev_should_wake(const struct cras_iodev *odev); 658 int cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable); 678 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev); 714 int cras_iodev_output_underrun(struct cras_iodev *odev); 724 int cras_iodev_start_ramp(struct cras_iodev *odev, 744 int cras_iodev_is_zero_volume(const struct cras_iodev *odev);
|
D | cras_hfp_info.c | 52 struct cras_iodev *odev; member 59 if (info->odev) in hfp_info_add_iodev() 61 info->odev = dev; in hfp_info_add_iodev() 80 if (dev->direction == CRAS_STREAM_OUTPUT && info->odev == dev) { in hfp_info_rm_iodev() 81 info->odev = NULL; in hfp_info_rm_iodev() 92 return info->odev || info->idev; in hfp_info_has_iodev() 285 if (info->odev) { in hfp_info_callback()
|
D | cras_hfp_ag_profile.c | 88 struct cras_iodev *odev; member 106 if (ag->odev) in destroy_audio_gateway() 107 hfp_iodev_destroy(ag->odev); in destroy_audio_gateway() 331 ag->odev = hfp_iodev_create(CRAS_STREAM_OUTPUT, ag->device, in cras_hfp_ag_start() 335 if (!ag->idev && !ag->odev) { in cras_hfp_ag_start()
|
D | cras_apm_list.c | 105 struct cras_iodev *odev; member 354 rmodule->odev = echo_ref; in update_first_output_dev_to_process() 376 if (rmodule->odev == echo_ref) { in handle_device_disabled() 378 rmodule->odev = NULL; in handle_device_disabled()
|
D | cras_bt_device.c | 451 struct cras_iodev *odev = device->bt_iodevs[CRAS_STREAM_OUTPUT]; in cras_bt_device_has_a2dp() local 454 return odev && cras_bt_io_get_profile( in cras_bt_device_has_a2dp() 455 odev, CRAS_BT_DEVICE_PROFILE_A2DP_SOURCE); in cras_bt_device_has_a2dp()
|
D | audio_thread.c | 249 static void fill_odevs_zeros_min_level(struct cras_iodev *odev) in fill_odevs_zeros_min_level() argument 251 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 | iodev_stub.cc | 99 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev) in cras_iodev_prepare_output_before_write_samples() argument 111 int cras_iodev_odev_should_wake(const struct cras_iodev *odev) in cras_iodev_odev_should_wake() argument 116 int cras_iodev_output_underrun(struct cras_iodev *odev) { in cras_iodev_output_underrun() argument 134 unsigned int cras_iodev_frames_to_play_in_sleep(struct cras_iodev *odev, in cras_iodev_frames_to_play_in_sleep() argument
|
D | dev_io_stubs.h | 47 Device(IodevPtr dev, IonodePtr node, OpendevPtr odev) : in Device() 50 odev(std::move(odev)) { in Device() 54 OpendevPtr odev; member
|
D | audio_thread_unittest.cc | 280 struct cras_iodev odev; in TEST_F() local 288 SetupDevice(&odev, CRAS_STREAM_OUTPUT); in TEST_F() 296 thread_add_open_dev(thread_, &odev); in TEST_F() 299 EXPECT_EQ(adev->dev, &odev); in TEST_F() 303 thread_rm_open_dev(thread_, &odev); in TEST_F() 1066 int cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames) in cras_iodev_fill_odev_zeros() argument 1072 int cras_iodev_output_underrun(struct cras_iodev *odev) in cras_iodev_output_underrun() argument 1078 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev) in cras_iodev_prepare_output_before_write_samples() argument 1081 odev->state = cras_iodev_prepare_output_before_write_samples_state; in cras_iodev_prepare_output_before_write_samples() 1106 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 | 120 OpendevPtr odev( in create_device() local 122 odev->dev = dev.get(); in create_device() 124 DevicePtr d(new Device(std::move(dev), std::move(node), std::move(odev))); in create_device()
|
D | dev_io_unittest.cc | 61 DL_APPEND(dev_list, dev->odev.get()); in TEST_F()
|
D | bt_io_unittest.cc | 468 int cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable) in cras_iodev_default_no_stream_playback() argument
|
D | timing_unittest.cc | 56 DL_APPEND(dev_list_, dev->odev.get()); in SingleInputDevNextWake()
|
D | iodev_unittest.cc | 562 static int no_stream(struct cras_iodev *odev, int enable) in no_stream() argument 567 return cras_iodev_default_no_stream_playback(odev, enable); in no_stream() 570 static int output_should_wake(const struct cras_iodev *odev) in output_should_wake() argument
|
D | rclient_unittest.cc | 694 struct cras_iodev *odev) in audio_thread_add_output_dev() argument
|
D | alsa_io_unittest.cc | 2933 int cras_iodev_fill_odev_zeros(struct cras_iodev *odev, unsigned int frames) in cras_iodev_fill_odev_zeros() argument 3001 int cras_iodev_default_no_stream_playback(struct cras_iodev *odev, int enable) in cras_iodev_default_no_stream_playback() argument
|
/external/autotest/client/cros/audio/ |
D | audio_helper.py | 244 def get_play_sine_args(channel, odev='default', freq=1000, duration=10, argument 255 odev, 'synth', str(duration)] 265 def play_sine(channel, odev='default', freq=1000, duration=10, argument 275 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 | 1446 int tb,idev,odev,proto; member 1548 if (gfilter.odev != 0) if (!attr[RTA_OIF]) return 0; in display_route_info() 1550 if (gfilter.odev !=0 && gfilter.odev != *(int*)RTA_DATA(attr[RTA_OIF])) in display_route_info() 1671 char *idev = NULL, *odev = NULL; in route_get() local 1708 else odev = *argv, flag = RTA_OIF; in route_get() 1745 if (!odev && attr[RTA_OIF]) attr[RTA_OIF]->rta_type = 0; in route_get() 1791 else gfilter.odev = dev; in route_show_flush()
|
/external/iputils/doc/ |
D | pg3.sgml | 47 <term><option>odev <replaceable/DEVICE/</option></term>
|