AnsweredAssumed Answered

Zedboard ADAU1761 audio capture not working.

Question asked by rohit.mohan on Jan 16, 2015
Latest reply on Jan 21, 2015 by rohit.mohan
Branched to a new discussion

I have been trying to verify audio capture and playback functionality (using ADAU1761 codec and NOT HDMI) for the past few days.

So far I could get the board to play audio files but audio capture through mic & line in are not working.

I am using :-

a) Zedboard Rev C

b) bitfile and bootloader from ADI ADV7511 reference design for Zedboard.

c) Linux from Analog Devices git hub.(branch : xcomm_zynq, defconfig : zynq_xcomm_adv7511_defconfig , device tree : zynq-zed-adv7511.dts)

d) Alsa utils version 1.0.13

 

Below are the ALSA switches and volumes I turned on to get audio playback working

amixer -c 1 sset 'DAC Playback Mux',0 AIFIN

amixer -c 1 sset 'Headphone',0 on

amixer -c 1 sset 'Headphone',0 30

amixer -c 1 sset 'Right Playback Mixer Right DAC',0 on

amixer -c 1 sset 'Left Playback Mixer Left DAC',0 on

(aplay -Dhw:ADAU1761 -fS32_LE -c2 -r48000 s32_le.wav)

 

Below are the controls I tried for audio capture.

amixer -c 1 sset 'Capture Mux',0 Decimator

amixer -c 1 sset 'Capture',0 on

amixer -c 1 sset 'Capture',0 30

amixer -c 1 sset 'PGA Boost',0 20

However these settings did not work

 

Analog devices wiki has listed the ALSA controls available for ADAU1761. However I am unable to find audio capture controls like  Input Select , Input 1 Capture Volume etc.  ADAU1361 Sound CODEC Linux Driver    [Analog Devices Wiki]

 

Anyone has any suggestion/clue as to why the capture related ALSA controls are missing in my setup? Below is the full list of ALSA controls available in my set up. Thanks for taking time to read. Any help will be highly appreciated.

 

zynq> amixer -c1 scontrols

Simple mixer control 'Headphone',0

Simple mixer control 'Headphone Bias',0

Simple mixer control 'Lineout',0

Simple mixer control 'Mic Bias Mode',0

Simple mixer control 'Aux',0

Simple mixer control 'Mono',0

Simple mixer control 'Playback Bias',0

zynq> amixer -c1 scontrols

Simple mixer control 'Headphone',0

Simple mixer control 'Headphone Bias',0

Simple mixer control 'Lineout',0

Simple mixer control 'Mic Bias Mode',0

Simple mixer control 'Aux',0

Simple mixer control 'Mono',0

Simple mixer control 'Playback Bias',0

Simple mixer control 'Playback De-emphasis',0

Simple mixer control 'Capture',0

Simple mixer control 'Capture Bias',0

Simple mixer control 'Capture Boost',0

Simple mixer control 'Capture Mux',0

Simple mixer control 'ADC Bias',0

Simple mixer control 'ADC High Pass Filter',0

Simple mixer control 'ALC Capture Attack Time',0

Simple mixer control 'ALC Capture Decay Time',0

Simple mixer control 'ALC Capture Function',0

Simple mixer control 'ALC Capture Hold Time',0

Simple mixer control 'ALC Capture Max Gain',0

Simple mixer control 'ALC Capture Noise Gate',0

Simple mixer control 'ALC Capture Noise Gate Threshold',0

Simple mixer control 'ALC Capture Noise Gate Type',0

Simple mixer control 'ALC Capture Target',0

Simple mixer control 'DAC Bias',0

Simple mixer control 'DAC Mono-Stereo-Mode',0

Simple mixer control 'DAC Playback Mux',0

Simple mixer control 'Digital',0

Simple mixer control 'Left LR Playback Mixer Left',0

Simple mixer control 'Left LR Playback Mixer Right',0

Simple mixer control 'Left Playback Mixer Aux Bypass',0

Simple mixer control 'Left Playback Mixer Left Bypass',0

Simple mixer control 'Left Playback Mixer Left DAC',0

Simple mixer control 'Left Playback Mixer Right Bypass',0

Simple mixer control 'Left Playback Mixer Right DAC',0

Simple mixer control 'PGA Boost',0

Simple mixer control 'PGA Capture Slew Time',0

Simple mixer control 'Right LR Playback Mixer Left',0

Simple mixer control 'Right LR Playback Mixer Right',0

Simple mixer control 'Right Playback Mixer Aux Bypass',0

Simple mixer control 'Right Playback Mixer Left Bypass',0

Simple mixer control 'Right Playback Mixer Left DAC',0

Simple mixer control 'Right Playback Mixer Right Bypass',0

Simple mixer control 'Right Playback Mixer Right DAC',0

Outcomes