[pulseaudio-discuss] [PATCH] bluetooth: bluez4: For each bluetooth profile use different port names
Pali Rohár
pali.rohar at gmail.com
Sun Sep 28 03:31:30 PDT 2014
On Sunday 28 September 2014 12:26:49 Tanu Kaskinen wrote:
> On Thu, 2014-09-25 at 13:27 +0200, 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.
> >
> > Maybe it's module-device-restore that needs fixing instead,
> > but it would be good to have more people's opinion on that
> > first.
>
> If we use different sink/source names for hsp and a2dp as you
> suggested in another mail, I guess that would solve the
> volume problem? (I don't know if it would introduce any new
> problems.)
Looks like it fixing that problem too, I sent new patch to ML
which changing sink/source names instead port names.
--
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20140928/847ecd9f/attachment.sig>
More information about the pulseaudio-discuss
mailing list