hi
I am trying to integrate a pcm1864 codec with tegra asoc
I use I2S0 to connent with pcm1864 codec
I found out pcm186x.c inside kernel source code and modified device tree
to capture i use arecord
arecord -v -D hw:tegrasndt186ref,0 -t wav -r 48000 -f S16_LE -c 1 -d 5 cap.wav
but return error
arecord: pcm_read:2032: read error: Input/output error
Why pcm error occured?
please help
my device tree source is below
nvidia,audio-routing =
“x ADC1”, “x Mic”;
nvidia,dai-link-1 {
link-name = “pcm1864-playback”;
cpu-dai = <&tegra_i2s1>;
codec-dai = <&pcm186x_codec>;
cpu-dai-name = “I2S1”;
codec-dai-name = “pcm1865-aif”;
format = “i2s”;
bitclock-slave;
frame-slave;
bitclock-noninversion;
frame-noninversion;
bit-format = “s16_le”;
bclk_ratio = <0>;
srate = <48000>;
num-channel = <1>;
ignore_suspend;
name-prefix = “x”;
status = “okay”;
};