[pulseaudio-discuss] [PATCH] bluetooth: bluez4: For each bluetooth profile use different port names
David Henningsson
david.henningsson at canonical.com
Thu Sep 25 04:37:20 PDT 2014
On 2014-09-25 13:27, David Henningsson wrote:
>
>
> On 2014-09-25 02:25, Pali Rohár wrote:
>> With this patch it is possible to configure different volume settings for
>> a2dp and hsp profiles. It is usefull for bluetooth headsets which do
>> not have
>> normalized a2dp and hsp volume levels.
>>
>> Module module-device-restore uses port name as identifier, so if
>> different
>> profiles have different names module-device-restore can store volume
>> settings
>> for each profile.
>
> Hi Pali and thanks for the patch,
>
> I understand the problem here, but this is the wrong way to fix it.
>
> First, ports is what unity- and gnome-control-center thinks are most
> closely to physical devices. If you have two different ports, they will
> appear like two different devices.
>
> Second, I believe this problem could potentially exist with other
> (non-bluez) devices too. Imagine the same "Line Out" that is present in
> both stereo and 5.1 profiles. If you switch to 5.1 mode, set all your
> volumes right, and then switch to stereo and change the stereo controls,
> the other four channels' settings are lost.
On second thought, it is the sink/source name that should have the
profile name in it, not the port name. This is how we do it in the alsa
drivers, where the above is not a problem.
--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
More information about the pulseaudio-discuss
mailing list