-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix adjust volume invalid in using soft volume for hfp #662
Conversation
So in your case scenario you would like to have software volume by default for A2DP and for HFP/HSP ? Because currently BlueALSA uses hardware volume (it simply forwards volume requests to connected BT device) by default for HFP (because it is a feature covered by very early standard of HSP, and it works reliably as far as I know), and software volume for A2DP by default. The A2DP is software by default because it was not reliably in the past (due to bugs in BlueZ). But maybe in the future I will change it to "hardware" by default as well, because everything works fine with recent versions of BlueZ (I do not remember now in which BlueZ version the bug was fixed). Anyway the software volume can be selected with alsamixer or with bluealsa-cli. |
There have been a number of issues that have affected AVRCP volume control in Bluez, but as afar as I know the last of them was fixed in BlueZ release 5.65. Certainly that version now works well for me.
But, IMHO, that is not sufficient when using |
Yes, I think that such approach will be better (since your use case is with |
Hmm, yes that would have to be thought through carefully. Perhaps if properly documented in the manual page, then a "user beware" policy would be sufficient. I would like to know more about the specific use-case of @xiaoyao888888 (and any other interested parties) to help formulate a useful specification for this. |
Thank you all for your responses. My scenario involves having multiple audio input sources in the system, such as Bluetooth, music players, and more. We have virtualized a sound card to mix all the audio and send it to it. For Bluetooth, there isn't an actual hardware sound card, so we hope to adjust the volume using software. |
The scenario seems to be similar with the @borine's one. Are you using |
Use ALSA PCM interface and also bluealsa-aplay for testing. |
When using ALSA PCM, there is a special option |
Try something like this: |
While I agree with you that giving
Start
Now |
To automatically change volume mode to software when using bluealsa-aplay, please use new feature implemented in #664 (available in master branch now): bluealsa-aplay --profile-sco --volume=software |
Thanks a lot, I will try new method. |
When using soft volume, the sco volume cannot be adjusted, while it is normal in a2dp mode, so rename --a2dp-volume to --native-volume, and both a2dp/sco profiles can use it.