public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: pramod gurav <pramod_gurav_etc@yahoo.co.in>
To: bluez-devel <bluez-devel@lists.sourceforge.net>,
	bluez-users@brisammon.fastmail.fm
Subject: [Bluez-devel] system hangs playing audio on headset
Date: Wed, 6 Feb 2008 10:16:20 +0530 (IST)	[thread overview]
Message-ID: <248211.83326.qm@web8403.mail.in.yahoo.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 3687 bytes --]

Hi All
I am trying play audio from system on my headset.
When try mplayer
[Pramod@localhost ~]$ mplayer_install/bin/mplayer -ao alsa:device=headset 1.mp3

system hangs with following logs in /var/log/messages

Feb  6 09:52:36 localhost hcid[3559]: Bluetooth HCI daemon
Feb  6 09:52:36 localhost hcid[3559]: Starting security manager 0
Feb  6 09:52:56 localhost sdpd[3567]: Bluetooth SDP daemon
Feb  6 09:53:40 localhost headsetd[3596]: Bluetooth headset daemon version 0.5
Feb  6 09:54:46 localhost hcid[3559]: pin_code_request (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)
Feb  6 09:54:51 localhost hcid[3559]: link_key_notify (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)Feb  6 09:55:17 localhost headsetd[3596]: Configuration phase ended: target bdaddr is 00:0F:DE:B1:02:42, timeout is 6000 ms
Feb  6 09:55:17 localhost headsetd[3596]: Changing state: Idle-->Paging
Feb  6 09:55:19 localhost hcid[3559]: pin_code_request (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)
Feb  6 09:55:23 localhost headsetd[3596]: Timeout connecting L2CAP socket to headset, aborting.
Feb  6 09:55:23 localhost headsetd[3596]: Changing state: Paging-->Idle
Feb  6 09:55:28 localhost hcid[3559]: link_key_notify (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)Feb  6 09:55:36 localhost headsetd[3596]: Configuration phase ended: target bdaddr is 00:0F:DE:B1:02:42, timeout is 6000 ms
Feb  6 09:55:36 localhost headsetd[3596]: Changing state: Idle-->Paging
Feb  6 09:55:39 localhost hcid[3559]: link_key_request (sba=00:0B:0D:33:9E:FB, dba=00:0F:DE:B1:02:42)
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Paging-->Connecting
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Connecting-->Ready
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Ready-->Opening
Feb  6 09:55:39 localhost headsetd[3596]: SCO channel opened handle=0x0100 mtu=60
Feb  6 09:55:39 localhost headsetd[3596]: Changing state: Opening-->Streaming
Feb  6 10:00:05 localhost syslogd 1.4.1: restart.

1) My ~/.asoundrc has 
pcm.headset {
        @args [BDADDR TIMEOUT]

        # The Bluetooth device address for target headset,
        # used for Audio Gateway (PC) initiated connections
        # Please note that this value is ignored when the connection is Headset initiated
        @args.BDADDR {
                type string
                # Enter address of your headset here
                default "00:0F:DE:B1:02:42"    #headset BDADDRESS
        }

        # This value represents how long we will try to reach the headset, until we give up.
        # Value is in milliseconds
        @args.TIMEOUT {
                type integer
                default 6000
        }

        type        sco
        bdaddr      $BDADDR
        timeout     $TIMEOUT
}

ctl.headset {
        type sco
}

2) My /etc/bluetooth/audio.service has.................
[Bluetooth Service]
Identifier=audio
Name=Audio service
Description=Bluetooth Audio service
Autostart=true

3)  /etc/bluetooth/hcid.conf  has................
# HCI daemon configuration file.
options {
        autoinit yes;
        security user;
        pairing multi;
#      passkey "BlueZ";
}

4) I am using linux-2.6.22 kernel, Bluez-3.25 (libs, utils), also installed PLUGS & SBC from svn
    But i could not aplly SCO flow control patch to my kernel...it failed..

Need I give more info to know whats going wrong..
Whats is the patch for   SCO flow control for 2.6.22 ??
Someone help me please. 


Thanks and Best regards
 
Pramod





      Forgot the famous last words? Access your message archive online at http://in.messenger.yahoo.com/webmessengerpromo.php

[-- Attachment #1.2: Type: text/html, Size: 5424 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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

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

             reply	other threads:[~2008-02-06  4:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06  4:46 pramod gurav [this message]
2008-02-06  9:23 ` [Bluez-devel] system hangs playing audio on headset Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2008-02-06  9:51 pramod gurav
2008-02-06 10:06 ` Marcel Holtmann
2008-02-06 10:34 pramod gurav
2008-02-06 10:43 ` Marcel Holtmann
2008-02-06 10:45 pramod gurav
2008-02-06 10:59 pramod gurav
2008-02-06 12:25 ` Marcel Holtmann

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=248211.83326.qm@web8403.mail.in.yahoo.com \
    --to=pramod_gurav_etc@yahoo.co.in \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=bluez-users@brisammon.fastmail.fm \
    /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