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

Kuninori Morimoto kuninori.morimoto.gx at gmail.com
Thu Oct 30 07:11:23 CET 2014


Hi Mark again

> > 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.

I tried to use "time" for Volume Ramp, but it seems difficult.

 1) datasheet indicates Volume Ramp (= x dB / y step)
    but, there is no document "what is step" here.
    (even though HW guy...)

 2) Volume UP/Down time depends on "Volume Ramp"
    and Start/Stop Volume
    If 0% -> 100% takes X   sec,
      50% -> 100% takes X/2 sec.
    But,we don't know final Volume (= 5, 6) when
    user sets "Volume Ramp" (= 1).

        1. amixer set "DVC Out Ramp Period" xxx	// set Period
        2. amixer set "DVC Out Ramp" 0%		// Mute as default
        3. amixer set "DVC Out Ramp" on		// enable Volume Ramp
        4. aplay xxx.wav &
        5. amixer set "DVC Out Ramp" 100%	// to Volume 100%
        6. amixer set "DVC Out Ramp" 0%		// to Mute

  3) If we can calculate it somehow,
     Volume UP/Down speed is not same.
     
     amixer set "DVC Out Ramp Period" 10000	// Volume UP/Down in 10 sec
      0% -> 100%
     50% -> 100%    are happen in 10 sec.
     90% -> 100%
     This is confusable ?

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list