public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] a2play and btsco questions
@ 2006-09-18 10:01 joakim
  2006-09-18 22:41 ` Brad Midgley
  0 siblings, 1 reply; 11+ messages in thread
From: joakim @ 2006-09-18 10:01 UTC (permalink / raw)
  To: bluez-users

I'm using my HBH-DS970 headset with a2play, and it works nicely.
However, I would also like o use the daemon functionality of the btsco
key daemon at the same time, so as to control playback with the
headset butons. Is this possible?


-- 
Joakim Verona
http://www.verona.se


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-18 10:01 [Bluez-users] a2play and btsco questions joakim
@ 2006-09-18 22:41 ` Brad Midgley
  2006-09-19  7:36   ` joakim
  0 siblings, 1 reply; 11+ messages in thread
From: Brad Midgley @ 2006-09-18 22:41 UTC (permalink / raw)
  To: BlueZ users

joakim

> I'm using my HBH-DS970 headset with a2play, and it works nicely.
> However, I would also like o use the daemon functionality of the btsco
> key daemon at the same time, so as to control playback with the
> headset butons. Is this possible?

well it might be possible for you to hack something together using the
btsco settings file.

if your headset supports avrcp, you should be able to use the alsa
plugin and a2dpd daemon to control playback. that would be more flexible.

brad

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-18 22:41 ` Brad Midgley
@ 2006-09-19  7:36   ` joakim
  2006-09-19 10:43     ` joakim
  0 siblings, 1 reply; 11+ messages in thread
From: joakim @ 2006-09-19  7:36 UTC (permalink / raw)
  To: bluez-users

Brad Midgley <bmidgley@xmission.com> writes:

> joakim
>
>> I'm using my HBH-DS970 headset with a2play, and it works nicely.
>> However, I would also like o use the daemon functionality of the btsco
>> key daemon at the same time, so as to control playback with the
>> headset butons. Is this possible?
>
> well it might be possible for you to hack something together using the
> btsco settings file.
>
> if your headset supports avrcp, you should be able to use the alsa
> plugin and a2dpd daemon to control playback. that would be more flexible.

According to the docs I need a2play to play stereo, since the
HBH-DS970 supports stereo. Has this requirement changed? It would be
much nicer wih a proper alsa device of course.

>
> brad
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

-- 
Joakim Verona
http://www.verona.se


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-19  7:36   ` joakim
@ 2006-09-19 10:43     ` joakim
  2006-09-19 12:17       ` Frédéric DALLEAU
  0 siblings, 1 reply; 11+ messages in thread
From: joakim @ 2006-09-19 10:43 UTC (permalink / raw)
  To: bluez-users

joakim@verona.se writes:

I tried the a2dpd daemon as per Brad:s suggestion, but Im having
difficulties. The build and install went ok.

This is my configuration:
~/.asoundrc
pcm.headphone {
              type a2dp
              bdaddr "00:16:B8:0E:8B:15"
}

~/.a2dprc
[a2dpd]
address=00:16:B8:0E:8B:15
cmdplay=echo play
cmdnext=echo next
cmdpause=echo pause
cmdprev=echo prev
cmdnew=echo cmdnew
logfile=/tmp/a2dpdlog

then I start a2dpd

then I test with:
mplayer -ao alsa:device=headphone 01.mp3

alsa-init: using device headphone
DEBUG: _snd_pcm_a2dp_open: name headphone mode 0
DEBUG: _snd_pcm_a2dp_open: bdaddr/dest is 00:16:B8:0E:8B:15
DEBUG: a2dp_alloc: init
DEBUG: a2dp_connect: a2dp 0xa3b75b8 (sk=0, control_sk=0)
DEBUG: connect_stream: Using address: 15:8B:0E:B8:16:00
DEBUG: detect_a2dp: Found A2DP Sink
DEBUG: connect_stream: Found A2DP Sink at the destination
DEBUG: do_connect: Connected [imtu 672, omtu 672, flush_to 65535]
DEBUG: connect_stream: Sent the Stream End Point Discovery Command
DEBUG: connect_stream: couldn't get avdtp_discover

So something goes wrong

a2dpd has this to say:
a2dpd
Cannot open /dev/input/uinput: No such file or directory
a2dpd [Sep 19 2006 11:50:59] starting ...a2dpd addr=00:16:B8:0E:8B:15
timer=4000 us [Sep 19 2006 11:50:59]
setscheduler returns -1 (errno=1:Operation not permitted)
main_thread:Accepting incoming tcp stream connection
New connection to bluetooth [44100 hz]
avrcp: Accepting incoming connection
avdtp: Accepting incoming connection


the device works in stereo with a2dplay


> Brad Midgley <bmidgley@xmission.com> writes:
>
>> joakim
>>
>>> I'm using my HBH-DS970 headset with a2play, and it works nicely.
>>> However, I would also like o use the daemon functionality of the btsco
>>> key daemon at the same time, so as to control playback with the
>>> headset butons. Is this possible?
>>
>> well it might be possible for you to hack something together using the
>> btsco settings file.
>>
>> if your headset supports avrcp, you should be able to use the alsa
>> plugin and a2dpd daemon to control playback. that would be more flexible.
>
> According to the docs I need a2play to play stereo, since the
> HBH-DS970 supports stereo. Has this requirement changed? It would be
> much nicer wih a proper alsa device of course.
>
>>
>> brad
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> -- 
> Joakim Verona
> http://www.verona.se
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

-- 
Joakim Verona
http://www.verona.se


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-19 10:43     ` joakim
@ 2006-09-19 12:17       ` Frédéric DALLEAU
  2006-09-19 12:41         ` joakim
  0 siblings, 1 reply; 11+ messages in thread
From: Frédéric DALLEAU @ 2006-09-19 12:17 UTC (permalink / raw)
  To: BlueZ users

Hi,
plugin type is a2dpd

pcm.headphone {
              type a2dpd   <------------------here
              bdaddr "00:16:B8:0E:8B:15"
}

Fr=E9d=E9ric



joakim@verona.se a =E9crit :
> joakim@verona.se writes:
>
> I tried the a2dpd daemon as per Brad:s suggestion, but Im having
> difficulties. The build and install went ok.
>
> This is my configuration:
> ~/.asoundrc
> pcm.headphone {
>               type a2dp
>               bdaddr "00:16:B8:0E:8B:15"
> }
>
> ~/.a2dprc
> [a2dpd]
> address=3D00:16:B8:0E:8B:15
> cmdplay=3Decho play
> cmdnext=3Decho next
> cmdpause=3Decho pause
> cmdprev=3Decho prev
> cmdnew=3Decho cmdnew
> logfile=3D/tmp/a2dpdlog
>
> then I start a2dpd
>
> then I test with:
> mplayer -ao alsa:device=3Dheadphone 01.mp3
>
> alsa-init: using device headphone
> DEBUG: _snd_pcm_a2dp_open: name headphone mode 0
> DEBUG: _snd_pcm_a2dp_open: bdaddr/dest is 00:16:B8:0E:8B:15
> DEBUG: a2dp_alloc: init
> DEBUG: a2dp_connect: a2dp 0xa3b75b8 (sk=3D0, control_sk=3D0)
> DEBUG: connect_stream: Using address: 15:8B:0E:B8:16:00
> DEBUG: detect_a2dp: Found A2DP Sink
> DEBUG: connect_stream: Found A2DP Sink at the destination
> DEBUG: do_connect: Connected [imtu 672, omtu 672, flush_to 65535]
> DEBUG: connect_stream: Sent the Stream End Point Discovery Command
> DEBUG: connect_stream: couldn't get avdtp_discover
>
> So something goes wrong
>
> a2dpd has this to say:
> a2dpd
> Cannot open /dev/input/uinput: No such file or directory
> a2dpd [Sep 19 2006 11:50:59] starting ...a2dpd addr=3D00:16:B8:0E:8B:15
> timer=3D4000 us [Sep 19 2006 11:50:59]
> setscheduler returns -1 (errno=3D1:Operation not permitted)
> main_thread:Accepting incoming tcp stream connection
> New connection to bluetooth [44100 hz]
> avrcp: Accepting incoming connection
> avdtp: Accepting incoming connection
>
>
> the device works in stereo with a2dplay
>
>
>   =

>> Brad Midgley <bmidgley@xmission.com> writes:
>>
>>     =

>>> joakim
>>>
>>>       =

>>>> I'm using my HBH-DS970 headset with a2play, and it works nicely.
>>>> However, I would also like o use the daemon functionality of the btsco
>>>> key daemon at the same time, so as to control playback with the
>>>> headset butons. Is this possible?
>>>>         =

>>> well it might be possible for you to hack something together using the
>>> btsco settings file.
>>>
>>> if your headset supports avrcp, you should be able to use the alsa
>>> plugin and a2dpd daemon to control playback. that would be more flexibl=
e.
>>>       =

>> According to the docs I need a2play to play stereo, since the
>> HBH-DS970 supports stereo. Has this requirement changed? It would be
>> much nicer wih a proper alsa device of course.
>>
>>     =

>>> brad
>>>
>>> -----------------------------------------------------------------------=
--
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share=
 your
>>> opinions on IT & business topics through brief surveys -- and earn cash
>>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=
=3DDEVDEV
>>>       =

>> -- =

>> Joakim Verona
>> http://www.verona.se
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share =
your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=
=3DDEVDEV
>>     =

>
>   =



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-19 12:17       ` Frédéric DALLEAU
@ 2006-09-19 12:41         ` joakim
  2006-09-19 12:55           ` joakim
  0 siblings, 1 reply; 11+ messages in thread
From: joakim @ 2006-09-19 12:41 UTC (permalink / raw)
  To: bluez-users

Fr=E9d=E9ric DALLEAU <frederic.dalleau@palmsource.com> writes:



> Hi,
> plugin type is a2dpd
>
> pcm.headphone {
>               type a2dpd   <------------------here
>               bdaddr "00:16:B8:0E:8B:15"
> }

Thanks for spotting this!

Some problems remains:
- the sound is much "choppier" than with a2play
I suspect this line from a2dpd output:
setscheduler returns -1 (errno=3D1:Operation not permitted)

must I run a2dpd as root?

- I only get sound in 1 earpiece, the sound is very soft in the other one.


> Fr=E9d=E9ric
>
>
>
> joakim@verona.se a =E9crit :
>> joakim@verona.se writes:
>>
>> I tried the a2dpd daemon as per Brad:s suggestion, but Im having
>> difficulties. The build and install went ok.
>>
>> This is my configuration:
>> ~/.asoundrc
>> pcm.headphone {
>>               type a2dp
>>               bdaddr "00:16:B8:0E:8B:15"
>> }
>>
>> ~/.a2dprc
>> [a2dpd]
>> address=3D00:16:B8:0E:8B:15
>> cmdplay=3Decho play
>> cmdnext=3Decho next
>> cmdpause=3Decho pause
>> cmdprev=3Decho prev
>> cmdnew=3Decho cmdnew
>> logfile=3D/tmp/a2dpdlog
>>
>> then I start a2dpd
>>
>> then I test with:
>> mplayer -ao alsa:device=3Dheadphone 01.mp3
>>
>> alsa-init: using device headphone
>> DEBUG: _snd_pcm_a2dp_open: name headphone mode 0
>> DEBUG: _snd_pcm_a2dp_open: bdaddr/dest is 00:16:B8:0E:8B:15
>> DEBUG: a2dp_alloc: init
>> DEBUG: a2dp_connect: a2dp 0xa3b75b8 (sk=3D0, control_sk=3D0)
>> DEBUG: connect_stream: Using address: 15:8B:0E:B8:16:00
>> DEBUG: detect_a2dp: Found A2DP Sink
>> DEBUG: connect_stream: Found A2DP Sink at the destination
>> DEBUG: do_connect: Connected [imtu 672, omtu 672, flush_to 65535]
>> DEBUG: connect_stream: Sent the Stream End Point Discovery Command
>> DEBUG: connect_stream: couldn't get avdtp_discover
>>
>> So something goes wrong
>>
>> a2dpd has this to say:
>> a2dpd
>> Cannot open /dev/input/uinput: No such file or directory
>> a2dpd [Sep 19 2006 11:50:59] starting ...a2dpd addr=3D00:16:B8:0E:8B:15
>> timer=3D4000 us [Sep 19 2006 11:50:59]
>> setscheduler returns -1 (errno=3D1:Operation not permitted)
>> main_thread:Accepting incoming tcp stream connection
>> New connection to bluetooth [44100 hz]
>> avrcp: Accepting incoming connection
>> avdtp: Accepting incoming connection
>>
>>
>> the device works in stereo with a2dplay
>>
>>
>>   =

>>> Brad Midgley <bmidgley@xmission.com> writes:
>>>
>>>     =

>>>> joakim
>>>>
>>>>       =

>>>>> I'm using my HBH-DS970 headset with a2play, and it works nicely.
>>>>> However, I would also like o use the daemon functionality of the btsco
>>>>> key daemon at the same time, so as to control playback with the
>>>>> headset butons. Is this possible?
>>>>>         =

>>>> well it might be possible for you to hack something together using the
>>>> btsco settings file.
>>>>
>>>> if your headset supports avrcp, you should be able to use the alsa
>>>> plugin and a2dpd daemon to control playback. that would be more flexib=
le.
>>>>       =

>>> According to the docs I need a2play to play stereo, since the
>>> HBH-DS970 supports stereo. Has this requirement changed? It would be
>>> much nicer wih a proper alsa device of course.
>>>
>>>     =

>>>> brad
>>>>
>>>> ----------------------------------------------------------------------=
---
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to shar=
e your
>>>> opinions on IT & business topics through brief surveys -- and earn cash
>>>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=
=3DDEVDEV>>>       =

>>> -- =

>>> Joakim Verona
>>> http://www.verona.se>>
>>>
>>> -----------------------------------------------------------------------=
--
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share=
 your
>>> opinions on IT & business topics through brief surveys -- and earn cash
>>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=
=3DDEVDEV>>     =

>>
>>   =

>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share y=
our
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV

-- =

Joakim Verona
http://www.verona.se


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-19 12:41         ` joakim
@ 2006-09-19 12:55           ` joakim
  2006-09-19 13:07             ` Frédéric DALLEAU
  0 siblings, 1 reply; 11+ messages in thread
From: joakim @ 2006-09-19 12:55 UTC (permalink / raw)
  To: bluez-users

joakim@verona.se writes:

> Fr=E9d=E9ric DALLEAU <frederic.dalleau@palmsource.com> writes:
>
>
>
>> Hi,
>> plugin type is a2dpd
>>
>> pcm.headphone {
>>               type a2dpd   <------------------here
>>               bdaddr "00:16:B8:0E:8B:15"
>> }
>
> Thanks for spotting this!
>
> Some problems remains:
> - the sound is much "choppier" than with a2play
> I suspect this line from a2dpd output:
> setscheduler returns -1 (errno=3D1:Operation not permitted)
>
> must I run a2dpd as root?
>
> - I only get sound in 1 earpiece, the sound is very soft in the other one.

Forgot:
the "cmd" definitions doesnt seem to do anything!

>
>> Fr=E9d=E9ric
>>
>>
>>
>> joakim@verona.se a =E9crit :
>>> joakim@verona.se writes:
>>>
>>> I tried the a2dpd daemon as per Brad:s suggestion, but Im having
>>> difficulties. The build and install went ok.
>>>
>>> This is my configuration:
>>> ~/.asoundrc
>>> pcm.headphone {
>>>               type a2dp
>>>               bdaddr "00:16:B8:0E:8B:15"
>>> }
>>>
>>> ~/.a2dprc
>>> [a2dpd]
>>> address=3D00:16:B8:0E:8B:15
>>> cmdplay=3Decho play
>>> cmdnext=3Decho next
>>> cmdpause=3Decho pause
>>> cmdprev=3Decho prev
>>> cmdnew=3Decho cmdnew
>>> logfile=3D/tmp/a2dpdlog
>>>
>>> then I start a2dpd
>>>
>>> then I test with:
>>> mplayer -ao alsa:device=3Dheadphone 01.mp3
>>>
>>> alsa-init: using device headphone
>>> DEBUG: _snd_pcm_a2dp_open: name headphone mode 0
>>> DEBUG: _snd_pcm_a2dp_open: bdaddr/dest is 00:16:B8:0E:8B:15
>>> DEBUG: a2dp_alloc: init
>>> DEBUG: a2dp_connect: a2dp 0xa3b75b8 (sk=3D0, control_sk=3D0)
>>> DEBUG: connect_stream: Using address: 15:8B:0E:B8:16:00
>>> DEBUG: detect_a2dp: Found A2DP Sink
>>> DEBUG: connect_stream: Found A2DP Sink at the destination
>>> DEBUG: do_connect: Connected [imtu 672, omtu 672, flush_to 65535]
>>> DEBUG: connect_stream: Sent the Stream End Point Discovery Command
>>> DEBUG: connect_stream: couldn't get avdtp_discover
>>>
>>> So something goes wrong
>>>
>>> a2dpd has this to say:
>>> a2dpd
>>> Cannot open /dev/input/uinput: No such file or directory
>>> a2dpd [Sep 19 2006 11:50:59] starting ...a2dpd addr=3D00:16:B8:0E:8B:15
>>> timer=3D4000 us [Sep 19 2006 11:50:59]
>>> setscheduler returns -1 (errno=3D1:Operation not permitted)
>>> main_thread:Accepting incoming tcp stream connection
>>> New connection to bluetooth [44100 hz]
>>> avrcp: Accepting incoming connection
>>> avdtp: Accepting incoming connection
>>>
>>>
>>> the device works in stereo with a2dplay
>>>
>>>
>>>   =

>>>> Brad Midgley <bmidgley@xmission.com> writes:
>>>>
>>>>     =

>>>>> joakim
>>>>>
>>>>>       =

>>>>>> I'm using my HBH-DS970 headset with a2play, and it works nicely.
>>>>>> However, I would also like o use the daemon functionality of the bts=
co
>>>>>> key daemon at the same time, so as to control playback with the
>>>>>> headset butons. Is this possible?
>>>>>>         =

>>>>> well it might be possible for you to hack something together using the
>>>>> btsco settings file.
>>>>>
>>>>> if your headset supports avrcp, you should be able to use the alsa
>>>>> plugin and a2dpd daemon to control playback. that would be more flexi=
ble.
>>>>>       =

>>>> According to the docs I need a2play to play stereo, since the
>>>> HBH-DS970 supports stereo. Has this requirement changed? It would be
>>>> much nicer wih a proper alsa device of course.
>>>>
>>>>     =

>>>>> brad
>>>>>
>>>>> ---------------------------------------------------------------------=
----
>>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>>> Join SourceForge.net's Techsay panel and you'll get the chance to sha=
re your
>>>>> opinions on IT & business topics through brief surveys -- and earn ca=
sh
>>>>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI=
D=3DDEVDEV>>>>>> -- =

>>>> Joakim Verona
>>>> http://www.verona.se>>>>>
>>>> ----------------------------------------------------------------------=
---
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to shar=
e your
>>>> opinions on IT & business topics through brief surveys -- and earn cash
>>>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=
=3DDEVDEV>>>>
>>>   =

>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share =
your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=
=3DDEVDEV
>
> -- =

> Joakim Verona
> http://www.verona.se
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share y=
our
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV

-- =

Joakim Verona
http://www.verona.se


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-19 12:55           ` joakim
@ 2006-09-19 13:07             ` Frédéric DALLEAU
  2006-09-19 15:20               ` joakim
  0 siblings, 1 reply; 11+ messages in thread
From: Frédéric DALLEAU @ 2006-09-19 13:07 UTC (permalink / raw)
  To: BlueZ users


>> Some problems remains:
>> - the sound is much "choppier" than with a2play
>>     =

It should not be that bad, try another audio player ( =

xmms/amarok/xine/mpg321 )
>> I suspect this line from a2dpd output:
>> setscheduler returns -1 (errno=3D1:Operation not permitted)
>>
>> must I run a2dpd as root?
>>     =

not necessary but can help as it increase priority
>> - I only get sound in 1 earpiece, the sound is very soft in the other on=
e.
>>     =

bug, use sample.a2dprc as a base
revert the value used for enablereversestereo (1 instead of 0)
> Forgot:
> the "cmd" definitions doesnt seem to do anything!
>   =

Does your headset support AVRCP ? sdptool browse "ad:dr:ess"

Fr=E9d=E9ric



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-19 13:07             ` Frédéric DALLEAU
@ 2006-09-19 15:20               ` joakim
  2006-09-20 12:20                 ` joakim
  0 siblings, 1 reply; 11+ messages in thread
From: joakim @ 2006-09-19 15:20 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

Frédéric DALLEAU <frederic.dalleau@palmsource.com> writes:

>>> Some problems remains:
>>> - the sound is much "choppier" than with a2play
>>>     
> It should not be that bad, try another audio player ( 
> xmms/amarok/xine/mpg321 )
>>> I suspect this line from a2dpd output:
>>> setscheduler returns -1 (errno=1:Operation not permitted)
>>>
>>> must I run a2dpd as root?
>>>     
> not necessary but can help as it increase priority
>>> - I only get sound in 1 earpiece, the sound is very soft in the other one.
>>>     
> bug, use sample.a2dprc as a base
> revert the value used for enablereversestereo (1 instead of 0)

Thanks, I didnt notice this file.

>> Forgot:
>> the "cmd" definitions doesnt seem to do anything!
>>   
> Does your headset support AVRCP ? sdptool browse "ad:dr:ess"

Im not sure how to interpret it. I attach the output.

[-- Attachment #2: headsetcap --]
[-- Type: application/octet-stream, Size: 1669 bytes --]

Browsing 00:16:B8:0E:8B:15 ...
Service Name: SonyEricsson Remote Control Service
Service RecHandle: 0x10301
Service Class ID List:
  "AV Remote" (0x110e)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x100
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0100

Service Name: SonyEricsson Remote Control Service
Service RecHandle: 0x10302
Service Class ID List:
  "AV Remote Target" (0x110c)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 23
  "AVCTP" (0x0017)
    uint16: 0x100
Profile Descriptor List:
  "AV Remote" (0x110e)
    Version: 0x0100

Service Name: SonyEricsson Audio Service
Service RecHandle: 0x10303
Service Class ID List:
  "Audio Sink" (0x110b)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 25
  "AVDTP" (0x0019)
    uint16: 0x100
Profile Descriptor List:
  "Advanced Audio" (0x110d)
    Version: 0x0100

Service Name: SEMC HLA
Service RecHandle: 0x10501
Service Class ID List:
  "" (0x8e771301)
Protocol Descriptor List:
  "L2CAP" (0x0100)
    PSM: 61689
  "" (0x8e770300)
Profile Descriptor List:

Service Name: SonyEricsson Headset Service
Service RecHandle: 0x10002
Service Class ID List:
  "Headset" (0x1108)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 1
Profile Descriptor List:
  "Headset" (0x1108)
    Version: 0x0100

Service Name: SonyEricsson HandsfreeService
Service RecHandle: 0x10003
Service Class ID List:
  "Handsfree" (0x111e)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 2
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0102


[-- Attachment #3: Type: text/plain, Size: 418 bytes --]



> Frédéric
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

-- 
Joakim Verona
http://www.verona.se

[-- Attachment #4: Type: text/plain, Size: 348 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #5: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-19 15:20               ` joakim
@ 2006-09-20 12:20                 ` joakim
  2006-09-22  8:15                   ` Frédéric DALLEAU
  0 siblings, 1 reply; 11+ messages in thread
From: joakim @ 2006-09-20 12:20 UTC (permalink / raw)
  To: bluez-users

joakim@verona.se writes:

> Fr=E9d=E9ric DALLEAU <frederic.dalleau@palmsource.com> writes:

It seems I can get the AVRCP commands to work "sometimes"(for some
unknown definition of "sometimes"), so my headset appear to support
it.

so , current problems are:
- I dont know how to make AVRCP commands work reliably, or how to
debug it. I think maybe some command has to produce output to the
a2dpd daemon for AVRCP commands to be received.

- xmms output is really choppy, whereas mplayer output is ok.
I tried fiddling about with xmms alsa settings, like mmap and buffer
settings and whatnot, but no real breakthrough.



>
>>>> Some problems remains:
>>>> - the sound is much "choppier" than with a2play
>>>>     =

>> It should not be that bad, try another audio player ( =

>> xmms/amarok/xine/mpg321 )
>>>> I suspect this line from a2dpd output:
>>>> setscheduler returns -1 (errno=3D1:Operation not permitted)
>>>>
>>>> must I run a2dpd as root?
>>>>     =

>> not necessary but can help as it increase priority
>>>> - I only get sound in 1 earpiece, the sound is very soft in the other =
one.
>>>>     =

>> bug, use sample.a2dprc as a base
>> revert the value used for enablereversestereo (1 instead of 0)
>
> Thanks, I didnt notice this file.
>
>>> Forgot:
>>> the "cmd" definitions doesnt seem to do anything!
>>>   =

>> Does your headset support AVRCP ? sdptool browse "ad:dr:ess"
>
> Im not sure how to interpret it. I attach the output.
>
>
>
>> Fr=E9d=E9ric
>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share =
your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=
=3DDEVDEV
>
> -- =

> Joakim Verona
> http://www.verona.se
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share y=
our
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV_______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users

-- =

Joakim Verona
http://www.verona.se


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Bluez-users] a2play and btsco questions
  2006-09-20 12:20                 ` joakim
@ 2006-09-22  8:15                   ` Frédéric DALLEAU
  0 siblings, 0 replies; 11+ messages in thread
From: Frédéric DALLEAU @ 2006-09-22  8:15 UTC (permalink / raw)
  To: BlueZ users

Hi,
> It seems I can get the AVRCP commands to work "sometimes"(for some
> unknown definition of "sometimes"), so my headset appear to support
> it.
>
> so , current problems are:
> - I dont know how to make AVRCP commands work reliably, or how to
> debug it. I think maybe some command has to produce output to the
> a2dpd daemon for AVRCP commands to be received.
>   
A2DPD can run some commands to control a mediaplayer remotly.
Xmms provide such features. It is player dependent and can be customized 
in .a2dprc.

My old headset behave differently depending whether it was receiving 
sound or not :
When not receiving sound, it did not do AVRCP at all, but it tried to 
establish an A2DP connection. So the daemon received this incoming A2DP 
connection, close it and  launch the media player, wich in turn will 
make a new outgoing A2DP connection to the headset.

When playing, the headset will send normal AVRCP commands.

> - xmms output is really choppy, whereas mplayer output is ok.
> I tried fiddling about with xmms alsa settings, like mmap and buffer
> settings and whatnot, but no real breakthrough.
>   
Do you send 44100 Hz stereo? It's the only supported format. Other 
format need conversion.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-22  8:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-18 10:01 [Bluez-users] a2play and btsco questions joakim
2006-09-18 22:41 ` Brad Midgley
2006-09-19  7:36   ` joakim
2006-09-19 10:43     ` joakim
2006-09-19 12:17       ` Frédéric DALLEAU
2006-09-19 12:41         ` joakim
2006-09-19 12:55           ` joakim
2006-09-19 13:07             ` Frédéric DALLEAU
2006-09-19 15:20               ` joakim
2006-09-20 12:20                 ` joakim
2006-09-22  8:15                   ` Frédéric DALLEAU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox