[alsa-devel] writing an alsa driver

Vinod Koul vinod.koul at intel.com
Wed Jun 24 18:04:28 CEST 2015


On Wed, Jun 24, 2015 at 12:40:21PM +0100, Liam Girdwood wrote:
> 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.
Yes that is a good idea, let this be verified and then we can do this. I do
have configs for all cases, so need to get the file created now

-- 
~Vinod



More information about the Alsa-devel mailing list