Home
last modified time | relevance | path

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

12

/external/adhd/cras/src/server/
Dcras_iodev.c72 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 …]
Ddev_io.c83 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 …]
Dcras_iodev.h274 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 …]
Dcras_alsa_io.c1817 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 …]
Dcras_hfp_ag_profile.c95 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()
Dcras_apm_list.c132 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()
Dcras_a2dp_iodev.c178 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()
Dcras_bt_device.c484 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()
Daudio_thread.c259 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/
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.cc71 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 …]
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.cc163 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
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(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 …]
Daudio_thread_unittest.cc343 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 …]
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
Da2dp_iodev_unittest.cc911 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()
Dbt_io_unittest.cc473 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
Dhfp_iodev_unittest.cc370 int cras_iodev_fill_odev_zeros(struct cras_iodev* odev, unsigned int frames) { in cras_iodev_fill_odev_zeros() argument
Dalsa_io_unittest.cc2953 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/
Daudio_helper.py229 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/
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
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/
Dpg3.sgml47 <term><option>odev <replaceable/DEVICE/</option></term>

12