Home
last modified time | relevance | path

Searched refs:audio_hw_device (Results 1 – 8 of 8) sorted by relevance

/hardware/libhardware/include/hardware/
Daudio.h654 struct audio_hw_device { struct
674 uint32_t (*get_supported_devices)(const struct audio_hw_device *dev); argument
680 int (*init_check)(const struct audio_hw_device *dev); argument
683 int (*set_voice_volume)(struct audio_hw_device *dev, float volume); argument
690 int (*set_master_volume)(struct audio_hw_device *dev, float volume); argument
699 int (*get_master_volume)(struct audio_hw_device *dev, float *volume); argument
706 int (*set_mode)(struct audio_hw_device *dev, audio_mode_t mode); argument
709 int (*set_mic_mute)(struct audio_hw_device *dev, bool state); argument
710 int (*get_mic_mute)(const struct audio_hw_device *dev, bool *state); argument
713 int (*set_parameters)(struct audio_hw_device *dev, const char *kv_pairs); argument
[all …]
/hardware/libhardware/modules/audio/
Daudio_hw.c45 struct audio_hw_device device;
352 static int adev_open_output_stream(struct audio_hw_device *dev, in adev_open_output_stream()
405 static void adev_close_output_stream(struct audio_hw_device *dev, in adev_close_output_stream()
412 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) in adev_set_parameters()
418 static char * adev_get_parameters(const struct audio_hw_device *dev, in adev_get_parameters()
425 static int adev_init_check(const struct audio_hw_device *dev) in adev_init_check()
431 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
437 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume()
443 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) in adev_get_master_volume()
449 static int adev_set_master_mute(struct audio_hw_device *dev, bool muted) in adev_set_master_mute()
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
Daudio_hw_hal.cpp39 struct audio_hw_device device;
429 static inline struct qcom_audio_device * to_ladev(struct audio_hw_device *dev) in to_ladev()
434 static inline const struct qcom_audio_device * to_cladev(const struct audio_hw_device *dev) in to_cladev()
439 static int adev_init_check(const struct audio_hw_device *dev) in adev_init_check()
446 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
452 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume()
458 static int adev_get_master_volume(struct audio_hw_device *dev, float *volume) { in adev_get_master_volume()
465 static int adev_set_fm_volume(struct audio_hw_device *dev, float volume) in adev_set_fm_volume()
472 static int adev_set_mode(struct audio_hw_device *dev, audio_mode_t mode) in adev_set_mode()
478 static int adev_set_mic_mute(struct audio_hw_device *dev, bool state) in adev_set_mic_mute()
[all …]
/hardware/libhardware_legacy/audio/
Daudio_hw_hal.cpp40 struct audio_hw_device device;
410 static inline struct legacy_audio_device * to_ladev(struct audio_hw_device *dev) in to_ladev()
415 static inline const struct legacy_audio_device * to_cladev(const struct audio_hw_device *dev) in to_cladev()
420 static int adev_init_check(const struct audio_hw_device *dev) in adev_init_check()
427 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
433 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in adev_set_master_volume()
439 static int adev_get_master_volume(struct audio_hw_device *dev, float* volume) in adev_get_master_volume()
445 static int adev_set_mode(struct audio_hw_device *dev, audio_mode_t mode) in adev_set_mode()
452 static int adev_set_mic_mute(struct audio_hw_device *dev, bool state) in adev_set_mic_mute()
458 static int adev_get_mic_mute(const struct audio_hw_device *dev, bool *state) in adev_get_mic_mute()
[all …]
/hardware/libhardware/modules/usbaudio/
Daudio_hal.c54 struct audio_hw_device hw_device;
516 static int adev_open_output_stream(struct audio_hw_device *hw_dev, in adev_open_output_stream()
655 static void adev_close_output_stream(struct audio_hw_device *hw_dev, in adev_close_output_stream()
678 static size_t adev_get_input_buffer_size(const struct audio_hw_device *hw_dev, in adev_get_input_buffer_size()
945 static int adev_open_input_stream(struct audio_hw_device *hw_dev, in adev_open_input_stream()
1154 static void adev_close_input_stream(struct audio_hw_device *hw_dev, in adev_close_input_stream()
1179 static int adev_set_parameters(struct audio_hw_device *hw_dev, const char *kvpairs) in adev_set_parameters()
1184 static char * adev_get_parameters(const struct audio_hw_device *hw_dev, const char *keys) in adev_get_parameters()
1189 static int adev_init_check(const struct audio_hw_device *hw_dev) in adev_init_check()
1194 static int adev_set_voice_volume(struct audio_hw_device *hw_dev, float volume) in adev_set_voice_volume()
[all …]
/hardware/libhardware/modules/audio_remote_submix/
Daudio_hw.cpp170 struct audio_hw_device device;
315 struct audio_hw_device *device) in audio_hw_device_get_submix_audio_device()
1356 static int adev_open_output_stream(struct audio_hw_device *dev, in audio_config_compare()
1454 static void adev_close_output_stream(struct audio_hw_device *dev, in audio_config_compare()
1458 const_cast<struct audio_hw_device*>(dev)); in audio_config_compare()
1472 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) in audio_config_compare()
1479 static char * adev_get_parameters(const struct audio_hw_device *dev, in audio_config_compare()
1487 static int adev_init_check(const struct audio_hw_device *dev) in audio_config_compare()
1494 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in audio_config_compare()
1501 static int adev_set_master_volume(struct audio_hw_device *dev, float volume) in audio_config_compare()
[all …]
/hardware/qcom/audio/hal/
Daudio_hw.h363 struct audio_hw_device device;
Daudio_hw.c4831 static int adev_get_microphones(const struct audio_hw_device *dev, in adev_get_microphones()
4920 static int adev_open_output_stream(struct audio_hw_device *dev, in adev_open_output_stream()
5453 static void adev_close_output_stream(struct audio_hw_device *dev __unused, in adev_close_output_stream()
5487 static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) in adev_set_parameters()
5668 static char* adev_get_parameters(const struct audio_hw_device *dev, in adev_get_parameters()
5690 static int adev_init_check(const struct audio_hw_device *dev __unused) in adev_init_check()
5695 static int adev_set_voice_volume(struct audio_hw_device *dev, float volume) in adev_set_voice_volume()
5709 static int adev_set_master_volume(struct audio_hw_device *dev __unused, float volume __unused) in adev_set_master_volume()
5714 static int adev_get_master_volume(struct audio_hw_device *dev __unused, in adev_get_master_volume()
5720 static int adev_set_master_mute(struct audio_hw_device *dev __unused, bool muted __unused) in adev_set_master_mute()
[all …]