title: HFP profile with linux and iphone 5
body: <p>how can I use hfp on my ubuntu linux with iphone 5s? I have bluetoooth, all bluez packages and ofono installed.</p>
  
  <p>For ofono I need a modem. From what I understood from bluetooth core, protocoll and profile specification, rfcomm and spp of bluetooth can be used to emulate a modem. How does this work with bluez? Do the bluetoothd and ofonod dbus-services already handle incoming connections to hfp oder do I have to write my own listener?</p>
  
  <p>EDIT:</p>
  
  <p>The program is running. I implemented it according to the test-scripts. But I am experiencing audio issues, as I don't have any sound when performing calls. The sound is not muted.</p>
  
  <p>pa log (translated):<br /></p>
  
  <blockquote>
    <p>Sep 26 13:57:47 ubu2 pulseaudio[2524]: [alsa-sink-Intel ICH]
    alsa-sink.c: ALSA woke us up to write new Data on the Device but there
    was nothing to write!<br /> Sep 26 13:57:47 ubu2 pulseaudio[2524]:
    [alsa-sink-Intel ICH] alsa-sink.c: This is most probably an Error of
    the ALSA-Driver 'snd_intel8x0'. Please send this error to the
    ALSA-Developers.<br /> Sep 26 13:57:47 ubu2 pulseaudio[2524]:
    [alsa-sink-Intel ICH] alsa-sink.c: We have been woken up by the
    POLLOUT-Set, but a following call of snd_pcm_avail() returned the
    value 0 or another value smaller than min_avail.<br /></p>
  </blockquote>
  
  <p>How can I see if ALSA has encountered some errors? I found no log.</p>
  
  <p>When connecting the a2dp-Profile so that my computer are the speakers of the iPhone I also have no sound.</p>
  
  <p>EDIT 2:</p>
  
  <p>To solve this error, this is recommended: <br />
  File: /etc/pulse/default.pa <br />
  Add <code>tsched=0</code> to the following line: <br />
  <code>load-module module-detect</code> <br />
  from post #21 <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/374002" rel="nofollow">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/374002</a></p>
  
  <p>But it does not solve my issue. I try force-loading the also modules too.</p>