Skip to contentSkip to conversation

a2play and btsco questions

Bluez-users [email protected] 3 participants 11 messages Sep 18, 2006 – Sep 22, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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?

Signature · 13 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#1 lore raw

joakim

Quoted 4 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw
Quoted 7 lines · Brad Midgley

joakim

Quoted 4 lines

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?

Quoted 5 lines

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.

Quoted 8 lines

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

Signature · 13 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#3 lore raw

[email protected] 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

Quoted 38 lines
Quoted 7 lines · Brad Midgley

joakim

Quoted 4 lines

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?

Quoted 5 lines

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.

Quoted 8 lines

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

Signature · 9 lines
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
Signature · 13 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
#4 lore raw

Hi,
plugin type is a2dpd

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

Fr=E9d=E9ric

[email protected] a =E9crit :

Quoted 53 lines

[email protected] 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

Quoted 24 lines

the device works in stereo with a2dplay

=

Quoted 19 lines

Brad Midgley <[email protected]> writes:

    =
Quoted 15 lines

joakim

      =
Quoted 5 lines

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.

Quoted 11 lines
Quoted 11 lines
Quoted 1 line
      =

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.

    =
Quoted 3 lines

brad

-----------------------------------------------------------------------=

--

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share=

your

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=

=3DDEVDEV

Quoted 11 lines
Quoted 11 lines
Quoted 1 line
      =

-- =

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

Quoted 2 lines
Quoted 2 lines

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=

=3DDEVDEV

Quoted 4 lines
Quoted 1 line
    =

=

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#5 lore raw
Quoted 7 lines · Fr=E9d=E9ric DALLEAU <[email protected]> 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.

Quoted 4 lines

Fr=E9d=E9ric

Quoted 78 lines

[email protected] a =E9crit :

Quoted 77 lines

[email protected] 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

=

Quoted 19 lines

Brad Midgley <[email protected]> writes:

    =
Quoted 15 lines

joakim

      =
Quoted 5 lines

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.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 1 line
      =

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.

    =
Quoted 3 lines

brad

----------------------------------------------------------------------=

---

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=

=3DDEVDEV>>> =

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-- =

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

-----------------------------------------------------------------------=

--

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share=

your

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=

=3DDEVDEV>> =

Quoted 8 lines
Quoted 2 lines

=

-------------------------------------------------------------------------
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

Quoted 2 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw
Quoted 14 lines · [email protected] writes:
Quoted 7 lines · Fr=E9d=E9ric DALLEAU <[email protected]> writes:

Hi,
plugin type is a2dpd

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

Thanks for spotting this!

Quoted 8 lines

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!

Quoted 66 lines
Quoted 66 lines

Fr=E9d=E9ric

[email protected] a =E9crit :

Quoted 60 lines

[email protected] 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

=

Quoted 2 lines

Brad Midgley <[email protected]> writes:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
    =
Quoted 6 lines

joakim

      =
Quoted 2 lines

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

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

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.

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 1 line
      =

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.

    =
Quoted 3 lines

brad

---------------------------------------------------------------------=

----

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

opinions on IT & business topics through brief surveys -- and earn ca=

sh

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI=

D=3DDEVDEV>>>>>> -- =

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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

---

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=

=3DDEVDEV>>>>

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

=

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share =

your

Quoted 2 lines
Quoted 2 lines

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=

=3DDEVDEV

Quoted 10 lines

-- =

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

Quoted 2 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#7 lore raw
Quoted 4 lines
Quoted 4 lines

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 )

Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

- I only get sound in 1 earpiece, the sound is very soft in the other on=

e.

Quoted 1 line
Quoted 1 line
    =

bug, use sample.a2dprc as a base
revert the value used for enablereversestereo (1 instead of 0)

Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#8 lore raw
Quoted 8 lines · Frédéric DALLEAU
Quoted 3 lines
Quoted 3 lines

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 )

Quoted 3 lines
Quoted 3 lines

I suspect this line from a2dpd output:
setscheduler returns -1 (errno=1:Operation not permitted)

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

must I run a2dpd as root?

not necessary but can help as it increase priority

Quoted 2 lines
Quoted 2 lines

- 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.

Quoted 4 lines
Quoted 3 lines

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.

Quoted 11 lines

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

Signature · 2 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#9 lore raw
Quoted 1 line · [email protected] writes:

Fr=E9d=E9ric DALLEAU <[email protected]> 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.

Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

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 )

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

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

one.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
    =

bug, use sample.a2dprc as a base
revert the value used for enablereversestereo (1 instead of 0)

Thanks, I didnt notice this file.

Quoted 17 lines
Quoted 5 lines
Quoted 3 lines

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.

Quoted 7 lines

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

Quoted 2 lines
Quoted 2 lines

opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=

=3DDEVDEV

Quoted 8 lines

-- =

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

Quoted 2 lines

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_______________________________________________

Quoted 3 lines

Bluez-users mailing list
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#10 lore raw

Hi,

Quoted 9 lines

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.

Quoted 4 lines

- 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users