Lines Matching refs:a2dp

52 struct a2dp_data a2dp;  variable
71 if (a2dp.a2dp_device == NULL){ in open_a2dp_output()
79 rc = audio_hw_device_open(mod, &a2dp.a2dp_device); in open_a2dp_output()
86 rc = a2dp.a2dp_device->open_output_stream(a2dp.a2dp_device, 0,AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, in open_a2dp_output()
87 … (audio_output_flags_t)AUDIO_OUTPUT_FLAG_NONE, &config, &a2dp.a2dp_stream, NULL); in open_a2dp_output()
93 a2dp.a2dp_suspended = false; in open_a2dp_output()
101 if(!a2dp.a2dp_device && !a2dp.a2dp_stream){ in close_a2dp_output()
106 a2dp.a2dp_device->close_output_stream(a2dp.a2dp_device, a2dp.a2dp_stream); in close_a2dp_output()
107 a2dp.a2dp_stream = NULL; in close_a2dp_output()
108 a2dp.a2dp_started = false; in close_a2dp_output()
109 a2dp.a2dp_suspended = true; in close_a2dp_output()
142 if (a2dp.a2dp_device && a2dp.a2dp_stream) { in audio_extn_a2dp_set_parameters()
143 a2dp.a2dp_device->set_parameters(a2dp.a2dp_device, str_parms_to_str(parms)); in audio_extn_a2dp_set_parameters()
145 a2dp.a2dp_suspended = true; in audio_extn_a2dp_set_parameters()
147 a2dp.a2dp_suspended = false; in audio_extn_a2dp_set_parameters()
158 if (!a2dp.a2dp_started && a2dp.a2dp_device && a2dp.a2dp_stream) { in audio_extn_a2dp_start_playback()
162 ret = a2dp.a2dp_device->set_parameters(a2dp.a2dp_device, buf); in audio_extn_a2dp_start_playback()
165 a2dp.a2dp_started = false; in audio_extn_a2dp_start_playback()
167 a2dp.a2dp_started = true; in audio_extn_a2dp_start_playback()
178 if ( a2dp.a2dp_started && a2dp.a2dp_device && a2dp.a2dp_stream) { in audio_extn_a2dp_stop_playback()
182 ret = a2dp.a2dp_device->set_parameters(a2dp.a2dp_device, buf); in audio_extn_a2dp_stop_playback()
190 a2dp.a2dp_started = false; in audio_extn_a2dp_stop_playback()
191 a2dp.a2dp_suspended = true; in audio_extn_a2dp_stop_playback()
196 a2dp.a2dp_started = false; in audio_extn_a2dp_init()
197 a2dp.a2dp_suspended = true; in audio_extn_a2dp_init()
198 a2dp.a2dp_stream = NULL; in audio_extn_a2dp_init()
199 a2dp.a2dp_device = NULL; in audio_extn_a2dp_init()