[alsa-devel] [PATCH 8/8] ASoC: rsnd: Add Volume Ramp support

Mark Brown broonie at kernel.org
Wed Oct 29 23:56:59 CET 2014


On Tue, Oct 28, 2014 at 05:26:06PM -0700, Kuninori Morimoto wrote:

> > > amixer set "DVC Out Ramp" 100%		// Mute as default
> > > amixer set "DVC Out Ramp Period" 80%

> > Normally this would be expressed as an enum with some sort of time
> > units.  We did discuss at the mini-summit making a standard way of
> > expressing this but nobody did that yet.

> OK, I can be a 1st guy :)
> The HW setting is like below
> 
>     value: mean
>     00000: 128 dB/1 step

> Current "DVC Out Ramp Period" wants to have direct value of register.
> But, upstream want to have time like this ?

Yes, please - much easier for users.

> > > amixer set "DVC Out Ramp" 0%		// to Volume 100%
> > > amixer set "DVC Out Ramp" 100%		// to Mute

> > I'm not sure I quite understand this control - what exactly is this
> > setting?  It appears that the ramp value is the opposite of the volume
> > we end up with which is a bit odd and the comments suggest that this is
> > actually triggering a ramp when normally ramps would be done as part of
> > a volume set, mute or power up/down operation.

> Current "DVC Out Ramp" want to have direct value of register.
> It is...

>    000:  1 time
>    ...
>    031:  0.5 time
>    ...
>    3FE:  4.1 x 10^-7 time
>    3FF:  Mute

> Maybe I can used inverted value for it ?

That sounds like it'd address part of it, though I'm still not 100% sure
what the effect of this control is - is it the final value or something
(0.5*programmed volume for example)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141029/42857f04/attachment.sig>


More information about the Alsa-devel mailing list