amixer -c APE cset name=“CVB-RT HP Playback Volume” 30
amixer -c APE cset name=“CVB-RT Stereo DAC MIXR DAC R1 Switch” “off”
amixer -c APE cset name=“CVB-RT Stereo DAC MIXL DAC L1 Switch” “on”
amixer -c APE cset name=“CVB-RT HP R Playback Switch” “off”
amixer -c APE cset name=“CVB-RT HP L Playback Switch” “on”
Start playback
$ aplay -D hw:APE,0 <in_wav>
I encountered an error while executing the following command:
amixer -c APE cset name=“CVB-RT HP Playback Volume” 30
Command return:
amixer: Cannot find the given element from control sysdefault:1
The required macros will be already enabled in the package being used. No need to enable anything explicitly except the codec (i.e. rt5640 in your usecase) related macros.
After removing the macro CONFIG_SND_SOC_TEGRA_MACHINE_DRV , the feedback of the amixer command is:
amixer -c APE cset name=“CVB-RT Speaker L Playback” “on”
amixer: Cannot find the given element from control sysdefault:1
kernel log:
sudo dmesg |grep ASoC
[ 11.532234] tegra-asoc: sound: ASoC: no source widget found for CVB-RT HPOL
[ 11.532244] tegra-asoc: sound: ASoC: Failed to add route CVB-RT HPOL → direct → CVB-RT Headphone Jack
[ 11.532272] tegra-asoc: sound: ASoC: no source widget found for CVB-RT HPOR
[ 11.532273] tegra-asoc: sound: ASoC: Failed to add route CVB-RT HPOR → direct → CVB-RT Headphone Jack
[ 11.532296] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT IN1P
[ 11.532298] tegra-asoc: sound: ASoC: Failed to add route CVB-RT Mic Jack → direct → CVB-RT IN1P
[ 11.532320] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT IN2P
[ 11.532322] tegra-asoc: sound: ASoC: Failed to add route CVB-RT Mic Jack → direct → CVB-RT IN2P
[ 11.532345] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT IN2N
[ 11.532346] tegra-asoc: sound: ASoC: Failed to add route CVB-RT Mic Jack → direct → CVB-RT IN2N
[ 11.532368] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT IN3P
[ 11.532369] tegra-asoc: sound: ASoC: Failed to add route CVB-RT Mic Jack → direct → CVB-RT IN3P
[ 11.532389] tegra-asoc: sound: ASoC: no source widget found for CVB-RT SPOLP
[ 11.532391] tegra-asoc: sound: ASoC: Failed to add route CVB-RT SPOLP → direct → CVB-RT Int Spk
[ 11.532410] tegra-asoc: sound: ASoC: no source widget found for CVB-RT SPORP
[ 11.532412] tegra-asoc: sound: ASoC: Failed to add route CVB-RT SPORP → direct → CVB-RT Int Spk
[ 11.532431] tegra-asoc: sound: ASoC: no source widget found for CVB-RT LOUTL
[ 11.532433] tegra-asoc: sound: ASoC: Failed to add route CVB-RT LOUTL → direct → CVB-RT Int Spk
[ 11.532454] tegra-asoc: sound: ASoC: no source widget found for CVB-RT LOUTR
[ 11.532455] tegra-asoc: sound: ASoC: Failed to add route CVB-RT LOUTR → direct → CVB-RT Int Spk
[ 11.532477] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT DMIC1
[ 11.532478] tegra-asoc: sound: ASoC: Failed to add route CVB-RT Int Mic → direct → CVB-RT DMIC1
[ 11.532498] tegra-asoc: sound: ASoC: no sink widget found for CVB-RT DMIC2
[ 11.532499] tegra-asoc: sound: ASoC: Failed to add route CVB-RT Int Mic → direct → CVB-RT DMIC2