[alsa-devel] writing an alsa driver

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Jun 24 13:40:21 CEST 2015


On Wed, 2015-06-24 at 13:31 +0200, Antonio Ospite wrote:
> On Wed, 24 Jun 2015 15:51:57 +0530
> Vinod Koul <vinod.koul at intel.com> wrote:
> 
> [...]
> > For Playback you can try:
> > 
> > #DSP routing
> > amixer -c0 sset 'codec_out0 mix 0 pcm0_in' on
> > amixer -c0 sset 'media0_out mix 0 media1_in' on
> > amixer -c0 sset 'media1_in Gain 0' 80% 
> > amixer -c0 sset 'media1_in Gain 0 Ramp Delay' 50
> > amixer -c0 sset 'media1_in Gain 0' off
> > amixer -c0 sset 'pcm0_in Gain 0' 80% 
> > amixer -c0 sset 'pcm0_in Gain 0 Ramp Delay' 50
> > amixer -c0 sset 'pcm0_in Gain 0' off
> > amixer -c0 sset 'codec_out0 Gain 0' 80%
> > amixer -c0 sset 'codec_out0 Gain 0 Ramp Delay' 50
> > amixer -c0 sset 'codec_out0 Gain 0' off
> > 
> > #Codec routin, if you have different one please modfiy
> > amixer -c0 sset "DAC MIXL INF1" on
> > amixer -c0 sset "DAC MIXR INF1" on
> > amixer -c0 sset "Stereo DAC MIXL DAC L1" on
> > amixer -c0 sset "Stereo DAC MIXR DAC R1" on
> > amixer -c0 sset "SPK MIXL DAC L1" on
> > amixer -c0 sset "SPK MIXR DAC R1" on
> > amixer -c0 sset "SPOL MIX SPKVOL L" on
> > amixer -c0 sset "SPOR MIX SPKVOL R" on
> > amixer -c0 sset "SPOL MIX DAC L1" on
> > amixer -c0 sset "SPOR MIX DAC R1" on
> > amixer -c0 sset "Speaker L" on
> > amixer -c0 sset "Speaker R" on
> > amixer -c0 sset "Headphone" off
> > amixer -c0 sset "Ext Spk" on
> > 
> > I have used this in T100.
> > 
> 
> OK, I guess this answers my request for a state file :)
> I had not read this message yet when I wrote the other one.
> 

Might be worth creating a UCM config for this machine since there are
several different outputs.

Liam



More information about the Alsa-devel mailing list