Distorted audio playback

Hi,

The recording is normal, and there will be distortion when playing audio files. It’s like speeding up playback.

Play.sh

#!/bin/bash
amixer -c tegrasndt19xmob cset name='I2S2 Channels' 2
amixer -c tegrasndt19xmob cset name='I2S2 Playback stereo to mono conv' CH0
amixer -c tegrasndt19xmob sset 'ADMAIF2 Mux' 'I2S2'
amixer -c tegrasndt19xmob sset 'I2S2 Mux' 'ADMAIF2'
amixer -c tegrasndt19xmob cset name='x Auto-mute Switch' 0
amixer -c tegrasndt19xmob cset name='x LO DAC Playback Switch' 1
amixer -c tegrasndt19xmob cset name='x LO Driver Gain Volume' 70
amixer -c tegrasndt19xmob cset name='x LOL Output Mixer L_DAC Switch' 1
amixer -c tegrasndt19xmob cset name='x LOR Output Mixer R_DAC Switch' 1
amixer -c tegrasndt19xmob cset name='x PCM Playback Volume' 30
amixer -c tegrasndt19xmob cset name='x PGA Level Volume' 90
amixer -c tegrasndt19xmob cset name='x ADCFGA Left Mute Switch' 0
amixer -c tegrasndt19xmob cset name='x ADCFGA Right Mute Switch' 0
aplay -D hw:tegrasndt19xmob,1 /home/nvidia/audio/shapeofyou.wav

Run the Play.sh script.

nvidia@xavier:~/audio$ ./Play.sh 
numid=856,iface=MIXER,name='I2S2 Channels'
  ; type=INTEGER,access=rw------,values=1,min=0,max=16,step=0
  : values=2
numid=860,iface=MIXER,name='I2S2 Playback stereo to mono conv'
  ; type=ENUMERATED,access=rw------,values=1,items=4
  ; Item #0 'None'
  ; Item #1 'CH0'
  ; Item #2 'CH1'
  ; Item #3 'AVG'
  : values=1
Simple mixer control 'ADMAIF2 Mux',0
  Capabilities: enum
  Items: 'None' 'ADMAIF1' 'ADMAIF2' 'ADMAIF3' 'ADMAIF4' 'ADMAIF5' 'ADMAIF6' 'ADMAIF7' 'ADMAIF8' 'ADMAIF9' 'ADMAIF10' 'ADMAIF11' 'ADMAIF12' 'ADMAIF13' 'ADMAIF14' 'ADMAIF15' 'ADMAIF16' 'I2S1' 'I2S2' 'I2S3' 'I2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' 'ADX1-1' 'ADX1-2' 'ADX1-3' 'ADX1-4' 'ADX2-1' 'ADX2-2' 'ADX2-3' 'ADX2-4' 'ADX3-1' 'ADX3-2' 'ADX3-3' 'ADX3-4' 'ADX4-1' 'ADX4-2' 'ADX4-3' 'ADX4-4' 'ADMAIF17' 'ADMAIF18' 'ADMAIF19' 'ADMAIF20' 'ASRC1-1' 'ASRC1-2' 'ASRC1-3' 'ASRC1-4' 'ASRC1-5' 'ASRC1-6'
  Item0: 'ADMAIF2'
numid=873,iface=MIXER,name='x Auto-mute Switch'
  ; type=INTEGER,access=rw------,values=1,min=0,max=7,step=0
  : values=0
numid=866,iface=MIXER,name='x HP DAC Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=864,iface=MIXER,name='x HP Driver Gain Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=35,step=0
  : values=0,0
  | dBscale-min=-6.00dB,step=1.00dB,mute=0
numid=1053,iface=MIXER,name='x HPL Output Mixer IN1_L Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=1056,iface=MIXER,name='x HPR Output Mixer IN1_R Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=1052,iface=MIXER,name='x HPL Output Mixer L_DAC Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=1055,iface=MIXER,name='x HPR Output Mixer R_DAC Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=867,iface=MIXER,name='x LO DAC Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=865,iface=MIXER,name='x LO Driver Gain Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=35,step=0
  : values=35,35
  | dBscale-min=-6.00dB,step=1.00dB,mute=0
numid=1054,iface=MIXER,name='x LOL Output Mixer L_DAC Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=1057,iface=MIXER,name='x LOR Output Mixer R_DAC Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=863,iface=MIXER,name='x PCM Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=175,step=0
  : values=30,30
  | dBscale-min=-63.50dB,step=0.50dB,mute=0
numid=872,iface=MIXER,name='x PGA Level Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=95,step=0
  : values=90,90
  | dBscale-min=0.00dB,step=0.50dB,mute=0
numid=869,iface=MIXER,name='x ADCFGA Left Mute Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=870,iface=MIXER,name='x ADCFGA Right Mute Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
Playing WAVE '/home/nvidia/audio/shapeofyou.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
^CAborted by signal Interrupt...

Thanks & Best Regards

Hello!

Apologies for the delay. Can you try …

$ amixer -c tegrasndt19xmob cset name='I2S2 Playback mono to stereo conv' COPY

Regards,
Jon