AnsweredAssumed Answered

adau1961 alsa problem

Question asked by wlecust06 on Jul 23, 2015
Latest reply on Aug 3, 2015 by larsc

Dear Larsc:

I use your adau17x1.c and adau1761.c which is released in 2011, and merge to linux 3.2.0 in am335x.

I meet the problem ,I use the following command ,it show that Left DAC and pll  ,sysclk are all off.

cat  /sys/devices/platform/soc-audio.0/ADAU1X61/dapm_widget

Headphone VGND: On

Right ADC: Off

Left ADC: Off

Right DAC: Off

Left DAC: Off

Right Playback Enable: On

Left Playback Enable: On

MICBIAS: Off

AIFCLK: Off

PLL: Off

SYSCLK: Off

Headphone: On

Right LR Playback Mixer: On

Left LR Playback Mixer: On

Right Playback Mixer: On

Left Playback Mixer: On

Right Input Mixer: On

Left Input Mixer: On

PM State: On

I found that there is no amixer option to change it .

The following is the output of amixer , I heard the song  when I transplant your code to my platform in 2 years ago.

 

I use a new board,it do not work now,I have checked that the MCLK and  BCLK  LRCLK of iis are fine.

But when I use  aplay xxx.wav ,I can not heard the song.

I remerber  that  SYSCLK ,Right DAC,Left DAC,are on when it work fine in the past.

Can you tell me how to change the

 

root@am335x-evm:~# amixer contents

numid=21,iface=MIXER,name='Headphone Bias'

  ; type=ENUMERATED,access=rw------,values=1,items=4

  ; Item #0 'Normal operation'

  ; Item #1 'Extreme power saving'

  ; Item #2 'Enhanced performance'

  ; Item #3 'Power saving'

  : values=0

numid=14,iface=MIXER,name='Headphone Playback Switch'

  ; type=BOOLEAN,access=rw------,values=2

  : values=on,on

numid=13,iface=MIXER,name='Headphone Playback Volume'

  ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0

  : values=48,48

  | dBscale-min=-57.00dB,step=1.00dB,mute=0

numid=16,iface=MIXER,name='Lineout Playback Switch'

  ; type=BOOLEAN,access=rw------,values=2

  : values=on,on

numid=15,iface=MIXER,name='Lineout Playback Volume'

  ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0

  : values=62,62

  | dBscale-min=-57.00dB,step=1.00dB,mute=0

numid=6,iface=MIXER,name='Mic Bias Mode'

  ; type=ENUMERATED,access=rw------,values=1,items=2

  ; Item #0 'Normal operation'

  ; Item #1 'High performance'

  : values=0

numid=12,iface=MIXER,name='Aux Capture Volume'

  ; type=INTEGER,access=rw---R--,values=2,min=0,max=7,step=0

  : values=0,0

  | dBscale-min=-15.00dB,step=3.00dB,mute=1

numid=17,iface=MIXER,name='ADC Bias'

  ; type=ENUMERATED,access=rw------,values=1,items=4

  ; Item #0 'Normal operation'

  ; Item #1 'Extreme power saving'

  ; Item #2 'Enhanced performance'

  ; Item #3 'Power saving'

  : values=0

numid=3,iface=MIXER,name='ADC High Pass Filter Switch'

  ; type=BOOLEAN,access=rw------,values=1

  : values=off

numid=19,iface=MIXER,name='Capture Bias'

  ; type=ENUMERATED,access=rw------,values=1,items=3

  ; Item #0 'Normal operation'

  ; Item #1 'Enhanced performance'

  ; Item #2 'Power saving'

  : values=0

numid=5,iface=MIXER,name='Capture Boost'

  ; type=ENUMERATED,access=rw------,values=1,items=4

  ; Item #0 'Normal operation'

  ; Item #1 'Boost Level 1'

  ; Item #2 'Boost Level 2'

  ; Item #3 'Boost Level 3'

  : values=0

numid=20,iface=MIXER,name='Playback Bias'

  ; type=ENUMERATED,access=rw------,values=1,items=3

  ; Item #0 'Normal operation'

  ; Item #1 'Enhanced performance'

  ; Item #2 'Power saving'

  : values=0

numid=4,iface=MIXER,name='Playback De-emphasis Switch'

  ; type=BOOLEAN,access=rw------,values=1

  : values=off

numid=18,iface=MIXER,name='DAC Bias'

  ; type=ENUMERATED,access=rw------,values=1,items=4

  ; Item #0 'Normal operation'

  ; Item #1 'Extreme power saving'

  ; Item #2 'Enhanced performance'

  ; Item #3 'Power saving'

  : values=0

numid=7,iface=MIXER,name='DAC Mono Stereo'

  ; type=ENUMERATED,access=rw------,values=1,items=4

  ; Item #0 'Stereo'

  ; Item #1 'Mono Left Channel (L+R)'

  ; Item #2 'Mono Right Channel (L+R)'

  ; Item #3 'Mono (L+R)'

  : values=0

numid=1,iface=MIXER,name='Digital Capture Volume'

  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0

  : values=255,255

  | dBminmax-min=-95.63dB,max=0.00dB

numid=2,iface=MIXER,name='Digital Playback Volume'

  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0

  : values=255,255

  | dBminmax-min=-95.63dB,max=0.00dB

numid=8,iface=MIXER,name='Input 1 Capture Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0

  : values=0

  | dBscale-min=-15.00dB,step=3.00dB,mute=1

numid=9,iface=MIXER,name='Input 2 Capture Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0

  : values=0

  | dBscale-min=-15.00dB,step=3.00dB,mute=1

numid=10,iface=MIXER,name='Input 3 Capture Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0

  : values=0

  | dBscale-min=-15.00dB,step=3.00dB,mute=1

numid=11,iface=MIXER,name='Input 4 Capture Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0

  : values=0

  | dBscale-min=-15.00dB,step=3.00dB,mute=1

numid=24,iface=MIXER,name='Left LR Playback Mixer Left Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=2,step=0

  : values=2

  | dBscale-min=-6.00dB,step=6.00dB,mute=1

numid=25,iface=MIXER,name='Left LR Playback Mixer Right Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=2,step=0

  : values=1

  | dBscale-min=-6.00dB,step=6.00dB,mute=1

numid=33,iface=MIXER,name='Left Playback Mixer Aux Bypass Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=8,step=0

  : values=8

  | dBscale-min=-18.00dB,step=3.00dB,mute=1

numid=35,iface=MIXER,name='Left Playback Mixer Left Bypass Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=8,step=0

  : values=3

  | dBscale-min=-18.00dB,step=3.00dB,mute=1

numid=31,iface=MIXER,name='Left Playback Mixer Left DAC Switch'

  ; type=BOOLEAN,access=rw------,values=1

  : values=on

numid=34,iface=MIXER,name='Left Playback Mixer Right Bypass Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=8,step=0

  : values=2

  | dBscale-min=-18.00dB,step=3.00dB,mute=1

numid=32,iface=MIXER,name='Left Playback Mixer Right DAC Switch'

  ; type=BOOLEAN,access=rw------,values=1

  : values=on

numid=22,iface=MIXER,name='Right LR Playback Mixer Left Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=2,step=0

  : values=1

  | dBscale-min=-6.00dB,step=6.00dB,mute=1

numid=23,iface=MIXER,name='Right LR Playback Mixer Right Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=2,step=0

  : values=2

  | dBscale-min=-6.00dB,step=6.00dB,mute=1

numid=28,iface=MIXER,name='Right Playback Mixer Aux Bypass Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=8,step=0

  : values=4

  | dBscale-min=-18.00dB,step=3.00dB,mute=1

numid=30,iface=MIXER,name='Right Playback Mixer Left Bypass Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=8,step=0

  : values=2

  | dBscale-min=-18.00dB,step=3.00dB,mute=1

numid=26,iface=MIXER,name='Right Playback Mixer Left DAC Switch'

  ; type=BOOLEAN,access=rw------,values=1

  : values=on

numid=29,iface=MIXER,name='Right Playback Mixer Right Bypass Volume'

  ; type=INTEGER,access=rw---R--,values=1,min=0,max=8,step=0

  : values=2

  | dBscale-min=-18.00dB,step=3.00dB,mute=1

numid=27,iface=MIXER,name='Right Playback Mixer Right DAC Switch'

  ; type=BOOLEAN,access=rw------,values=1

  : values=on

Outcomes