Home | History | Annotate | Download | only in audio

Lines Matching refs:headset

59 #include "headset.h"
150 struct headset {
298 static int headset_send_valist(struct headset *hs, char *format, va_list ap)
310 error("headset_send: the headset is not connected");
331 static int headset_send(struct headset *hs, char *format, ...)
345 struct headset *hs = device->headset;
407 struct headset *hs = device->headset;
436 struct headset *hs = dev->headset;
446 struct headset *hs = dev->headset;
478 static void pending_connect_init(struct headset *hs, headset_state_t target_state)
490 static unsigned int connect_cb_new(struct headset *hs,
516 int (*cmp) (struct headset *hs),
524 struct headset *hs = device->headset;
535 error("Failed to send to headset: %s (%d)",
541 static int cli_cmp(struct headset *hs)
570 struct headset *hs = dev->headset;
594 DBG("SCO socket opened for headset %s", dev->path);
627 struct headset *hs = dev->headset;
660 static int hfp_cmp(struct headset *hs)
670 struct headset *hs = dev->headset;
699 struct headset *hs = device->headset;
715 struct headset *hs = device->headset;
774 struct headset *hs = dev->headset;
851 struct headset *hs = device->headset;
882 struct headset *hs = device->headset;
900 struct headset *hs = device->headset;
955 struct headset *hs = device->headset;
1002 struct headset *hs = device->headset;
1063 struct headset *hs = device->headset;
1071 DBG("CME errors enabled for headset %p", hs);
1074 DBG("CME errors disabled for headset %p", hs);
1082 struct headset *hs = device->headset;
1090 DBG("Call waiting notification enabled for headset %p", hs);
1093 DBG("Call waiting notification disabled for headset %p", hs);
1112 struct headset *hs = device->headset;
1139 struct headset *hs = device->headset;
1159 struct headset *hs = device->headset;
1232 struct headset *hs = device->headset;
1251 struct headset *hs;
1260 hs = device->headset;
1347 struct headset *hs = dev->headset;
1413 static int headset_set_channel(struct headset *headset,
1420 error("Unable to get access protos from headset record");
1430 error("Unable to get RFCOMM channel from Headset record");
1434 headset->rfcomm_ch = ch;
1437 headset->hfp_handle = record->handle;
1440 headset->hsp_handle = record->handle;
1441 DBG("Discovered Headset service on channel %d", ch);
1450 struct headset *hs = dev->headset;
1532 struct headset *hs = device->headset;
1575 struct headset *hs = dev->headset;
1625 struct headset *hs = device->headset;
1646 struct headset *hs = device->headset;
1666 struct headset *hs = device->headset;
1694 connected = (device->headset->state >= HEADSET_STATE_CONNECTED);
1706 struct headset *hs = device->headset;
1743 struct headset *hs = device->headset;
1781 struct headset *hs = device->headset;
1806 struct headset *hs = device->headset;
1810 error("Refusing Headset.Play() because SCO HCI routing "
1854 struct headset *hs = device->headset;
1880 struct headset *hs = device->headset;
1907 struct headset *hs = device->headset;
1987 value = (device->headset->state == HEADSET_STATE_PLAYING);
1991 state = state2str(device->headset->state);
1996 value = (device->headset->state >= HEADSET_STATE_CONNECTED);
2005 &device->headset->slc->sp_gain);
2010 &device->headset->slc->mic_gain);
2098 struct headset *headset = dev->headset;
2107 if (headset->hfp_handle &&
2108 (headset->hfp_handle != record->handle)) {
2113 headset->hfp_handle = record->handle;
2117 if (headset->hsp_handle &&
2118 (headset->hsp_handle != record->handle)) {
2123 headset->hsp_handle = record->handle;
2126 if (headset->hfp_handle)
2139 struct headset *hs = dev->headset;
2157 struct headset *hs = dev->headset;
2172 dev->headset = NULL;
2178 struct headsetheadset;
2181 DBG("Headset unregistered while device was connected!");
2197 struct headset *headset_init(struct audio_device *dev, uint16_t svc,
2200 struct headset *hs;
2203 hs = g_new0(struct headset, 1);
2261 error("Invalid Headset Routing value: %s", str);
2276 struct headset *hs = dev->headset;
2324 struct headset *hs = dev->headset;
2359 struct headset *hs = dev->headset;
2392 struct headset *hs = dev->headset;
2414 struct headset *hs = dev->headset;
2421 struct headset *hs = dev->headset;
2428 struct headset *hs = dev->headset;
2435 struct headset *hs = dev->headset;
2447 struct headset *hs = dev->headset;
2471 info("Headset: disconnect %s", device->path);
2478 struct headset *hs = dev->headset;
2592 struct headset *hs = dev->headset;
2599 struct headset *hs = dev->headset;
2606 struct headset *hs = dev->headset;
2616 struct headset *hs = dev->headset;
2623 struct headset *hs = dev->headset;
2635 struct headset *hs = dev->headset;
2672 struct headset *hs = dev->headset;
2682 struct headset *hs = dev->headset;
2697 struct pending_connect *p = dev->headset->pending;
2743 struct headset *hs;
2751 hs = dev->headset;
2796 if (!dev->headset->slc->pending_ring && !ag.ring_timer)
2799 dev->headset->slc->pending_ring = FALSE;
2852 static int cwa_cmp(struct headset *hs)