public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: joakim@verona.se
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] a2play and btsco questions
Date: Tue, 19 Sep 2006 14:41:05 +0200	[thread overview]
Message-ID: <m3eju8t4f2.fsf@kurono.home> (raw)
In-Reply-To: 450FDFC9.6060804@palmsource.com

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

  reply	other threads:[~2006-09-19 12:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

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=m3eju8t4f2.fsf@kurono.home \
    --to=joakim@verona.se \
    --cc=bluez-users@lists.sourceforge.net \
    /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