| *** n2klb_ is now known as n2klb | 02:04 | |
| zhasha | Jun 25 15:12:51 lumiere kernel: btfm_slim_enable_ch: channel define - rates:8000, baser:1, ratem:2 | 13:26 |
|---|---|---|
| zhasha | That would be why | 13:26 |
| zhasha | Found it, fixed it. I just had a call with mSBC BT audio my my 10 II. It's really stupid and presumably really simple to upstream. | 15:01 |
| zhasha | Set bt_wbs=on after BT_SCO=on | 15:01 |
| zhasha | dbus-send --print-reply --type=method_call --address='unix:path=/run/user/100000/pulse/dbus-socket' --dest=org.SailfishOS.AudioSystemPassthrough /org/sailfishos/audiosystempassthrough org.SailfishOS.AudioSystemPassthrough.set_parameters string:bt_wbs=on | 15:01 |
| mal | hmm | 15:37 |
| mal | I remember looking at those parameters when updating pulseaudio | 15:37 |
| mal | zhasha: how did you check that it was using mSBC? | 15:37 |
| zhasha | I used parecord to test it vs plain CVSD, the kernel reports a sample rate of 16kHz, PA's get-codec reports mSBC, it's a lot louder and the quality difference is immediately audible | 15:38 |
| zhasha | without bt_wbs=on it still produces audio, but it's very low volume and garbled | 15:39 |
| zhasha | pactl set-card-profile bluez_card.70_BF_92_D8_DF_0F handsfree_head_unit | 15:39 |
| zhasha | pactl set-sink-port sink.primary_output output-sco_headset | 15:40 |
| zhasha | pactl set-source-port source.droid input-bluetooth_sco_headset | 15:40 |
| zhasha | dbus-send --print-reply --type=method_call --address='unix:path=/run/user/100000/pulse/dbus-socket' --dest=org.SailfishOS.AudioSystemPassthrough /org/sailfishos/audiosystempassthrough org.SailfishOS.AudioSystemPassthrough.set_parameters string:bt_wbs=on | 15:40 |
| zhasha | start recording or a call | 15:40 |
| zhasha | Jun 25 16:49:21 lumiere kernel: btfm_slim_enable_ch: channel define - rates:16000, baser:1, ratem:4 | 15:40 |
| zhasha | CVSD https://joakim.sindho.lt/p/UO3DUvPmiW1MkvA1YOiJEU6lpL97Q60iNjBjEh9G9s8A.wav | 15:43 |
| zhasha | mSBC https://joakim.sindho.lt/p/Z0zCCuHU7_ztW3gxqEmeNY35_DDMDufV-FqmPyuj7XDB.wav | 15:43 |
| zhasha | mal: ^ | 15:43 |
| mal | https://github.com/mer-hybris/pulseaudio-modules-droid/blob/master/src/common/droid-util.c#L2080 | 15:44 |
| mal | that is where the BT_SCO is done, probably the conditional setting of bt_wbs=on needs to be added there, not sure yet how to detect which one to use | 15:44 |
| zhasha | well I'm on jb2q but basically the same https://github.com/mer-hybris/pulseaudio-modules-droid-jb2q/blob/master/src/common/droid-util.c#L2005 | 15:44 |
| mal | yes, similar code there | 15:45 |
| zhasha | and yeah, I'm not sure how to detect it either | 15:45 |
| zhasha | I just wanted to report a working configuration | 15:45 |
| zhasha | got me a little bit excited :) | 15:45 |
| mal | thanks for reporting | 15:45 |
| zhasha | I am in awe that you ever got this working | 15:46 |
| mal | that bt_wbs=on should possible to integrate quite easily, not sure about the other codecs | 15:46 |
| mal | there must be some way for those also, needs some more grepping if sources | 15:47 |
| mal | *of sources | 15:47 |
| zhasha | for HFP there's only CVSD and mSBC | 15:47 |
| zhasha | AptX, LDAC, LDHC, and so on are only for A2DP and those seem to be working just file | 15:48 |
| mal | ah | 15:48 |
| mal | ok | 15:48 |
| zhasha | I think once we figure out how to select bt_wbs=on/off we'll have everything working | 15:49 |
| mal | yeah | 15:49 |
| mal | some audio hals have also bt_lc3_swb | 15:53 |
| mal | not sure if all | 15:53 |
| zhasha | yeah that's the new thing | 15:55 |
| zhasha | I don't have any BT device that supports it, and it goes well beyond just a codec | 15:55 |
| zhasha | they're entirely eliminating A2DP and HFP/HSP, and replacing it all with LC3 | 15:55 |
| mal | does pulseaudio support that? | 15:55 |
| zhasha | not that I know of, but PipeWire does | 15:56 |
| mal | nothing shows up when grepping pulseaudio sources for lc3 | 15:56 |
| zhasha | <nephros_> https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/LE-Audio-+-LC3-support | 15:56 |
| mal | ah, so bt le audio | 15:57 |
| zhasha | Seriously, you guys put in a heroic effort to get this working. Genuinely, thank you. I don't know how you managed | 16:09 |
| zhasha | I'm wondering if output->sample_spec.rate has the necessary information | 18:20 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!