Home
last modified time | relevance | path

Searched refs:adev (Results 1 – 7 of 7) sorted by relevance

/device/linaro/hikey/audio/
Daudio_hw.c181 struct alsa_audio_device *adev = out->dev; in xa_device_run() local
183 void *p_comp=adev->dsp_device.p_decoder; in xa_device_run()
185 memcpy(adev->dsp_device.dec_inbuf[0],buffer,bytes); in xa_device_run()
186 adev->dsp_device.read_length=bytes; in xa_device_run()
188 if (adev->dsp_device.xafinitdone == 0) { in xa_device_run()
189 …XF_CHK_API(xaf_comp_process(adev->dsp_device.p_adev, adev->dsp_device.p_decoder, adev->dsp_device.… in xa_device_run()
190 …XF_CHK_API(xaf_comp_get_status(adev->dsp_device.p_adev, adev->dsp_device.p_decoder, &adev->dsp_dev… in xa_device_run()
191 ALOGE("PROXY:%s xaf_comp_get_status %d\n",__func__,adev->dsp_device.dec_status); in xa_device_run()
192 if (adev->dsp_device.dec_status == XAF_INIT_DONE) { in xa_device_run()
193 adev->dsp_device.xafinitdone = 1; in xa_device_run()
[all …]
/device/linaro/dragonboard/audio/
Daudio_hw.c181 struct alsa_audio_device *adev = out->dev; in start_output_stream() local
212 adev->active_output = out; in start_output_stream()
261 struct alsa_audio_device *adev = out->dev; in do_output_standby() local
268 adev->active_output = NULL; in do_output_standby()
271 aec_set_spk_running(adev->aec, false); in do_output_standby()
299 struct alsa_audio_device *adev = out->dev; in out_set_parameters() local
309 pthread_mutex_lock(&adev->lock); in out_set_parameters()
316 pthread_mutex_unlock(&adev->lock); in out_set_parameters()
348 struct alsa_audio_device *adev = out->dev; in out_write() local
358 pthread_mutex_lock(&adev->lock); in out_write()
[all …]
/device/amlogic/yukawa/hal/audio/
Daudio_hw.c208 struct alsa_audio_device *adev = out->dev; in start_output_stream() local
238 adev->active_output = out; in start_output_stream()
287 struct alsa_audio_device *adev = out->dev; in do_output_standby() local
294 adev->active_output = NULL; in do_output_standby()
297 aec_set_spk_running(adev->aec, false); in do_output_standby()
325 struct alsa_audio_device *adev = out->dev; in out_set_parameters() local
335 pthread_mutex_lock(&adev->lock); in out_set_parameters()
342 pthread_mutex_unlock(&adev->lock); in out_set_parameters()
374 struct alsa_audio_device *adev = out->dev; in out_write() local
384 pthread_mutex_lock(&adev->lock); in out_write()
[all …]
/device/generic/car/emulator/audio/driver/
Daudio_hw.c247 struct generic_audio_device *adev = (struct generic_audio_device *)dev; in is_zone_selected_to_play() local
248 pthread_mutex_lock(&adev->lock); in is_zone_selected_to_play()
249 is_selected_zone = adev->last_zone_selected_to_play == zone_id; in is_zone_selected_to_play()
250 pthread_mutex_unlock(&adev->lock); in is_zone_selected_to_play()
1047 struct generic_audio_device *adev = in->dev; in in_read() local
1057 adev_get_mic_mute(&adev->device, &mic_mute); in in_read()
1182 struct generic_audio_device *adev = (struct generic_audio_device *)dev; in adev_open_output_stream() local
1218 out->dev = adev; in adev_open_output_stream()
1253 hashmapPut(adev->out_bus_stream_map, out->bus_address, out); in adev_open_output_stream()
1280 struct generic_audio_device *adev = (struct generic_audio_device *)dev; in adev_close_output_stream() local
[all …]
/device/linaro/poplar/audio/
Daudio_hw.c91 struct alsa_audio_device *adev = out->dev; in start_output_stream() local
108 adev->active_output = NULL; in start_output_stream()
113 adev->active_output = out; in start_output_stream()
162 struct alsa_audio_device *adev = out->dev; in do_output_standby() local
167 adev->active_output = NULL; in do_output_standby()
197 struct alsa_audio_device *adev = out->dev; in out_set_parameters() local
207 pthread_mutex_lock(&adev->lock); in out_set_parameters()
209 if (((adev->devices & AUDIO_DEVICE_OUT_ALL) != val) && (val != 0)) { in out_set_parameters()
210 adev->devices &= ~AUDIO_DEVICE_OUT_ALL; in out_set_parameters()
211 adev->devices |= val; in out_set_parameters()
[all …]
/device/generic/car/emulator/audio/driver/audio_extn/
Dhfp.c32 static int hfp_set_enable(struct generic_audio_device *adev, bool enable) { in hfp_set_enable() argument
36 ctl = mixer_get_ctl_by_name(adev->mixer, AUDIO_PARAMETER_HFP_ENABLE); in hfp_set_enable()
49 adev->hfp_running = enable; in hfp_set_enable()
54 static int hfp_set_sampling_rate(struct generic_audio_device *adev, int rate) { in hfp_set_sampling_rate() argument
59 mixer_get_ctl_by_name(adev->mixer, AUDIO_PARAMETER_HFP_SET_SAMPLING_RATE); in hfp_set_sampling_rate()
76 static int hfp_set_volume(struct generic_audio_device *adev, int vol) { in hfp_set_volume() argument
80 ctl = mixer_get_ctl_by_name(adev->mixer, AUDIO_PARAMETER_HFP_VOLUME); in hfp_set_volume()
97 int audio_extn_hfp_set_parameters(struct generic_audio_device *adev, in audio_extn_hfp_set_parameters() argument
106 if (!adev->hfp_running) in audio_extn_hfp_set_parameters()
107 ret = hfp_set_enable(adev, true); in audio_extn_hfp_set_parameters()
[all …]
Daudio_extn.h28 #define audio_extn_hfp_set_parameters(adev, parms) (0) argument
30 int audio_extn_hfp_set_parameters(struct generic_audio_device *adev,