Use Audiojack instead of HDMI audio
#21
(04-29-2016, 12:49 PM)longsleep Wrote: It works just fine when the mixer settings are configured correctly. Though this is not simple due to the gazillion playback settings with useless defaults this driver provides. You can control them all using "alsamixer".

Important alsamixer settings:

- Unmute "Headphone"
- Set ADCL Mux to "DMIC"
- Set ADCR Mux to "DMIC"
- Set AIF1 DAC timeslot 0 volume to "65"
- Set AIF1IN0L Mux to "AIF1_DA0L"
- Set AIFIN0R Mux to "AIF1_DA0R"
- Set digital volume to "0"
- Set headphone volume to "75"

And it works pretty good.

I see that this might be difficult, so i just added a sane alsa state file to https://github.com/longsleep/build-pine6...ound.state - put that file at /var/lib/alsa/asound.state and reboot - voila.

Does not work for me. Added asound.state and verified alsamixer manually. 
Also did the module load:
cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf
sunxi_codec
sunxi_i2s
sunxi_sndcodec
EOF

The only change I see after module load change is that every once in a while the system halts (or at least all network connectivity dies).

aplay -l:
**** List of PLAYBACK Hardware Devices ****
card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC codec-aif1-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 1: bb Voice codec-aif2-1 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 2: bb-bt-clk codec-aif2-2 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 0: audiocodec [audiocodec], device 3: bt Voice codec-aif3-3 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
 Subdevices: 1/1
 Subdevice #0: subdevice #0


Any other advice please?
#22
No other advice as it works for me.
#23
I'll have to add it doesnt work for me either. I copied your asound file tried playing a mp3 from command line and nothing. Tried speaker-test and nothing. I am starting to be concerned my sound doesnt work at all. I have yet to hear a peep out of my pine. Maybe I will try remix just to verify functionality.
#24
(05-01-2016, 06:58 AM)longsleep Wrote: No other advice as it works for me.

Can you share your output for amixer output below please?
>amixer -c 0 contents
#25
(05-01-2016, 08:34 AM)sadko Wrote:
(05-01-2016, 06:58 AM)longsleep Wrote: No other advice as it works for me.

Can you share your output for amixer output below please?
>amixer -c 0 contents

Why? First card is hdmi - i thought you try to play through the codec driver (which is card 1). Also why so complicated - with my settings it works just fine with Pulseaudio - you can easily redirect streams with pavucontrol between HDMI and jack.

For the sake of feedback

This is HDMI:
Code:
ubuntu@pine64-2gb:~$ amixer -c 0 contents
numid=1,iface=MIXER,name='hdmi audio format Function'
  ; type=ENUMERATED,access=rw------,values=1,items=14
  ; Item #0 'null'
  ; Item #1 'pcm'
  ; Item #2 'AC3'
  ; Item #3 'MPEG1'
  ; Item #4 'MP3'
  ; Item #5 'MPEG2'
  ; Item #6 'AAC'
  ; Item #7 'DTS'
  ; Item #8 'ATRAC'
  ; Item #9 'ONE_BIT_AUDIO'
  ; Item #10 'DOLBY_DIGITAL_PLUS'
  ; Item #11 'DTS_HD'
  ; Item #12 'MAT'
  ; Item #13 'WMAPRO'
  : values=1

And this is the one for the audio jack.
Code:
ubuntu@pine64-2gb:~$ amixer -c 1 contents
numid=112,iface=MIXER,name='Headphone Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=29,iface=MIXER,name='Phoneout Mixer Lout_Mixer_Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=26,iface=MIXER,name='Phoneout Mixer MIC1 boost Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=27,iface=MIXER,name='Phoneout Mixer MIC2 boost Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=28,iface=MIXER,name='Phoneout Mixer Rout_Mixer_Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=23,iface=MIXER,name='Phoneout gain control'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
  : values=0
  | dBscale-min=-4.50dB,step=1.50dB,mute=0
numid=22,iface=MIXER,name='ADC input gain control'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
  : values=0
  | dBscale-min=-4.50dB,step=1.50dB,mute=0
numid=10,iface=MIXER,name='ADC volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=0,0
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=31,iface=MIXER,name='ADCL Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'ADC'
  ; Item #1 'DMIC'
  : values=1
numid=30,iface=MIXER,name='ADCR Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'ADC'
  ; Item #1 'DMIC'
  : values=1
numid=25,iface=MIXER,name='I2S HUB FUNC'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=97,iface=MIXER,name='AIF1 AD0L Mixer ADCL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=95,iface=MIXER,name='AIF1 AD0L Mixer AIF1 DA0L Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=96,iface=MIXER,name='AIF1 AD0L Mixer AIF2 DACL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=98,iface=MIXER,name='AIF1 AD0L Mixer AIF2 DACR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=93,iface=MIXER,name='AIF1 AD0R Mixer ADCR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=91,iface=MIXER,name='AIF1 AD0R Mixer AIF1 DA0R Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=94,iface=MIXER,name='AIF1 AD0R Mixer AIF2 DACL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=92,iface=MIXER,name='AIF1 AD0R Mixer AIF2 DACR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=90,iface=MIXER,name='AIF1 AD1L Mixer ADCL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=89,iface=MIXER,name='AIF1 AD1L Mixer AIF2 DACL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=88,iface=MIXER,name='AIF1 AD1R Mixer ADCR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=87,iface=MIXER,name='AIF1 AD1R Mixer AIF2 DACR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=5,iface=MIXER,name='AIF1 ADC timeslot 0 mixer gain'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=15,step=0
  : values=0,0
  | dBscale-min=-6.00dB,step=6.00dB,mute=0
numid=1,iface=MIXER,name='AIF1 ADC timeslot 0 volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=0,0
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=6,iface=MIXER,name='AIF1 ADC timeslot 1 mixer gain'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=-6.00dB,step=6.00dB,mute=0
numid=2,iface=MIXER,name='AIF1 ADC timeslot 1 volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=0,0
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=3,iface=MIXER,name='AIF1 DAC timeslot 0 volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=153,153
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=4,iface=MIXER,name='AIF1 DAC timeslot 1 volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=0,0
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=102,iface=MIXER,name='AIF1IN0L Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_DA0L'
  ; Item #1 'AIF1_DA0R'
  ; Item #2 'SUM_AIF1DA0L_AIF1DA0R'
  ; Item #3 'AVE_AIF1DA0L_AIF1DA0R'
  : values=0
numid=101,iface=MIXER,name='AIF1IN0R Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_DA0R'
  ; Item #1 'AIF1_DA0L'
  ; Item #2 'SUM_AIF1DA0L_AIF1DA0R'
  ; Item #3 'AVE_AIF1DA0L_AIF1DA0R'
  : values=0
numid=100,iface=MIXER,name='AIF1IN1L Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_DA1L'
  ; Item #1 'AIF1_DA1R'
  ; Item #2 'SUM_AIF1DA1L_AIF1DA1R'
  ; Item #3 'AVE_AIF1DA1L_AIF1DA1R'
  : values=0
numid=99,iface=MIXER,name='AIF1IN1R Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_DA1R'
  ; Item #1 'AIF1_DA1L'
  ; Item #2 'SUM_AIF1DA1L_AIF1DA1R'
  ; Item #3 'AVE_AIF1DA1L_AIF1DA1R'
  : values=1
numid=106,iface=MIXER,name='AIF1OUT0L Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_AD0L'
  ; Item #1 'AIF1_AD0R'
  ; Item #2 'SUM_AIF1AD0L_AIF1AD0R'
  ; Item #3 'AVE_AIF1AD0L_AIF1AD0R'
  : values=0
numid=105,iface=MIXER,name='AIF1OUT0R Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_AD0R'
  ; Item #1 'AIF1_AD0L'
  ; Item #2 'SUM_AIF1AD0L_AIF1AD0R'
  ; Item #3 'AVE_AIF1AD0L_AIF1AD0R'
  : values=0
numid=104,iface=MIXER,name='AIF1OUT1L Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_AD1L'
  ; Item #1 'AIF1_AD1R'
  ; Item #2 'SUM_AIF1ADC1L_AIF1ADC1R'
  ; Item #3 'AVE_AIF1ADC1L_AIF1ADC1R'
  : values=0
numid=103,iface=MIXER,name='AIF1OUT1R Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF1_AD1R'
  ; Item #1 'AIF1_AD1L'
  ; Item #2 'SUM_AIF1ADC1L_AIF1ADC1R'
  ; Item #3 'AVE_AIF1ADC1L_AIF1ADC1R'
  : values=0
numid=9,iface=MIXER,name='AIF2 ADC mixer gain'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=15,step=0
  : values=0,0
  | dBscale-min=-6.00dB,step=6.00dB,mute=0
numid=7,iface=MIXER,name='AIF2 ADC volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=0,0
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=55,iface=MIXER,name='AIF2 ADL Mixer ADCL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=52,iface=MIXER,name='AIF2 ADL Mixer AIF1 DA0L Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=53,iface=MIXER,name='AIF2 ADL Mixer AIF1 DA1L Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=54,iface=MIXER,name='AIF2 ADL Mixer AIF2 DACR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=51,iface=MIXER,name='AIF2 ADR Mixer ADCR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=48,iface=MIXER,name='AIF2 ADR Mixer AIF1 DA0R Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=49,iface=MIXER,name='AIF2 ADR Mixer AIF1 DA1R Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=50,iface=MIXER,name='AIF2 ADR Mixer AIF2 DACL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=8,iface=MIXER,name='AIF2 DAC volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=0,0
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=57,iface=MIXER,name='AIF2INL Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF2_DACL'
  ; Item #1 'AIF2_DACR'
  ; Item #2 'SUM_AIF2DACL_AIF2DACR'
  ; Item #3 'AVE_AIF2DACL_AIF2DACR'
  : values=0
numid=108,iface=MIXER,name='AIF2INL Mux VIR switch aif2inl aif3'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=110,iface=MIXER,name='AIF2INL Mux switch aif2inl aif2'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=56,iface=MIXER,name='AIF2INR Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF2_DACR'
  ; Item #1 'AIF2_DACL'
  ; Item #2 'SUM_AIF2DACL_AIF2DACR'
  ; Item #3 'AVE_AIF2DACL_AIF2DACR'
  : values=0
numid=107,iface=MIXER,name='AIF2INR Mux VIR switch aif2inr aif3'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=109,iface=MIXER,name='AIF2INR Mux switch aif2inr aif2'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=59,iface=MIXER,name='AIF2OUTL Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF2_ADCL'
  ; Item #1 'AIF2_ADCR'
  ; Item #2 'SUM_AIF2_ADCL_AIF2_ADCR'
  ; Item #3 'AVE_AIF2_ADCL_AIF2_ADCR'
  : values=0
numid=58,iface=MIXER,name='AIF2OUTR Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'AIF2_ADCR'
  ; Item #1 'AIF2_ADCL'
  ; Item #2 'SUM_AIF2_ADCL_AIF2_ADCR'
  ; Item #3 'AVE_AIF2_ADCL_AIF2_ADCR'
  : values=0
numid=47,iface=MIXER,name='AIF3OUT Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'AIF2 ADC left channel'
  ; Item #1 'AIF2 ADC right channel'
  : values=0
numid=12,iface=MIXER,name='DAC mixer gain'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=15,step=0
  : values=0,0
  | dBscale-min=-6.00dB,step=6.00dB,mute=0
numid=11,iface=MIXER,name='DAC volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=255,step=0
  : values=0,0
  | dBscale-min=-119.25dB,step=0.75dB,mute=0
numid=83,iface=MIXER,name='DACL Mixer ADCL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=86,iface=MIXER,name='DACL Mixer AIF1DA0L Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=85,iface=MIXER,name='DACL Mixer AIF1DA1L Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=84,iface=MIXER,name='DACL Mixer AIF2DACL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=79,iface=MIXER,name='DACR Mixer ADCR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=82,iface=MIXER,name='DACR Mixer AIF1DA0R Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=81,iface=MIXER,name='DACR Mixer AIF1DA1R Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=80,iface=MIXER,name='DACR Mixer AIF2DACR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=60,iface=MIXER,name='EAR Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'DACR'
  ; Item #1 'DACL'
  ; Item #2 'Right Analog Mixer'
  ; Item #3 'Left Analog Mixer'
  : values=0
numid=113,iface=MIXER,name='Earpiece Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=111,iface=MIXER,name='External Speaker Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=63,iface=MIXER,name='HP_L Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'DACL HPL Switch'
  ; Item #1 'Left Analog Mixer HPL Switch'
  : values=0
numid=64,iface=MIXER,name='HP_R Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'DACR HPR Switch'
  ; Item #1 'Right Analog Mixer HPR Switch'
  : values=0
numid=42,iface=MIXER,name='LADC input Mixer LINEINL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=40,iface=MIXER,name='LADC input Mixer MIC1 boost Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=41,iface=MIXER,name='LADC input Mixer MIC2 boost Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=45,iface=MIXER,name='LADC input Mixer PHONINP Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=46,iface=MIXER,name='LADC input Mixer PHONINP-PHONINN Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=43,iface=MIXER,name='LADC input Mixer l_output mixer Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=44,iface=MIXER,name='LADC input Mixer r_output mixer Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=21,iface=MIXER,name='LINEINL/R to L_R output mixer gain'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
  : values=0
  | dBscale-min=-4.50dB,step=1.50dB,mute=0
numid=73,iface=MIXER,name='Left Output Mixer DACL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=72,iface=MIXER,name='Left Output Mixer DACR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=74,iface=MIXER,name='Left Output Mixer LINEINL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=76,iface=MIXER,name='Left Output Mixer MIC1Booststage Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=75,iface=MIXER,name='Left Output Mixer MIC2Booststage Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=77,iface=MIXER,name='Left Output Mixer PHONEINP Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=78,iface=MIXER,name='Left Output Mixer PHONEINP-PHONEINN Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=18,iface=MIXER,name='MIC1 boost AMP gain control'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
  : values=0
  | dBscale-min=0.00dB,step=2.00dB,mute=0
numid=17,iface=MIXER,name='MIC1_G boost stage output mixer control'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
  : values=0
  | dBscale-min=-4.50dB,step=1.50dB,mute=0
numid=19,iface=MIXER,name='MIC2 BST stage to L_R outp mixer gain'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
  : values=0
  | dBscale-min=-4.50dB,step=1.50dB,mute=0
numid=32,iface=MIXER,name='MIC2 SRC'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'MIC3'
  ; Item #1 'MIC2'
  : values=1
numid=20,iface=MIXER,name='MIC2 boost AMP gain control'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=7,step=0
  : values=0
  | dBscale-min=0.00dB,step=2.00dB,mute=0
numid=35,iface=MIXER,name='RADC input Mixer LINEINR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=33,iface=MIXER,name='RADC input Mixer MIC1 boost Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=34,iface=MIXER,name='RADC input Mixer MIC2 boost Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=38,iface=MIXER,name='RADC input Mixer PHONINN Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=39,iface=MIXER,name='RADC input Mixer PHONINN-PHONINP Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=37,iface=MIXER,name='RADC input Mixer l_output mixer Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=36,iface=MIXER,name='RADC input Mixer r_output mixer Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=65,iface=MIXER,name='Right Output Mixer DACL Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=66,iface=MIXER,name='Right Output Mixer DACR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=67,iface=MIXER,name='Right Output Mixer LINEINR Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=69,iface=MIXER,name='Right Output Mixer MIC1Booststage Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=68,iface=MIXER,name='Right Output Mixer MIC2Booststage Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=70,iface=MIXER,name='Right Output Mixer PHONEINN Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=71,iface=MIXER,name='Right Output Mixer PHONEINN-PHONEINP Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=61,iface=MIXER,name='SPK_L Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'MIXEL Switch'
  ; Item #1 'MIXL MIXR  Switch'
  : values=0
numid=62,iface=MIXER,name='SPK_R Mux'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'MIXER Switch'
  ; Item #1 'MIXR MIXL Switch'
  : values=0
numid=24,iface=MIXER,name='SRC FUCTION'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=13,iface=MIXER,name='digital volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=63,step=0
  : values=0
  | dBscale-min=-73.08dB,step=1.16dB,mute=0
numid=14,iface=MIXER,name='earpiece volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
  : values=0
  | dBscale-min=-43.50dB,step=1.50dB,mute=0
numid=16,iface=MIXER,name='headphone volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=63,step=0
  : values=44
  | dBscale-min=-63.00dB,step=1.00dB,mute=0
numid=15,iface=MIXER,name='speaker volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=31,step=0
  : values=0
  | dBscale-min=-48.00dB,step=1.50dB,mute=0

@sadko just saw from your aplay -l that your hdmiaudio is card 1 - means your Kernel is outdated.
#26
@longsleep - indeed, thank you 
After updating to 3.10.65-7 it works now
#27
(04-29-2016, 12:49 PM)longsleep Wrote: It works just fine when the mixer settings are configured correctly. Though this is not simple due to the gazillion playback settings with useless defaults this driver provides. You can control them all using "alsamixer".

Important alsamixer settings:

- Unmute "Headphone"
- Set ADCL Mux to "DMIC"
- Set ADCR Mux to "DMIC"
- Set AIF1 DAC timeslot 0 volume to "65"
- Set AIF1IN0L Mux to "AIF1_DA0L"
- Set AIFIN0R Mux to "AIF1_DA0R"
- Set digital volume to "0"
- Set headphone volume to "75"

And it works pretty good.

I see that this might be difficult, so i just added a sane alsa state file to https://github.com/longsleep/build-pine6...ound.state - put that file at /var/lib/alsa/asound.state and reboot - voila.

Can´t get it to work!
I added your file, starting a song with mpg123 (terminal) or vlc only plays on HDMI sound in pavucontroll i see the headphones Codec under Output. But its not moving to the music anymore.

How can i switch to this card with pavucontrol? or do i have to do something else.
Tried updating my Kernel, but I´m on latest version


----- edit:
it work´s!
downloaded latest ubuntu image from longsleep (http://forum.pine64.org/showthread.php?tid=376) and it works great.

I edit my first post, for those people who have the same problem
#28
Running Ubuntu Xenial Image on PineA64 with 2 Gb.

tried about anything I could find in the forum about using the audiojack.

No audiojack sound, only hdmi sound.
I can play music, and in Pulsemixer I can see the audio playing.
There is the animation in the playback tab, and output devices.
Output: sndhdmi Analog Sterio (Port: Analog Output)
That's the only thing available there.

But I found this:


amixer -c 0 contents
outputs like I found an example in this thread

amixer -c 1 contents
Invalid card number.

Now that is different.
Is there something I should install ?
Any command output I can post to help detect the problem ?
#29
Read the first post, i collected all information to use Audio Jack.
#30
Indeed, I checked again and I never executed this part

cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf
sunxi_codec
sunxi_i2s
sunxi_sndcodec
EOF

after that I can select the audiojack in pulsemixer.

Thanks a lot for this quick reply.


Possibly Related Threads…
Thread Author Replies Views Last Post
  +LTS/SOPINE Audio Jack Pinout Little_Johnny 0 3,295 12-29-2019, 08:44 AM
Last Post: Little_Johnny
  Pine64 (analog) Audio Jack Output w/ Kernel 4.19 ecolezen 0 3,396 01-24-2019, 07:00 AM
Last Post: ecolezen
  PINE64 STEREO AUDIO DAC POT jtgiroux 0 3,477 01-12-2019, 04:56 PM
Last Post: jtgiroux
  Sound quality from audio jack devanl 0 3,575 10-11-2017, 10:39 PM
Last Post: devanl
  Audio Extractor Ralck 1 4,929 05-25-2017, 12:25 PM
Last Post: dkryder
  Using the pine64 with AVR - HDMI pass-through Moshe.Vazan 4 6,873 01-02-2017, 02:58 PM
Last Post: Moshe.Vazan
  HDMI touch screen not detected Radio 2 5,059 09-29-2016, 06:42 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 2 Guest(s)