Lines Matching refs:cras_iodev
31 struct cras_iodev;
120 struct cras_iodev *dev;
245 struct cras_iodev { struct
246 void (*set_volume)(struct cras_iodev *iodev); argument
247 void (*set_mute)(struct cras_iodev *iodev); argument
248 void (*set_capture_gain)(struct cras_iodev *iodev); argument
249 void (*set_capture_mute)(struct cras_iodev *iodev); argument
250 int (*set_swap_mode_for_node)(struct cras_iodev *iodev, argument
252 int (*open_dev)(struct cras_iodev *iodev); argument
253 int (*configure_dev)(struct cras_iodev *iodev); argument
254 int (*close_dev)(struct cras_iodev *iodev); argument
255 int (*update_supported_formats)(struct cras_iodev *iodev); argument
256 int (*frames_queued)(const struct cras_iodev *iodev, argument
258 int (*delay_frames)(const struct cras_iodev *iodev); argument
259 int (*get_buffer)(struct cras_iodev *iodev, argument
261 int (*put_buffer)(struct cras_iodev *iodev, unsigned nwritten); argument
262 int (*flush_buffer)(struct cras_iodev *iodev); argument
263 int (*start)(const struct cras_iodev *iodev); argument
264 int (*is_free_running)(const struct cras_iodev *iodev); argument
265 int (*output_underrun)(struct cras_iodev *iodev); argument
266 int (*no_stream)(struct cras_iodev *iodev, int enable); argument
267 void (*update_active_node)(struct cras_iodev *iodev, unsigned node_idx, argument
269 int (*update_channel_layout)(struct cras_iodev *iodev); argument
270 int (*set_hotword_model)(struct cras_iodev *iodev, argument
272 char *(*get_hotword_models)(struct cras_iodev *iodev); argument
273 unsigned int (*get_num_severe_underruns)(const struct cras_iodev *iodev); argument
274 int (*get_valid_frames)(struct cras_iodev *odev, argument
276 unsigned int (*frames_to_play_in_sleep)(struct cras_iodev *iodev, argument
279 int (*support_noise_cancellation)(const struct cras_iodev *iodev); argument
294 struct cras_iodev *echo_reference_dev; argument
320 struct cras_iodev *prev, *next; argument
378 int cras_iodev_set_format(struct cras_iodev *iodev,
386 void cras_iodev_free_format(struct cras_iodev *iodev);
393 void cras_iodev_init_audio_area(struct cras_iodev *iodev, int num_channels);
399 void cras_iodev_free_audio_area(struct cras_iodev *iodev);
406 void cras_iodev_free_resources(struct cras_iodev *iodev);
423 void cras_iodev_update_dsp(struct cras_iodev *iodev);
436 int cras_iodev_dsp_set_swap_mode_for_node(struct cras_iodev *iodev,
453 void cras_iodev_add_node(struct cras_iodev *iodev, struct cras_ionode *node);
456 void cras_iodev_rm_node(struct cras_iodev *iodev, struct cras_ionode *node);
459 void cras_iodev_set_active_node(struct cras_iodev *iodev,
483 cras_iodev_adjust_active_node_volume(struct cras_iodev *iodev, in cras_iodev_adjust_active_node_volume()
494 cras_iodev_software_volume_needed(const struct cras_iodev *iodev) in cras_iodev_software_volume_needed()
509 cras_iodev_get_ui_gain_scaler(const struct cras_iodev *iodev) in cras_iodev_get_ui_gain_scaler()
522 float cras_iodev_get_software_gain_scaler(const struct cras_iodev *iodev);
526 float cras_iodev_get_software_volume_scaler(struct cras_iodev *iodev);
529 int cras_iodev_add_stream(struct cras_iodev *iodev, struct dev_stream *stream);
534 void cras_iodev_start_stream(struct cras_iodev *iodev,
538 struct dev_stream *cras_iodev_rm_stream(struct cras_iodev *iodev,
542 unsigned int cras_iodev_stream_offset(struct cras_iodev *iodev,
546 unsigned int cras_iodev_max_stream_offset(const struct cras_iodev *iodev);
549 void cras_iodev_stream_written(struct cras_iodev *iodev,
557 unsigned int cras_iodev_all_streams_written(struct cras_iodev *iodev);
560 enum CRAS_IODEV_STATE cras_iodev_state(const struct cras_iodev *iodev);
563 int cras_iodev_open(struct cras_iodev *iodev, unsigned int cb_level,
567 int cras_iodev_close(struct cras_iodev *iodev);
570 int cras_iodev_buffer_avail(struct cras_iodev *iodev, unsigned hw_level);
578 int cras_iodev_put_input_buffer(struct cras_iodev *iodev);
581 int cras_iodev_put_output_buffer(struct cras_iodev *iodev, uint8_t *frames,
590 int cras_iodev_get_input_buffer(struct cras_iodev *iodev, unsigned *frames);
598 int cras_iodev_get_output_buffer(struct cras_iodev *iodev,
603 int cras_iodev_update_rate(struct cras_iodev *iodev, unsigned int level,
607 int cras_iodev_reset_rate_estimator(const struct cras_iodev *iodev);
611 double cras_iodev_get_est_rate_ratio(const struct cras_iodev *iodev);
614 int cras_iodev_get_dsp_delay(const struct cras_iodev *iodev);
624 int cras_iodev_frames_queued(struct cras_iodev *iodev, struct timespec *tstamp);
627 static inline int cras_iodev_delay_frames(const struct cras_iodev *iodev) in cras_iodev_delay_frames()
633 static inline int cras_iodev_input_streaming(const struct cras_iodev *iodev) in cras_iodev_input_streaming()
639 static inline int cras_iodev_is_open(const struct cras_iodev *iodev) in cras_iodev_is_open()
647 static inline void cras_iodev_exit_idle(struct cras_iodev *iodev) in cras_iodev_exit_idle()
661 void cras_iodev_set_ext_dsp_module(struct cras_iodev *iodev,
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);
717 enum CRAS_IODEV_STATE cras_iodev_state(const struct cras_iodev *iodev);
728 int cras_iodev_prepare_output_before_write_samples(struct cras_iodev *odev);
736 unsigned int cras_iodev_get_num_underruns(const struct cras_iodev *iodev);
746 cras_iodev_get_num_severe_underruns(const struct cras_iodev *iodev);
757 int cras_iodev_get_valid_frames(struct cras_iodev *iodev,
768 int cras_iodev_reset_request(struct cras_iodev *iodev);
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,
810 int cras_iodev_set_mute(struct cras_iodev *iodev);
821 int cras_iodev_is_zero_volume(const struct cras_iodev *odev);
828 void cras_iodev_update_highest_hw_level(struct cras_iodev *iodev,
839 int cras_iodev_drop_frames_by_time(struct cras_iodev *iodev,
848 bool cras_iodev_support_noise_cancellation(const struct cras_iodev *iodev);