2009-06-18 06:41:53

by John Frankish

[permalink] [raw]
Subject: Recommended asoundrc for bluetooth headset

Is there a recommended .asoundrc for use with a bt headset? I've seen at least three versions and would be interested to know which is the "correct" one:

------
pcm.bluetooth {
type bluetooth
device "00:12:EE:A6:1D:F4"
profile "auto"
}

ctl.bluetooth {
type bluetooth
}
-----
pcm.rawbluetooth {
type bluetooth
device 00:12:EE:A6:1D:F4
}

pcm.bluetooth {
type plug
slave {
pcm {
type bluetooth
}
}
}
-----
pcm.bluetoothraw {
type bluetooth
device 00:12:EE:A6:1D:F4
profile auto
}

pcm.bluetooth {
type plug
slave {
pcm bluetoothraw
}
}
-----


2009-06-18 13:44:45

by John Frankish

[permalink] [raw]
Subject: RE: Recommended asoundrc for bluetooth headset

DQotLS0tLSBPcmlnaW5hbCBNZXNzYWdlIC0tLS0NCkZyb206IEpvaG4gRnJhbmtpc2ggPGotZnJh
bmtpc2hAc2xiLmNvbT4NClRvOiAibGludXgtYmx1ZXRvb3RoQHZnZXIua2VybmVsLm9yZyIgPGxp
bnV4LWJsdWV0b290aEB2Z2VyLmtlcm5lbC5vcmc+DQpTZW50OiBUaHVyc2RheSwgMTggSnVuZSwg
MjAwOSAxMjoxMTo1MyBQTQ0KU3ViamVjdDogUmVjb21tZW5kZWQgYXNvdW5kcmMgZm9yIGJsdWV0
b290aCBoZWFkc2V0DQoNCklzIHRoZXJlIGEgcmVjb21tZW5kZWQgLmFzb3VuZHJjIGZvciB1c2Ug
d2l0aCBhIGJ0IGhlYWRzZXQ/IEkndmUgc2VlbiBhdCBsZWFzdCB0aHJlZSB2ZXJzaW9ucyBhbmQg
d291bGQgYmUgaW50ZXJlc3RlZCB0byBrbm93IHdoaWNoIGlzIHRoZSAiY29ycmVjdCIgb25lOg0K
DQotLS0tLS0NCnBjbS5ibHVldG9vdGggew0KdHlwZSBibHVldG9vdGgNCmRldmljZSAiMDA6MTI6
RUU6QTY6MUQ6RjQiDQpwcm9maWxlICJhdXRvIg0KfQ0KDQpjdGw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5kcy9hbHNhL05vaXNlLndhdg0KY29y
cmVjdCBzb3VuZC4NCg0KJCBhcGxheSAtRHBsdWc6Ymx1ZXRvb3RoIC12IC91c3IvbG9jYWwvc2hh
cmUvc291bmRzL2Fsc2EvTm9pc2Uud2F2DQppbmNvcnJlY3Qgc291bmQuDQoNClVzaW5nIHRoaXJk
IGFzb3VuZHJjDQoNCiQgYXBsYXkgLURibHVldG9vdGggLXYgL3Vzci9sb2NhbC9zaGFyZS9zb3Vu
ZHMvYWxzYS9Ob2lzZS53YXYNCmluY29ycmVjdCBzb3VuZC4NCg0KJCBhcGxheSAtRHBsdWc6Ymx1
ZXRvb3RoIC12IC91c3IvbG9jYWwvc2hhcmUvc291bmRzL2Fsc2EvTm9pc2Uud2F2DQpjb3JyZWN0
IHNvdW5kLg0KDQpVc2luZyBmaXJzdCBvciB0aGlyZCBhc291bmRyYw0KDQokIGFyZWNvcmQgLUQg
Ymx1ZXRvb3RoIC1mIFMxNl9MRSB8IGFwbGF5IC1EIGJsdWV0b290aCAtZiBTMTZfTEUNCkNvcnJl
Y3Qgc291bmQNCg0KLi5hbmQgaWYgSSBjb3VsZCByZW1lbWJlciB0aGUgYXBsYXkgY29tbWFuZCBz
d2l0Y2ggdG8gcGxheSBhbiBtcDMsIEkgd291bGQgaGF2ZSB0cmllZCB0aGF0Li4uDQo=

2009-06-18 07:17:26

by Balaji Palaniswami

[permalink] [raw]
Subject: Re: Recommended asoundrc for bluetooth headset






----- Original Message ----
From: John Frankish <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Thursday, 18 June, 2009 12:11:53 PM
Subject: Recommended asoundrc for bluetooth headset

Is there a recommended .asoundrc for use with a bt headset? I've seen at least three versions and would be interested to know which is the "correct" one:

------
pcm.bluetooth {
type bluetooth
device "00:12:EE:A6:1D:F4"
profile "auto"
}

ctl.bluetooth {
type bluetooth
}
-----
pcm.rawbluetooth {
type bluetooth
device 00:12:EE:A6:1D:F4
}

pcm.bluetooth {
type plug
slave {
pcm {
type bluetooth
}
}
}
-----
pcm.bluetoothraw {
type bluetooth
device 00:12:EE:A6:1D:F4
profile auto
}

pcm.bluetooth {
type plug
slave {
pcm bluetoothraw
}
}
-----
--
John,
Third asoundrc is right one, this asoundrc is working for me upto bluez 4.32.
I am upgrading kernel to 2.6.rc8, bluez 4.41 and other depnedencies whatever you mentioned.
then i will update you result of a2dp , headset profile.Inmeanwhile please try 3rd asoundrc ,let me know your result.

Thanks,
Balaji.P
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html



Cricket on your mind? Visit the ultimate cricket website. Enter http://cricket.yahoo.com


2009-07-12 04:18:04

by John Frankish

[permalink] [raw]
Subject: RE: Recommended asoundrc for bluetooth headset

DQpEZWFyIEJhbGFqaSwNCj4gLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tDQo+IEZyb206IEpv
aG4gRnJhbmtpc2ggPGotZnJhbmtpc2hAc2xiLmNvbT4NCj4gVG86ICJsaW51eC1ibHVldG9vdGhA
dmdlci5rZXJuZWwub3JnIiA8bGludXgtYmx1ZXRvb3RoQHZnZXIua2VybmVsLm9yZz4NCj4gU2Vu
dDogVGh1cnNkYXksIDE4IEp1bmUsIDIwMDkgMTI6MTE6NTMgUE0NCj4gU3ViamVjdDogUmVjb21t
ZW5kZWQgYXNvdW5kcmMgZm9yIGJsdWV0b290aCBoZWFkc2V0DQo+DQo+IElzIHRoZXJlIGEgcmVj
b21tZW5kZWQgLmFzb3VuZHJjIGZvciB1c2Ugd2l0aCBhIGJ0IGhlYWRzZXQ/IEkndmUgc2VlbiBh
dCBsZWFzdCB0aHJlZSB2ZXJzaW9ucyBhbmQgd291bGQgYmUgaW50ZXJlc3RlZCB0byBrbm93IHdo
aWNoIGlzIHRoZSAiY29ycmVjdCIgb25lOg0KPg0KPiAtLS0tLS0NCj4gcGNtLmJsdWV0b290aCB7
DQo+IHR5cGUgYmx1ZXRvb3RoDQo+I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Bmb3IgbWUgd2l0aCA0LjQzIGFuZCBhIGJ0
IGhlYWRzZXQNClRoYW5rcyAmIFJlZ2FyZHMsDQpCZW5qYW1pbg0KLS0NCg0K

2009-07-09 14:39:57

by Benjamin Vasanthakumar J

[permalink] [raw]
Subject: Re: Recommended asoundrc for bluetooth headset

Dear Balaji,
> ----- Original Message ----
> From: John Frankish <[email protected]>
> To: "[email protected]" <[email protected]>
> Sent: Thursday, 18 June, 2009 12:11:53 PM
> Subject: Recommended asoundrc for bluetooth headset
>
> Is there a recommended .asoundrc for use with a bt headset? I've seen at least three versions and would be interested to know which is the "correct" one:
>
> ------
> pcm.bluetooth {
> type bluetooth
> device "00:12:EE:A6:1D:F4"
> profile "auto"
> }
>
> ctl.bluetooth {
> type bluetooth
> }
> -----
> pcm.rawbluetooth {
> type bluetooth
> device 00:12:EE:A6:1D:F4
> }
>
> pcm.bluetooth {
> type plug
> slave {
> pcm {
> type bluetooth
> }
> }
> }
> -----
> pcm.bluetoothraw {
> type bluetooth
> device 00:12:EE:A6:1D:F4
> profile auto
> }
>
> pcm.bluetooth {
> type plug
> slave {
> pcm bluetoothraw
> }
> }
> -----
> --
> John,
> Third asoundrc is right one, this asoundrc is working for me upto bluez 4.32.
> I am upgrading kernel to 2.6.rc8, bluez 4.41 and other depnedencies whatever you mentioned.
> then i will update you result of a2dp , headset profile.Inmeanwhile please try 3rd asoundrc ,let me know your result.
>
> Thanks,
> Balaji.P
> ----
>
> Using first asoundrc
>
> $ aplay -Dbluetooth -v /usr/local/share/sounds/alsa/Noise.wav
> correct sound.
>
> $ aplay -Dplug:bluetooth -v /usr/local/share/sounds/alsa/Noise.wav
> incorrect sound.
>
> Using third asoundrc
>
> $ aplay -Dbluetooth -v /usr/local/share/sounds/alsa/Noise.wav
> incorrect sound.
>
> $ aplay -Dplug:bluetooth -v /usr/local/share/sounds/alsa/Noise.wav
> correct sound.
>
> Using first or third asoundrc
>
> $ arecord -D bluetooth -f S16_LE | aplay -D bluetooth -f S16_LE
> Correct sound
>
> ..and if I could remember the aplay command switch to play an mp3, I would have tried that...
Apart from .asoundrc file what are the other configuration files that
need to be taken care if we need to try mono and stereo headset.(HSP and
A2DP)
What is the significance of the audio.conf file in the /etc/bluetooth?
Whether this is required for the Bluetooth headset proper audio routing?
If you are using the audio.conf for the A2DP/HSP can you share what
additional configurations you have made.

Also can you please share your experience with the 4.41+ on your side
with the Bluetooth headset Mono or stereo.

Thanks & Regards,
Benjamin