linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Peter Zotov <whitequark@whitequark.ru>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Handset voice dial signalling patch
Date: Wed, 13 Jan 2010 11:26:20 +0200	[thread overview]
Message-ID: <20100113092620.GA20024@jh-x301> (raw)
In-Reply-To: <4B4D8C5A.8070006@whitequark.ru>

Hi Peter,

On Wed, Jan 13, 2010, Peter Zotov wrote:
> Johan Hedberg wrote:
> >It sounds to me like you're working around another problem. I suspect
> >the issue you're facing is that you don't have a telephony driver that'd
> >keep the headset up-to-date with the current call state, so when you
> >want to answer a call the headset doesn't generate the right AT command
> >(ATA) since it doesn't know that there's an incoming call (instead, the
> >only command it manages to generate is the voice recognition one since
> >that's the default behaviour when the headset thinks that there are no
> >active or pending calls).
> Not exactly. All the code I included to BlueZ is implementing voice
> dialing, perhaps partially; but the interface it exports to outside
> world is misused by VoIP answering emulator because it would be
> probably too hard to emulate all the conversation that is usually
> occuring between HS and AG when there is a real call just to make it
> reply ATA to VoIP proxy. Maybe it's the wrong approach, but it is
> good enough for task.

Fair enough. I just wanted to make sure that you realize what the core
issue is. As long as the misuse of voice dialing isn't in the BlueZ code
itself I have no objections ;)

> +	gboolean voice_dial;
> +	gboolean voice_dial_req;

I'm not so sure that it'll be useful to have this state info in
headset.c. I suspect for the most part voice recognition will be a
platform specific issue that can be taken care of by the telephony
driver. So I'd leave out these new variables for now and add them later
if it turns out that there's actually some use for them in headset.c.

After this change I think the patch could be pushed upstream.

Johan

  reply	other threads:[~2010-01-13  9:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-13  7:36 Handset voice dial signalling patch Peter Zotov
2010-01-13  8:32 ` Johan Hedberg
2010-01-13  9:03   ` Peter Zotov
2010-01-13  9:26     ` Johan Hedberg [this message]
2010-01-13 21:26       ` Peter Zotov
2010-01-14 14:41         ` Johan Hedberg
2010-01-14 21:26           ` Peter Zotov
2010-01-15  6:57             ` Johan Hedberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100113092620.GA20024@jh-x301 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=whitequark@whitequark.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).