#!/bin/bash #To get audio working on headset using following mixer controls amixer cset -c tegrasndt210ref name="I2S1 Mux" "ADMAIF1" amixer cset -c tegrasndt210ref name="x Headphone Playback Volume" "0x1e" amixer cset -c tegrasndt210ref name="x Stereo DAC MIXR DAC R1 Switch" "1" amixer cset -c tegrasndt210ref name="x Stereo DAC MIXL DAC L1 Switch" "1" amixer cset -c tegrasndt210ref name="x HPO R Playback Switch" "1" amixer cset -c tegrasndt210ref name="x HPO L Playback Switch" "1" amixer cset -c tegrasndt210ref name="x Headphone Jack Switch" "1" #To capture audio using headset mic, use following controls amixer cset -c tegrasndt210ref name="ADMAIF1 Mux" "I2S1" amixer cset -c tegrasndt210ref name="x RECMIX1L BST1 Switch" 1 amixer cset -c tegrasndt210ref name="x RECMIX1R BST1 Switch" 1 amixer cset -c tegrasndt210ref name="x Stereo1 ADC Source" "ADC1" amixer cset -c tegrasndt210ref name="x Stereo1 ADC1 Source" "ADC" amixer cset -c tegrasndt210ref name="x Stereo1 ADC MIXL ADC1 Switch" 1 amixer cset -c tegrasndt210ref name="x Stereo1 ADC MIXR ADC1 Switch" 1 amixer cset -c tegrasndt210ref name="x TDM Data Mux" "AD1:AD2:DAC:NUL" amixer cset -c tegrasndt210ref name="x IN1 Boost Volume" 43 amixer cset -c tegrasndt210ref name="x Mic Jack Switch" 1 #To capture audio using on board digital mic use below controls amixer cset -c tegrasndt210ref name="ADMAIF1 Mux" "I2S1" amixer cset -c tegrasndt210ref name="x Stereo1 DMIC Source" "DMIC1" amixer cset -c tegrasndt210ref name="x Stereo1 ADC2 Source" "DMIC" amixer cset -c tegrasndt210ref name="x Stereo1 ADC MIXL ADC2 Switch" "1" amixer cset -c tegrasndt210ref name="x Stereo1 ADC MIXR ADC2 Switch" "1" amixer cset -c tegrasndt210ref name="x TDM Data Mux" "AD1:AD2:DAC:NUL" amixer cset -c tegrasndt210ref name="x STO1 ADC Boost Gain Volume" "2" amixer cset -c tegrasndt210ref name="x Int Mic Switch" 1