[PATCH] profile-switcher: New module to switch card profiles based on roles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > How about making profile switch more general?
> >
> > 1. When a card adds a new profile, add a property "intended roles" to the
> profile, same as what we do to a device:
> >   Add a line to proplist.h
> >   #define PA_PROP_DEVICE_PROFILE_DESCRIPTION     "device.profile.
> intended_roles"
> 
> Other than on Bluetooth (and *maybe* USB devices with sufficient
> metadata), there really isn't a way to accurately tag a sink (especially
> ALSA sink) with an intended role.
> 
> > 2. Then the module-device-switch can query the profile intended roles and
> select the best profile for a stream.
> >
> > Is this doable? If yes, I can write a patch for it and change the Bluetooth
> device module to add "phone" property for "hsp" profile?
> 
> This is already done in the bluetooth module.
> 

My suggestions is to *not* to tag a sink with an intended role, but to tag a profile with an intended role. 
So the module-profile-switch can set the best profile for a steam.

For an ALSA card, I think it can also has different profiles for different purpose. e.g. surround profile for HiFi, and stereo input+output profile for phone.

Thanks
Mengdong

 
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux