From: Klaus <projectu@gmail.com>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel !
Date: Sun, 29 Apr 2007 16:17:10 +0000 (UTC) [thread overview]
Message-ID: <loom.20070429T175311-236@post.gmane.org> (raw)
In-Reply-To: loom.20070429T141323-596@post.gmane.org
Klaus <projectu <at> gmail.com> writes:
>
> In plugz/../pcm_sco.c: sco_headset_hw_params(),
> setsockopt(...,SOL_SCO,...) is called, but it fails with ENOPROTOOPT
> "Protocol not available".
>
> setsockopt() for protocol level SOL_SCO is implemented in the kernel in
> net/bluetooth/sco.c: sco_sock_setsockopt(), but this function only does one
> thing - it returns ENOPROTOOPT:
If the method isn't implemented in the kernel, then IMHO, the obvious thing to
do is to remove the offending calls to setsockopt() from pcm_sco.c.
And - surprice surprice, it works - there is sound in the headset. But the joy
is short.
----
$ mplayer -ao alsa:device=headset ~/eyes_on_me.ogg
[...]
Playing /home/kp/eyes_on_me.ogg.
Audio file file format detected.
[...]
AO: [alsa] 8000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 334.3 (05:34.3) of 333.0 (05:33.0) 1.2%
----
mplayer stops playing after a few sec, and then after another few secs this
happens:
pingus kernel: invalid opcode: 0000 [#1]
[...]
In syslog it looks like this:
----
Apr 29 17:01:00 pingus headsetd[3175]: Bluetooth headset daemon version 0.5
Apr 29 17:01:17 pingus headsetd[3175]: Configuration phase ended: target bdaddr
is 00:02:76:80:27:1F, timeout is 6000 ms
Apr 29 17:01:17 pingus headsetd[3175]: Changing state: Idle-->Paging
Apr 29 17:01:18 pingus headsetd[3175]: Changing state: Paging-->Connecting
Apr 29 17:01:18 pingus hcid[2230]: link_key_request (sba=00:01:53:00:CF:08,
dba=00:02:76:80:27:1F)
Apr 29 17:01:18 pingus headsetd[3175]: Changing state: Connecting-->Ready
Apr 29 17:01:18 pingus kernel: Bluetooth: SCO (Voice Link) ver 0.5
Apr 29 17:01:18 pingus kernel: Bluetooth: SCO socket layer initialized
Apr 29 17:01:18 pingus headsetd[3175]: Changing state: Ready-->Opening
Apr 29 17:01:19 pingus headsetd[3175]: SCO channel opened handle=0x002d mtu=64
Apr 29 17:01:19 pingus headsetd[3175]: Changing state: Opening-->Streaming
Apr 29 17:01:26 pingus headsetd[3175]: Appli closed socket
Apr 29 17:01:26 pingus headsetd[3175]: Changing state: Streaming-->Zombie
Apr 29 17:01:30 pingus headsetd[3175]: Nobody uses SCO channel anymore,
closing it.
Apr 29 17:01:30 pingus headsetd[3175]: Changing state: Zombie-->Connected
Apr 29 17:01:30 pingus kernel: hci_scodata_packet: hci0 SCO packet for unknown
connection handle 45
Apr 29 17:01:30 pingus last message repeated 2 times
Apr 29 17:01:45 pingus kernel: usb 1-1: USB disconnect, address 3
Apr 29 17:01:45 pingus kernel: __tx_submit: hci0 tx submit failed urb c1e722bc
type 3 err -19
Apr 29 17:01:45 pingus kernel: __tx_submit: hci0 tx submit failed urb c1e722bc
type 3 err -19
Apr 29 17:01:45 pingus kernel: slab error in verify_redzone_free(): cache
`size-512': memory outside object was overwritten
Apr 29 17:01:45 pingus kernel: [<c04061e9>] show_trace_log_lvl+0x1a/0x2f
Apr 29 17:01:45 pingus kernel: [<c04067ad>] show_trace+0x12/0x14
Apr 29 17:01:45 pingus kernel: [<c0406831>] dump_stack+0x16/0x18
Apr 29 17:01:45 pingus kernel: [<c04791e6>] __slab_error+0x29/0x2b
Apr 29 17:01:45 pingus kernel: [<c047979a>] cache_free_debugcheck+0xa9/0x19d
Apr 29 17:01:45 pingus kernel: [<c0479ae0>] kfree+0x74/0xc2
Apr 29 17:01:45 pingus kernel: [<e098d34b>] hci_usb_close+0xc2/0x121 [hci_usb]
Apr 29 17:01:45 pingus kernel: [<e098dd0e>] hci_usb_disconnect+0x2a/0x6f
[hci_usb]
Apr 29 17:01:45 pingus kernel: [<c057a61e>] usb_unbind_interface+0x30/0x63
Apr 29 17:01:45 pingus kernel: [<c05628ba>] __device_release_driver+0x74/0x90
Apr 29 17:01:45 pingus kernel: [<c0562d39>] device_release_driver+0x35/0x4c
Apr 29 17:01:45 pingus kernel: [<c05622c7>] bus_remove_device+0x73/0x82
Apr 29 17:01:45 pingus kernel: [<c056090e>] device_del+0x16e/0x1d2
Apr 29 17:01:45 pingus kernel: [<c057840c>] usb_disable_device+0x5f/0xbc
Apr 29 17:01:45 pingus kernel: [<c057514b>] usb_disconnect+0x9a/0x119
Apr 29 17:01:45 pingus kernel: [<c0575df2>] hub_thread+0x2e2/0x992
Apr 29 17:01:45 pingus kernel: [<c043832b>] kthread+0xb3/0xdc
Apr 29 17:01:45 pingus kernel: [<c0405cd3>] kernel_thread_helper+0x7/0x10
Apr 29 17:01:45 pingus kernel: =======================
Apr 29 17:01:45 pingus kernel: c0c27ca5: redzone 1:0x5a5a5a5a,
redzone 2:0x46c05ac8.
Apr 29 17:01:45 pingus kernel: ------------[ cut here ]------------
Apr 29 17:01:45 pingus kernel: kernel BUG at mm/slab.c:2877!
Apr 29 17:01:45 pingus kernel: invalid opcode: 0000 [#1]
Apr 29 17:01:45 pingus kernel: SMP
Apr 29 17:01:45 pingus kernel: last sysfs file:
/devices/pci0000:00/0000:00:02.0/usb1/idVendor
[...]
----
Klaus
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-04-29 16:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-15 9:57 [Bluez-devel] Unable to set number of SCO buffers : please upgrade your Kernel ! Brandon Philips
2007-04-15 18:34 ` Brad Midgley
2007-04-16 7:35 ` Brandon Philips
2007-04-24 18:48 ` Marc Haber
2007-04-29 12:34 ` Klaus
2007-04-29 16:17 ` Klaus [this message]
2007-04-29 16:18 ` Brad Midgley
2007-04-29 20:58 ` Klaus
-- strict thread matches above, loose matches on Subject: below --
2007-04-22 6:52 John Frankish
2007-04-22 16:50 ` Brad Midgley
2007-04-23 4:07 ` John Frankish
2007-04-24 13:45 ` Brad Midgley
2007-04-25 5:56 ` John Frankish
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=loom.20070429T175311-236@post.gmane.org \
--to=projectu@gmail.com \
--cc=bluez-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.