linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: nirav rabara <niravrabara@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: SetMicrophoneGain & SetSpeakerGain API problem
Date: Thu, 7 Jan 2010 15:01:20 +0530	[thread overview]
Message-ID: <912bb79a1001070131p6621cf32ke452d49e05f7483d@mail.gmail.com> (raw)

I am using bluez 4.58 stack, I am able to connect, & disconnect HS
with bluetoothd. Also I am able to access API provided in bluez for
manager , adapter & headset etc.

I am using HCI layer only for SCO connection and rest of the
functionality for HS (connection, disconnection properties information
) am using D-BUS API.

But When I call SetMicrophoneGain/ SetSpeakerGain with gain
value(0-15),  GetProperties gives following message

(SpeakerGain - 11 )
QDBusMessage(type=MethoReturn,
service=":1.0",signature="a[sv]",contents=([Argument: a{sv} {"Playing
=[Variant(bool):false],"State" = [Variant(QString):"connected",
"Connected" = [Variant(bool):true], "SpeakerGain"  = [Variant(ushort):
10], "MicrophoneGain" = [Varinat(ushort): 6]}]))

(SpeakerGain - 10 )
QDBusMessage(type=MethoReturn,
service=":1.0",signature="a[sv]",contents=([Argument: a{sv} {"Playing
=[Variant(bool):false],"State" = [Variant(QString):"connected",
"Connected" = [Variant(bool):true], "SpeakerGain"  = [Variant(ushort):
10], "MicrophoneGain" = [Varinat(ushort): 6]}]))

(SpeakerGain - 7 )
QDBusMessage(type=MethoReturn,
service=":1.0",signature="a[sv]",contents=([Argument: a{sv} {"Playing
=[Variant(bool):false],"State" = [Variant(QString):"connected",
"Connected" = [Variant(bool):true], "SpeakerGain"  = [Variant(ushort):
7], "MicrophoneGain" = [Varinat(ushort): 6]}]))

(SpeakerGain - 15 )
QDBusMessage(type=MethoReturn,
service=":1.0",signature="a[sv]",contents=([Argument: a{sv} {"Playing
=[Variant(bool):false],"State" = [Variant(QString):"connected",
"Connected" = [Variant(bool):true], "SpeakerGain"  = [Variant(ushort):
15], "MicrophoneGain" = [Varinat(ushort): 6]}]))

(MicrophoneGain - 8 )
QDBusMessage(type=MethoReturn,
service=":1.0",signature="a[sv]",contents=([Argument: a{sv} {"Playing
=[Variant(bool):false],"State" = [Variant(QString):"connected",
"Connected" = [Variant(bool):true], "SpeakerGain"  = [Variant(ushort):
10], "MicrophoneGain" = [Varinat(ushort): 8]}]))

(MicrophoneGain- 4)
QDBusMessage(type=MethoReturn,
service=":1.0",signature="a[sv]",contents=([Argument: a{sv} {"Playing
=[Variant(bool):false],"State" = [Variant(QString):"connected",
"Connected" = [Variant(bool):true], "SpeakerGain"  = [Variant(ushort):
7], "MicrophoneGain" = [Varinat(ushort): 4]}]))

(MicrophoneGain - 11 )
QDBusMessage(type=MethoReturn,
service=":1.0",signature="a[sv]",contents=([Argument: a{sv} {"Playing
=[Variant(bool):false],"State" = [Variant(QString):"connected",
"Connected" = [Variant(bool):true], "SpeakerGain"  = [Variant(ushort):
15], "MicrophoneGain" = [Varinat(ushort): 11]}]))

So when I use GetProperties its shows that gain for Microphone and
Speaker has changed but actually it has no impact on HS.
Is this a right way to set gain for Mic and Speaker of HS. Or I must
do it though RFCOMM socket

Why API doesn't have any impact even though values are getting changed.

Any help will be appreciable.
-- 
With Regards,
Nirav Rabara

                 reply	other threads:[~2010-01-07  9:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=912bb79a1001070131p6621cf32ke452d49e05f7483d@mail.gmail.com \
    --to=niravrabara@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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).