public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Bluez-users] Headset half working using Bluez's ALSA plugin
@ 2008-01-24 13:42 pramod gurav
  2008-01-24 13:54 ` Ing. Gabriele Oberhammer
  0 siblings, 1 reply; 12+ messages in thread
From: pramod gurav @ 2008-01-24 13:42 UTC (permalink / raw)
  To: BlueZ users


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

hi gabriele,
i have not worked much on BlueZ and alsa but i can see from your information that you have not configured your kernel to support alsa. have a kernel built with alsa configured.
bcoz i checked the file /usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so which u are missing
but my kernel has as i hv alsa support. also i confirmed this by checking into another system which dont hv alsa configured in it. 
Try and c.
best luck....bye

Pramod

----- Original Message ----
From: Ing. Gabriele Oberhammer <gabriele@naustech.com>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Sent: Thursday, 24 January, 2008 3:37:16 PM
Subject: Re: [Bluez-users] Headset half working using Bluez's ALSA plugin

Hi, I've successful compiled and installed 'utils' and 'libs' from
 today 
cvs but now its worse then before, now playback doesn't work too :-(
Now In the preferences menu in gnome-applet there are no services 
listed, but my headset pairs correctly.
Here's what I've done, please tell ma what's wrong:

1. checked out latest 'utils' and 'libs' directoryes from cvs
2. installed all needed development headers
3. Compiled:
    $ cd utils/
    $ sudo ./bootstrap
    $ sudo ./configure --enable-all --prefix=/usr/local/
    $ sudo make

    $ cd ../libs/
    $ sudo ./bootstrap
    $ sudo ./configure --prefix=/usr/local/
    $ sudo make

4. uninstalled bluez-utils:
    $ sudo apt-get remove bluez-utils

5. uninstalled libbluetooth2 (forcing needed to solve dependencies):
    $ sudo dpkg --force-all -r libbluetoot2

6. Installed libs and utils:
    $ cd libs; sudo make install
    $ cd utils; sudo make install

7. Edited '/etc/init.d/bluetooth' and modified all paths to pont to 
correct locations under /usr/local/{bin,sbin}

8. rebooted (I know it's not needed but I did it)

9. Now headset pairs, 'hcitool dev' correctly shows it but
    $ mplayer -ao alsa:device=bluetooth test.mp3
    
    gives:

    ....
    [AO_ALSA] alsa-lib: pcm.c:2105:(snd_pcm_open_conf) Cannot open
 shared 
library /usr/lib/alsa-lib/libasound_module_pcm_bluetooth.so
    [AO_ALSA] Playback open error: No such file or directory
    ....


10. sadness  ;(


Can someone help me or give me some link to documentation about correct
 
procedures for cvs building?


Tnx  :-)


-------------------------------------------------------------------------
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/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users






      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[-- Attachment #1.2: Type: text/html, Size: 4082 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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Bluez-users] Headset half working using Bluez's ALSA plugin
@ 2008-01-22 11:43 Ing. Gabriele Oberhammer
  2008-01-22 16:14 ` Guillaume Bedot
  0 siblings, 1 reply; 12+ messages in thread
From: Ing. Gabriele Oberhammer @ 2008-01-22 11:43 UTC (permalink / raw)
  To: bluez-users

My problem is similar to that outlined in this post:

http://thread.gmane.org/gmane.linux.bluez.user/13352

I wish to use my new Phoenix BTK-03 (PCB300) bluetooth headset with VOIP 
applications.
Audio playback works well with mplayer (mplayer -ao 
alsa:device=bluetooth test.mp3) and aplay (aplay -D bluetooth test.wav) 
but I can't get capture working.

Test command:
$ arecord -D bluetooth -f S16_LE | aplay -D bluetooth -f S16_LE

executes without errors and:
$ arecord -D bluetooth -f S16_LE /tmp/rec_test.wav

produces always files with lenght=44 bytes (the files seems to contain 
only the wav format headers but no sound).
I'm sure the headset starts capturing because I hear a beep and some 
noise in the speaker.

I've tried with 'options hci_usb force_scofix=1' but the results are the 
same.
I've also successfully compiled bluez-utils from the yesterday cvs but I 
think I screwed up something when installing because the services in the 
'Service' tab in bluetooth applet preferences became uncheckable.

What information can I post to help solving this problem?
Can someone point me to an howto or README with best practices for 
installing from cvs?

This is my configuration:

PC:
	Dell Latitude D820

software versions:
	bluetooth		3.24-0ubuntu1
	bluez-gnome		0.14-0ubuntu2
	bluez-hcidump		1.39-1
	bluez-utils		3.24-0ubuntu1
	gnome-bluetooth		0.9.1-0ubuntu1
	libbluetooth-dev	3.24-0ubuntu1
	libbluetooth2		3.24-0ubuntu1
	python-bluez		0.9.1-1

.asoundrc:
	pcm.bluetooth {
        	 	type bluetooth
         	device 00:07:B0:0F:49:B7
	        profile voice
	}

hci0:   Type: USB
         BD Address: 00:1A:6B:11:52:5A ACL MTU: 384:8 SCO MTU: 64:8
         UP RUNNING PSCAN ISCAN
         RX bytes:6430 acl:57 sco:0 events:181 errors:0
         TX bytes:1739 acl:52 sco:0 commands:82 errors:0
         Features: 0xff 0xff 0x9f 0xfe 0x9b 0xf9 0x00 0x80
         Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
         Link policy: RSWITCH HOLD SNIFF PARK
         Link mode: SLAVE ACCEPT
         Name: 'BlueZ (0)'
         Class: 0x08210c
         Service Classes: Capturing
         Device Class: Computer, Laptop
         HCI Ver: 2.0 (0x3) HCI Rev: 0x976 LMP Ver: 2.0 (0x3)
	LMP Subver:0x976 Manufacturer: Cambridge Silicon Radio (10)

headset:
BD Address:  00:07:B0:0F:49:B7
         Device Name: PBC300
         LMP Version: 2.0 (0x3) LMP Subversion: 0xbf9
         Manufacturer: Cambridge Silicon Radio (10)
         Features: 0xfc 0xfe 0x0f 0x00 0x08 0x08 0x00 0x00
                 <encryption><slot offset><timing accuracy><roleswitch>
                 <hold mode><sniff mode><RSSI><channel quality><SCO link>
                 <HV2 packets><HV3 packets><u-law log><A-law log><CVSD>
                 <paging scheme><power control><transparent SCO>
		<AFH cap. slave><AFH cap. master>


Best regard, Gabriele

PS: The PC was shipped with Vista, but I've installed winXp and 
downgraded the firmware with the Dell utlity. Th headset works both for 
playing and capturing under winXP.


-------------------------------------------------------------------------
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/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-01-27 11:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-24 13:42 [Bluez-users] Headset half working using Bluez's ALSA plugin pramod gurav
2008-01-24 13:54 ` Ing. Gabriele Oberhammer
  -- strict thread matches above, loose matches on Subject: below --
2008-01-22 11:43 Ing. Gabriele Oberhammer
2008-01-22 16:14 ` Guillaume Bedot
2008-01-24 10:07   ` Ing. Gabriele Oberhammer
2008-01-24 15:17     ` Brad Midgley
2008-01-24 22:30       ` Ing. Gabriele Oberhammer
2008-01-24 23:20         ` Brad Midgley
2008-01-25  8:33           ` Ing. Gabriele Oberhammer
2008-01-25  9:01           ` Ing. Gabriele Oberhammer
2008-01-27 11:04     ` jayjwa
2008-01-27 11:26       ` Gabriele Oberhammer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox