Skip to contentSkip to conversation

Bluetooth-alsa no sound

Bluez-users Mike Zhou 2 participants 6 messages Apr 13, 2005 – Apr 14, 2005 Bluetooth drivers

lore
Share & tools
lore

Mike Zhou

author
#0 lore raw

Hi,

I am new guy of Linux. Now, I am dealing with Bluetooth-alsa. But after I installed all packet, there is no sound.

I used 2.6.11 kernel with patch-2.6.11-mh2.gz. I also installed the newest BLueZ. I installed the .deb pakage from
http://cgi.sfu.ca/~jdbates/moin/moin.cgi/Bluetooth%26ALSA?action=3Ddiff

It seems the snd-bt-sco should be worked. After btsco command, I got:

lab509-8:/home/z0410016# btsco 00:03:89:00:45:ec
Device is 1:0
Voice setting: 0x0060
RFCOMM channel 1 connected
speaker volume: 11 mic volume: 0

But I can't get any thing after I enter: aplay --verbose -D plughw:Headset test2.wav.
And the software will not stop unless I kill it.

The result of --verbose is:

lab509-8:/home/z0410016# aplay --verbose -D plughw:Headset test2.wav
Playing WAVE 'test2.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Plug PCM: Rate conversion PCM (8000, sformat=3DS16_LE)
Its setup is:
stream       : PLAYBACK
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 1
rate         : 22050
exact rate   : 22050 (22050/1)
msbits       : 16
buffer_size  : 11025
period_size  : 2756
period_time  : 125000
tick_time    : 1000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 2756
xfer_align   : 2756
start_threshold  : 11024
stop_threshold   : 11025
silence_threshold: 0
silence_size : 0
boundary     : 1445068800
Slave: Hardware PCM card 1 'BT Headset' device 0 subdevice 0

Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 1000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 4000
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000

It is the same when I try to use arecord. How can I fix it?=20

Regards!

Mike

-------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Mike,

bluetooth-alsa is a pretty fast-moving target. If it's not working, you should get the latest from cvs and build it from scratch (see the instructions at bluetooth-alsa.sf.net)

Brad

Quoted 80 lines · Mike Zhou

Hi,

I am new guy of Linux. Now, I am dealing with Bluetooth-alsa. But after I installed all packet, there is no sound.

I used 2.6.11 kernel with patch-2.6.11-mh2.gz. I also installed the newest BLueZ. I installed the .deb pakage from
http://cgi.sfu.ca/~jdbates/moin/moin.cgi/Bluetooth%26ALSA?action=diff

It seems the snd-bt-sco should be worked. After btsco command, I got:

lab509-8:/home/z0410016# btsco 00:03:89:00:45:ec
Device is 1:0
Voice setting: 0x0060
RFCOMM channel 1 connected
speaker volume: 11 mic volume: 0

But I can't get any thing after I enter: aplay --verbose -D plughw:Headset test2.wav.
And the software will not stop unless I kill it.

The result of --verbose is:

lab509-8:/home/z0410016# aplay --verbose -D plughw:Headset test2.wav
Playing WAVE 'test2.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
Plug PCM: Rate conversion PCM (8000, sformat=S16_LE)
Its setup is:
stream       : PLAYBACK
access       : RW_INTERLEAVED
format       : S16_LE
subformat    : STD
channels     : 1
rate         : 22050
exact rate   : 22050 (22050/1)
msbits       : 16
buffer_size  : 11025
period_size  : 2756
period_time  : 125000
tick_time    : 1000
tstamp_mode  : NONE
period_step  : 1
sleep_min    : 0
avail_min    : 2756
xfer_align   : 2756
start_threshold  : 11024
stop_threshold   : 11025
silence_threshold: 0
silence_size : 0
boundary     : 1445068800
Slave: Hardware PCM card 1 'BT Headset' device 0 subdevice 0

Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 1000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 4000
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000

It is the same when I try to use arecord. How can I fix it?

Regards!

Mike

Quoted 9 lines

-------------------------------------------------------
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_ide95&alloc_id396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#2 lore raw

Dear Brad:
Thanks for your help. I think the bluetooth-alsa may be work correctly. But when I use strace aplay --verbose -D hw:1,0 test2.wav, I got this error at the end:

ioctl(4, 0x400c4150, 0xbffff910) =3D -1 EIO (Input/output error)
write(2, "aplay: pcm_write:1146: ", 23aplay: pcm_write:1146: ) =3D 23 write(2, "write error: Input/output error", 31write error:
Input/output error) =3D 31
write(2, "\n", 1
) =3D 1
exit_group(1) =3D ?

Do you think I should reinstall the bluetooth-alsa with CVS version? Thanks a lot!

Regards!

Mike

Quoted 32 lines · Brad Midgley

Mike,
=20
bluetooth-alsa is a pretty fast-moving target. If it's not working, you should get the latest from cvs and build it from scratch (see the instructions at bluetooth-alsa.sf.net)
=20
Brad
=20

Quoted 23 lines · Mike Zhou

Hi,

I am new guy of Linux. Now, I am dealing with Bluetooth-alsa. But after I installed all packet, there is no sound.

I used 2.6.11 kernel with patch-2.6.11-mh2.gz. I also installed the newest BLueZ. I installed the .deb pakage from
http://cgi.sfu.ca/~jdbates/moin/moin.cgi/Bluetooth%26ALSA?action=3Ddiff

It seems the snd-bt-sco should be worked. After btsco command, I got:

lab509-8:/home/z0410016# btsco 00:03:89:00:45:ec
Device is 1:0
Voice setting: 0x0060
RFCOMM channel 1 connected
speaker volume: 11 mic volume: 0

But I can't get any thing after I enter: aplay --verbose -D plughw:Headset test2.wav.
And the software will not stop unless I kill it.

The result of --verbose is:

lab509-8:/home/z0410016# aplay --verbose -D plughw:Headset test2.wav
Playing WAVE 'test2.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, =

Mono

Quoted 52 lines
Quoted 52 lines

Plug PCM: Rate conversion PCM (8000, sformat=3DS16_LE) Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 22050
exact rate : 22050 (22050/1)
msbits : 16
buffer_size : 11025
period_size : 2756
period_time : 125000
tick_time : 1000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 2756
xfer_align : 2756
start_threshold : 11024
stop_threshold : 11025
silence_threshold: 0
silence_size : 0
boundary : 1445068800
Slave: Hardware PCM card 1 'BT Headset' device 0 subdevice 0

Its setup is:
stream : PLAYBACK
access : MMAP_INTERLEAVED
format : S16_LE
subformat : STD
channels : 1
rate : 8000
exact rate : 8000 (8000/1)
msbits : 16
buffer_size : 4000
period_size : 1000
period_time : 125000
tick_time : 1000
tstamp_mode : NONE
period_step : 1
sleep_min : 0
avail_min : 1000
xfer_align : 1000
start_threshold : 4000
stop_threshold : 4000
silence_threshold: 0
silence_size : 0
boundary : 2097152000

It is the same when I try to use arecord. How can I fix it?

Quoted 8 lines
Quoted 8 lines

Regards!

Mike

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users=

.

Quoted 6 lines
Quoted 6 lines

Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 11 lines

=20
-------------------------------------------------------
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=3D6595&alloc_id=3D14396&op=3Dclick
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#3 lore raw

Dear Brad:
I guess that I got this error because the test2.wav is not 8000Hz. When I use "strace aplay --verbose -Dplughw:1,0 test0.wav", the error is removed. But I still can not hear anything. Do you think I should reinstall the bluetooth-alsa with CVS version?
Thanks a lot!

Regards!

Mike

Quoted 11 lines · Mike Zhou

Dear Brad:
Thanks for your help. I think the bluetooth-alsa may be work correctly. But when I use strace aplay --verbose -D hw:1,0 test2.wav, I got this error at the end:
=20
ioctl(4, 0x400c4150, 0xbffff910) =3D -1 EIO (Input/output error)
write(2, "aplay: pcm_write:1146: ", 23aplay: pcm_write:1146: ) =3D 23 write(2, "write error: Input/output error", 31write error:
Input/output error) =3D 31
write(2, "\n", 1
) =3D 1

Quoted 8 lines

exit_group(1) =3D ?
=20
Do you think I should reinstall the bluetooth-alsa with CVS version? Thanks a lot!
=20
Regards!
=20
Mike

-------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Mike

Yes, try it from cvs so we're at least working on the same version if it needs fixes.

Brad

Quoted 36 lines · Mike Zhou

Dear Brad:
I guess that I got this error because the test2.wav is not 8000Hz. When I use "strace aplay --verbose -Dplughw:1,0 test0.wav", the error is removed. But I still can not hear anything. Do you think I should reinstall the bluetooth-alsa with CVS version?
Thanks a lot!

Regards!

Mike

Quoted 13 lines · Mike Zhou

Dear Brad:
Thanks for your help. I think the bluetooth-alsa may be work correctly. But when I use strace aplay --verbose -D hw:1,0 test2.wav, I got this error at the end:

ioctl(4, 0x400c4150, 0xbffff910) = -1 EIO (Input/output error)
write(2, "aplay: pcm_write:1146: ", 23aplay: pcm_write:1146: ) = 23 write(2, "write error: Input/output error", 31write error:
Input/output error) = 31
write(2, "\n", 1
) = 1
exit_group(1) = ?

Quoted 6 lines

Do you think I should reinstall the bluetooth-alsa with CVS version? Thanks a lot!

Regards!

Mike

Quoted 9 lines

-------------------------------------------------------
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_ide95&alloc_id396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#5 lore raw

Dear Brad
I have reinstalled it and everything is correct. Now I can play and record from the headset! Thank you very much!!!

Regards!

Mike

Quoted 47 lines · Brad Midgley

Mike
=20
Yes, try it from cvs so we're at least working on the same version if it needs fixes.
=20
Brad
=20

Quoted 39 lines · Mike Zhou

Dear Brad:
I guess that I got this error because the test2.wav is not 8000Hz. When I use "strace aplay --verbose -Dplughw:1,0 test0.wav", the error is removed. But I still can not hear anything. Do you think I should reinstall the bluetooth-alsa with CVS version?
Thanks a lot!

Regards!

Mike

Quoted 13 lines · Mike Zhou

Dear Brad:
Thanks for your help. I think the bluetooth-alsa may be work correctly. But when I use strace aplay --verbose -D hw:1,0 test2.wav, I got this error at the end:

ioctl(4, 0x400c4150, 0xbffff910) =3D -1 EIO (Input/output error)
write(2, "aplay: pcm_write:1146: ", 23aplay: pcm_write:1146: ) =3D 23 write(2, "write error: Input/output error", 31write error:
Input/output error) =3D 31
write(2, "\n", 1
) =3D 1
exit_group(1) =3D ?

Quoted 6 lines

Do you think I should reinstall the bluetooth-alsa with CVS version? Thanks a lot!

Regards!

Mike

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users=

.

Quoted 6 lines
Quoted 6 lines

Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 11 lines

=20
-------------------------------------------------------
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=3D6595&alloc_id=3D14396&op=3Dclick
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users