Home
last modified time | relevance | path

Searched refs:odev (Results 1 – 25 of 25) sorted by relevance

/external/adhd/cras/src/server/
Dcras_iodev.c69 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 …]
Ddev_io.c138 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 …]
Dcras_alsa_io.c1709 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 …]
Dcras_iodev.h266 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);
Dcras_hfp_ag_profile.c88 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()
Dcras_apm_list.c109 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()
Dcras_bt_device.c442 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()
Daudio_thread.c261 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/
Dpg3.c149 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/
Ddev_io_unittest.cc61 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()
Ddev_io_stubs.h50 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
Diodev_stub.cc137 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
Daudio_thread_unittest.cc341 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 …]
Dtiming_unittest.cc56 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 …]
Ddev_io_stubs.cc138 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()
Dempty_iodev_unittest.cc55 int cras_iodev_default_no_stream_playback(struct cras_iodev* odev, int enable) { in cras_iodev_default_no_stream_playback() argument
Dbt_io_unittest.cc442 int cras_iodev_default_no_stream_playback(struct cras_iodev* odev, int enable) { in cras_iodev_default_no_stream_playback() argument
Diodev_unittest.cc514 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
Dcontrol_rclient_unittest.cc781 struct cras_iodev* odev) {} in audio_thread_add_output_dev() argument
Dalsa_io_unittest.cc2874 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
Diodev_list_unittest.cc1751 int cras_iodev_start_volume_ramp(struct cras_iodev* odev, in cras_iodev_start_volume_ramp() argument
/external/autotest/client/cros/audio/
Daudio_helper.py216 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/
Diproute.c1682 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/
Dip.c1496 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/
Dpg3.sgml47 <term><option>odev <replaceable/DEVICE/</option></term>