From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: writing an alsa driver Date: Wed, 24 Jun 2015 21:34:28 +0530 Message-ID: <20150624160428.GN19530@localhost> References: <20150529131753.GA339@asus> <1433156768.2642.21.camel@loki> <20150608084951.GA7512@dellaz> <20150615164623.GA693@asus> <1434387868.2434.50.camel@loki> <20150623090932.GA6856@dellaz> <20150624102157.GL19530@localhost> <20150624133126.212f5fa537d3edc537644043@ao2.it> <1435146021.2655.62.camel@loki> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id 285DC265A59 for ; Wed, 24 Jun 2015 18:02:55 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1435146021.2655.62.camel@loki> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Liam Girdwood Cc: Michele Curti , Luka Karinja , Takashi Iwai , Antonio Ospite , alsa-devel@alsa-project.org, "Nikula, Jarkko" , Bard Liao List-Id: alsa-devel@alsa-project.org 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 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