From: Antonio-Blasco Bonito <blasco.bonito@email.it>
To: Antonio-Blasco Bonito <blasco.bonito@email.it>
Cc: Fredrik Tolf <fredrik@dolda2000.com>,
bluez-devel@lists.sourceforge.net, ms419@freezone.co.uk,
durtro@ginnungagap.de
Subject: Re: [Bluez-devel] Fwd: alsa bluetooth module
Date: Sun, 20 Mar 2005 00:13:26 +0100 [thread overview]
Message-ID: <423CB216.8050006@email.it> (raw)
In-Reply-To: <423B6547.5040001@email.it>
Antonio-Blasco Bonito ha scritto:
> Fredrik Tolf ha scritto:
>
>> Try to check the output of `grep kcalloc /proc/kallsyms' and compare
>> that to the output of `nm /path/to/snd-bt-sco.ko | grep kcalloc'.
>>
>>
> $ grep kcalloc /proc/kallsyms
> ce9f6a40 U snd_kcalloc [snd_opl3_lib]
> ce9f6a40 U snd_kcalloc [snd_hwdep]
> ce9f6a40 U snd_kcalloc [snd_mpu401_uart]
> ce9f6a40 U snd_kcalloc [snd_rawmidi]
> ce9f6a40 U snd_kcalloc [snd_seq_device]
> ce9f6a40 U snd_kcalloc [snd_cs4231_lib]
> ce9f6a40 U snd_kcalloc [snd_pcm_oss]
> ce9f6a40 U snd_kcalloc [snd_mixer_oss]
> ce9f6a40 U snd_kcalloc [snd_pcm]
> ce9f6a40 U snd_kcalloc [snd_timer]
> ce9fc4d8 r __kcrctab_snd_kcalloc [snd]
> ce9fc634 r __kstrtab_snd_kcalloc [snd]
> ce9fca40 r __ksymtab_snd_kcalloc [snd]
> ce9f6a40 T snd_kcalloc [snd]
> 4da9e78a a __crc_snd_kcalloc [snd]
>
> $ nm /lib/modules/2.6.8-2-686/extra/snd-bt-sco.ko |grep kcalloc
> U kcalloc
>
Having seen that, knowing almost nothing about that, I tried editing the
source code of the module btsco.c
I replaced the three occurrences of kcalloc with snd_kcalloc. It
compiled without errors. And then OK!!! ... I've been able to modprobe it.
# lsmod
Module Size Used by
sco 15108 0
isofs 37240 1
snd_bt_sco 13088 3
rfcomm 39420 3
l2cap 25796 7 rfcomm
ipv6 264644 12
ds 18756 4
appletalk 36628 20
lp 11176 0
snd_cs4236 18568 4
snd_opl3_lib 10656 1 snd_cs4236
snd_hwdep 9412 3 snd_bt_sco,snd_opl3_lib
snd_cs4236_lib 16896 1 snd_cs4236
snd_mpu401_uart 7968 1 snd_cs4236
snd_rawmidi 25124 1 snd_mpu401_uart
snd_seq_device 8200 2 snd_opl3_lib,snd_rawmidi
snd_cs4231_lib 27744 2 snd_cs4236,snd_cs4236_lib
snd_pcm_oss 55080 0
snd_mixer_oss 20096 4 snd_pcm_oss
snd_pcm 98728 4
snd_bt_sco,snd_cs4236_lib,snd_cs4231_lib,snd_pcm_oss
snd_timer 25668 3 snd_opl3_lib,snd_cs4231_lib,snd_pcm
snd 57156 20
snd_bt_sco,snd_cs4236,snd_opl3_lib,snd_hwdep,snd_cs4236_lib,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_cs4231_lib,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 10336 4 snd
snd_page_alloc 11752 3 snd_bt_sco,snd_cs4231_lib,snd_pcm
...
I get the address of my headset:
# hcitool scan
Scanning ...
00:0B:2E:30:9B:03 Motorola HS805
I connect it:
# btsco 00:0B:2E:30:9B:03
Device is 1:0 (here I'm asked to key in
the pin)
Voice setting: 0x0060
RFCOMM channel 1 connected
(I press the
connect button on the headset)
recieved AT+CKPD=200
opened hwdep
connected SCO channel
Setting sco fd
Done setting sco fd
recieved AT+VGS=09
Sending up speaker change 9
I can see the alsa audio device
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CS4239 [CS4239], device 0: CS4231 [CS4239]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headset [BT Headset], device 0: Bluetooth SCO PCM [BT SCO PCM]
Subdevices: 1/1
Subdevice #0: subdevice #0
But if I play some audio:
# aplay -t wav -B 1000000 -D plughw:Headset audiofile.wav
I hear nothing :-(
while syslog says:
Mar 19 23:41:57 localhost kernel: snd-bt-sco: playback_open
Mar 19 23:41:57 localhost kernel: snd-bt-sco: prepare ok bps: 16000
size: 16002 count: 4000
Mar 19 23:41:57 localhost kernel: snd-bt-sco: playback_trigger 1
Mar 19 23:41:57 localhost kernel: snd-bt-sco: setting playback to bspcm
I'm so close... what else I have to do now? Please...
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Solo 10 Euro per chiamare in tutto il mondo!! Scopri il vantaggio di Email Phone Card, clicca subito
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2685&d=20-3
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2005-03-19 23:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-17 22:05 [Bluez-devel] Fwd: alsa bluetooth module ms419
2005-03-17 22:34 ` Fredrik Tolf
2005-03-18 23:33 ` Antonio-Blasco Bonito
2005-03-19 14:18 ` Fredrik Tolf
2005-03-19 23:13 ` Antonio-Blasco Bonito [this message]
2005-03-17 22:36 ` Brad Midgley
2005-03-17 22:42 ` Fredrik Tolf
2005-03-17 22:45 ` Brad Midgley
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=423CB216.8050006@email.it \
--to=blasco.bonito@email.it \
--cc=bluez-devel@lists.sourceforge.net \
--cc=durtro@ginnungagap.de \
--cc=fredrik@dolda2000.com \
--cc=ms419@freezone.co.uk \
/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