On Mon, May 10, 2010 at 10:07:58AM +0300, Peter Ujfalusi wrote: > however it seams that if the control has invert enabled this is going to break. > In case of invert we need to invert from the chip maximum, and not from the > platform dependent limit. > The only way I can think of to solve this is to introduce new variable in > soc_mixer_control struct. It can be called platform_max. > The snd_soc_limit_volume would modify the platform_max leaving the max as > configured by the drivers (chip maximum). > In volsw_info calls than we return the platform_max instead of max. > If in the _info call the platform_max is 0, than we take the max to report (some > custom kcontrol macro might not aware of the change in codec drivers). > What do you think? That sounds sensible enough. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel