tx2 and rt5651(audio codec) problem

Hi, everyone:
I have added the rt5651 codec’s driver, we used the driver in linux kernel, and we have modified the device-tree and tegra_t186ref_mobile_rt565x.c, we could see that t5651’s codec driver worked well, but when I used the command: aplay -D hw:1,0 Noise.wav, to play wav, I could not hear the sound. follow is trace message:

# tracer: nop
#
# entries-in-buffer/entries-written: 235/235   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
           aplay-2701  [005] ...1   124.188128: snd_soc_dapm_widget_power: widget=Playback 1 val=1
           aplay-2701  [005] ...1   124.188137: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=1
           aplay-2701  [005] ...1   124.188142: snd_soc_dapm_path: *ADMAIF1 RX <- (direct) <- ADMAIF1 Receive
           aplay-2701  [005] ...1   124.188146: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=1
           aplay-2701  [005] ...1   124.188154: snd_soc_dapm_path:  I2S1 Mux <- ARAD1 <- ARAD1 RX
           aplay-2701  [005] ...1   124.188158: snd_soc_dapm_path:  I2S1 Mux <- ADX4-4 <- ADX4-4 RX
           aplay-2701  [005] ...1   124.188160: snd_soc_dapm_path:  I2S1 Mux <- ADX4-3 <- ADX4-3 RX
           aplay-2701  [005] ...1   124.188163: snd_soc_dapm_path:  I2S1 Mux <- ADX4-2 <- ADX4-2 RX
           aplay-2701  [005] ...1   124.188165: snd_soc_dapm_path:  I2S1 Mux <- ADX4-1 <- ADX4-1 RX
           aplay-2701  [005] ...1   124.188166: snd_soc_dapm_path:  I2S1 Mux <- AMX4 <- AMX4 RX
           aplay-2701  [005] ...1   124.188168: snd_soc_dapm_path:  I2S1 Mux <- ADX3-4 <- ADX3-4 RX
           aplay-2701  [005] ...1   124.188170: snd_soc_dapm_path:  I2S1 Mux <- ADX3-3 <- ADX3-3 RX
           aplay-2701  [005] ...1   124.188172: snd_soc_dapm_path:  I2S1 Mux <- ADX3-2 <- ADX3-2 RX
           aplay-2701  [005] ...1   124.188174: snd_soc_dapm_path:  I2S1 Mux <- ADX3-1 <- ADX3-1 RX
           aplay-2701  [005] ...1   124.188175: snd_soc_dapm_path:  I2S1 Mux <- AMX3 <- AMX3 RX
           aplay-2701  [005] ...1   124.188177: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-6 <- ASRC1-6 RX
           aplay-2701  [005] ...1   124.188179: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-5 <- ASRC1-5 RX
           aplay-2701  [005] ...1   124.188181: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-4 <- ASRC1-4 RX
           aplay-2701  [005] ...1   124.188183: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-3 <- ASRC1-3 RX
           aplay-2701  [005] ...1   124.188185: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-2 <- ASRC1-2 RX
           aplay-2701  [005] ...1   124.188187: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-1 <- ASRC1-1 RX
           aplay-2701  [005] ...1   124.188189: snd_soc_dapm_path:  I2S1 Mux <- I2S6 <- I2S6 RX
           aplay-2701  [005] ...1   124.188191: snd_soc_dapm_path:  I2S1 Mux <- DMIC4 <- DMIC4 RX
           aplay-2701  [005] ...1   124.188193: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF20 <- ADMAIF20 RX
           aplay-2701  [005] ...1   124.188196: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF19 <- ADMAIF19 RX
           aplay-2701  [005] ...1   124.188198: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF18 <- ADMAIF18 RX
           aplay-2701  [005] ...1   124.188200: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF17 <- ADMAIF17 RX
           aplay-2701  [005] ...1   124.188201: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF16 <- ADMAIF16 RX
           aplay-2701  [005] ...1   124.188204: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF15 <- ADMAIF15 RX
           aplay-2701  [005] ...1   124.188206: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF14 <- ADMAIF14 RX
           aplay-2701  [005] ...1   124.188208: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF13 <- ADMAIF13 RX
           aplay-2701  [005] ...1   124.188210: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF12 <- ADMAIF12 RX
           aplay-2701  [005] ...1   124.188211: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF11 <- ADMAIF11 RX
           aplay-2701  [005] ...1   124.188214: snd_soc_dapm_path:  I2S1 Mux <- ADX2-4 <- ADX2-4 RX
           aplay-2701  [005] ...1   124.188215: snd_soc_dapm_path:  I2S1 Mux <- ADX2-3 <- ADX2-3 RX
           aplay-2701  [005] ...1   124.188217: snd_soc_dapm_path:  I2S1 Mux <- ADX2-2 <- ADX2-2 RX
           aplay-2701  [005] ...1   124.188218: snd_soc_dapm_path:  I2S1 Mux <- ADX2-1 <- ADX2-1 RX
           aplay-2701  [005] ...1   124.188220: snd_soc_dapm_path:  I2S1 Mux <- AMX2 <- AMX2 RX
           aplay-2701  [005] ...1   124.188221: snd_soc_dapm_path:  I2S1 Mux <- ADX1-4 <- ADX1-4 RX
           aplay-2701  [005] ...1   124.188223: snd_soc_dapm_path:  I2S1 Mux <- ADX1-3 <- ADX1-3 RX
           aplay-2701  [005] ...1   124.188225: snd_soc_dapm_path:  I2S1 Mux <- ADX1-2 <- ADX1-2 RX
           aplay-2701  [005] ...1   124.188226: snd_soc_dapm_path:  I2S1 Mux <- ADX1-1 <- ADX1-1 RX
           aplay-2701  [005] ...1   124.188228: snd_soc_dapm_path:  I2S1 Mux <- AMX1 <- AMX1 RX
           aplay-2701  [005] ...1   124.188230: snd_soc_dapm_path:  I2S1 Mux <- DMIC3 <- DMIC3 RX
           aplay-2701  [005] ...1   124.188232: snd_soc_dapm_path:  I2S1 Mux <- DMIC2 <- DMIC2 RX
           aplay-2701  [005] ...1   124.188233: snd_soc_dapm_path:  I2S1 Mux <- DMIC1 <- DMIC1 RX
           aplay-2701  [005] ...1   124.188235: snd_soc_dapm_path:  I2S1 Mux <- IQC2-2 <- IQC2-2 RX
           aplay-2701  [005] ...1   124.188237: snd_soc_dapm_path:  I2S1 Mux <- IQC2-1 <- IQC2-1 RX
           aplay-2701  [005] ...1   124.188238: snd_soc_dapm_path:  I2S1 Mux <- IQC1-2 <- IQC1-2 RX
           aplay-2701  [005] ...1   124.188240: snd_soc_dapm_path:  I2S1 Mux <- IQC1-1 <- IQC1-1 RX
           aplay-2701  [005] ...1   124.188241: snd_soc_dapm_path:  I2S1 Mux <- MVC2 <- MVC2 RX
           aplay-2701  [005] ...1   124.188243: snd_soc_dapm_path:  I2S1 Mux <- MVC1 <- MVC1 RX
           aplay-2701  [005] ...1   124.188244: snd_soc_dapm_path:  I2S1 Mux <- OPE1 <- OPE1 RX
           aplay-2701  [005] ...1   124.188246: snd_soc_dapm_path:  I2S1 Mux <- AFC6 <- AFC6 RX
           aplay-2701  [005] ...1   124.188247: snd_soc_dapm_path:  I2S1 Mux <- AFC5 <- AFC5 RX
           aplay-2701  [005] ...1   124.188249: snd_soc_dapm_path:  I2S1 Mux <- AFC4 <- AFC4 RX
           aplay-2701  [005] ...1   124.188251: snd_soc_dapm_path:  I2S1 Mux <- AFC3 <- AFC3 RX
           aplay-2701  [005] ...1   124.188253: snd_soc_dapm_path:  I2S1 Mux <- AFC2 <- AFC2 RX
           aplay-2701  [005] ...1   124.188254: snd_soc_dapm_path:  I2S1 Mux <- AFC1 <- AFC1 RX
           aplay-2701  [005] ...1   124.188256: snd_soc_dapm_path:  I2S1 Mux <- SPDIF1-2 <- SPDIF1-2 RX
           aplay-2701  [005] ...1   124.188257: snd_soc_dapm_path:  I2S1 Mux <- SPDIF1-1 <- SPDIF1-1 RX
           aplay-2701  [005] ...1   124.188259: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-5 <- MIXER1-5 RX
           aplay-2701  [005] ...1   124.188261: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-4 <- MIXER1-4 RX
           aplay-2701  [005] ...1   124.188262: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-3 <- MIXER1-3 RX
           aplay-2701  [005] ...1   124.188263: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-2 <- MIXER1-2 RX
           aplay-2701  [005] ...1   124.188267: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-1 <- MIXER1-1 RX
           aplay-2701  [005] ...1   124.188269: snd_soc_dapm_path:  I2S1 Mux <- SFC4 <- SFC4 RX
           aplay-2701  [005] ...1   124.188270: snd_soc_dapm_path:  I2S1 Mux <- SFC3 <- SFC3 RX
           aplay-2701  [005] ...1   124.188272: snd_soc_dapm_path:  I2S1 Mux <- SFC2 <- SFC2 RX
           aplay-2701  [005] ...1   124.188273: snd_soc_dapm_path:  I2S1 Mux <- SFC1 <- SFC1 RX
           aplay-2701  [005] ...1   124.188275: snd_soc_dapm_path:  I2S1 Mux <- I2S5 <- I2S5 RX
           aplay-2701  [005] ...1   124.188277: snd_soc_dapm_path:  I2S1 Mux <- I2S4 <- I2S4 RX
           aplay-2701  [005] ...1   124.188279: snd_soc_dapm_path:  I2S1 Mux <- I2S3 <- I2S3 RX
           aplay-2701  [005] ...1   124.188281: snd_soc_dapm_path:  I2S1 Mux <- I2S2 <- I2S2 RX
           aplay-2701  [005] ...1   124.188282: snd_soc_dapm_path:  I2S1 Mux <- I2S1 <- I2S1 RX
           aplay-2701  [005] ...1   124.188284: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF10 <- ADMAIF10 RX
           aplay-2701  [005] ...1   124.188286: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF9 <- ADMAIF9 RX
           aplay-2701  [005] ...1   124.188288: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF8 <- ADMAIF8 RX
           aplay-2701  [005] ...1   124.188290: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF7 <- ADMAIF7 RX
           aplay-2701  [005] ...1   124.188292: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF6 <- ADMAIF6 RX
           aplay-2701  [005] ...1   124.188294: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF5 <- ADMAIF5 RX
           aplay-2701  [005] ...1   124.188296: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF4 <- ADMAIF4 RX
           aplay-2701  [005] ...1   124.188297: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF3 <- ADMAIF3 RX
           aplay-2701  [005] ...1   124.188299: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF2 <- ADMAIF2 RX
           aplay-2701  [005] ...1   124.188301: snd_soc_dapm_path: *I2S1 Mux <- ADMAIF1 <- ADMAIF1 RX
           aplay-2701  [005] ...1   124.188302: snd_soc_dapm_widget_power: widget=I2S1 Mux val=1
           aplay-2701  [005] ...1   124.188307: snd_soc_dapm_path: *I2S1 TX <- (direct) <- I2S1 Mux
           aplay-2701  [005] ...1   124.188309: snd_soc_dapm_widget_power: widget=I2S1 TX val=1
           aplay-2701  [005] ...1   124.188312: snd_soc_dapm_path: *I2S1 Transmit <- (direct) <- I2S1 TX
           aplay-2701  [005] ...1   124.188314: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=1
           aplay-2701  [005] ...1   124.188316: snd_soc_dapm_path: *I2S1 Transmit-I2S1 CIF Receive <- (direct) <- I2S1 Transmit
           aplay-2701  [005] ...1   124.188318: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=1
           aplay-2701  [005] ...1   124.188321: snd_soc_dapm_path: *I2S1 CIF Receive <- (direct) <- I2S1 Transmit-I2S1 CIF Receive
           aplay-2701  [005] ...1   124.188323: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=1
           aplay-2701  [005] ...1   124.188325: snd_soc_dapm_path: *I2S1 CIF RX <- (direct) <- I2S1 CIF Receive
           aplay-2701  [005] ...1   124.188327: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=1
           aplay-2701  [005] ...1   124.188329: snd_soc_dapm_path: *I2S1 DAP TX <- (direct) <- I2S1 CIF RX
           aplay-2701  [005] ...1   124.188331: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=1
           aplay-2701  [005] ...1   124.188334: snd_soc_dapm_path: *I2S1 DAP Transmit <- (direct) <- I2S1 DAP TX
           aplay-2701  [005] ...1   124.188335: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=1
           aplay-2701  [005] ...1   124.188338: snd_soc_dapm_path: *I2S1 DAP Transmit-x AIF1 Playback <- (direct) <- I2S1 DAP Transmit
           aplay-2701  [005] ...1   124.188340: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x AIF1 Playback val=1
           aplay-2701  [005] ...1   124.188342: snd_soc_dapm_path: *x AIF1 Playback <- (direct) <- I2S1 DAP Transmit-x AIF1 Playback
           aplay-2701  [005] ...1   124.188344: snd_soc_dapm_widget_power: widget=x AIF1 Playback val=1
           aplay-2701  [000] ...1   127.086324: snd_soc_dapm_widget_power: widget=Playback 1 val=0
           aplay-2701  [000] ...1   127.086336: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- Playback 1
           aplay-2701  [000] ...1   127.086340: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- ADMAIF1 CIF Receive-ADMAIF1 Receive
           aplay-2701  [000] ...1   127.086344: snd_soc_dapm_widget_power: widget=ADMAIF1 Receive val=0
           aplay-2701  [000] ...1   127.086347: snd_soc_dapm_path: *ADMAIF1 RX <- (direct) <- ADMAIF1 Receive
           aplay-2701  [000] ...1   127.086350: snd_soc_dapm_widget_power: widget=ADMAIF1 RX val=0
           aplay-2701  [000] ...1   127.086359: snd_soc_dapm_path:  I2S1 Mux <- ARAD1 <- ARAD1 RX
           aplay-2701  [000] ...1   127.086362: snd_soc_dapm_path:  I2S1 Mux <- ADX4-4 <- ADX4-4 RX
           aplay-2701  [000] ...1   127.086365: snd_soc_dapm_path:  I2S1 Mux <- ADX4-3 <- ADX4-3 RX
           aplay-2701  [000] ...1   127.086368: snd_soc_dapm_path:  I2S1 Mux <- ADX4-2 <- ADX4-2 RX
           aplay-2701  [000] ...1   127.086371: snd_soc_dapm_path:  I2S1 Mux <- ADX4-1 <- ADX4-1 RX
           aplay-2701  [000] ...1   127.086373: snd_soc_dapm_path:  I2S1 Mux <- AMX4 <- AMX4 RX
           aplay-2701  [000] ...1   127.086376: snd_soc_dapm_path:  I2S1 Mux <- ADX3-4 <- ADX3-4 RX
           aplay-2701  [000] ...1   127.086378: snd_soc_dapm_path:  I2S1 Mux <- ADX3-3 <- ADX3-3 RX
           aplay-2701  [000] ...1   127.086381: snd_soc_dapm_path:  I2S1 Mux <- ADX3-2 <- ADX3-2 RX
           aplay-2701  [000] ...1   127.086383: snd_soc_dapm_path:  I2S1 Mux <- ADX3-1 <- ADX3-1 RX
           aplay-2701  [000] ...1   127.086385: snd_soc_dapm_path:  I2S1 Mux <- AMX3 <- AMX3 RX
           aplay-2701  [000] ...1   127.086387: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-6 <- ASRC1-6 RX
           aplay-2701  [000] ...1   127.086390: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-5 <- ASRC1-5 RX
           aplay-2701  [000] ...1   127.086393: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-4 <- ASRC1-4 RX
           aplay-2701  [000] ...1   127.086395: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-3 <- ASRC1-3 RX
           aplay-2701  [000] ...1   127.086398: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-2 <- ASRC1-2 RX
           aplay-2701  [000] ...1   127.086400: snd_soc_dapm_path:  I2S1 Mux <- ASRC1-1 <- ASRC1-1 RX
           aplay-2701  [000] ...1   127.086402: snd_soc_dapm_path:  I2S1 Mux <- I2S6 <- I2S6 RX
           aplay-2701  [000] ...1   127.086405: snd_soc_dapm_path:  I2S1 Mux <- DMIC4 <- DMIC4 RX
           aplay-2701  [000] ...1   127.086407: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF20 <- ADMAIF20 RX
           aplay-2701  [000] ...1   127.086411: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF19 <- ADMAIF19 RX
           aplay-2701  [000] ...1   127.086414: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF18 <- ADMAIF18 RX
           aplay-2701  [000] ...1   127.086417: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF17 <- ADMAIF17 RX
           aplay-2701  [000] ...1   127.086419: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF16 <- ADMAIF16 RX
           aplay-2701  [000] ...1   127.086421: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF15 <- ADMAIF15 RX
           aplay-2701  [000] ...1   127.086424: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF14 <- ADMAIF14 RX
           aplay-2701  [000] ...1   127.086427: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF13 <- ADMAIF13 RX
           aplay-2701  [000] ...1   127.086429: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF12 <- ADMAIF12 RX
           aplay-2701  [000] ...1   127.086432: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF11 <- ADMAIF11 RX
           aplay-2701  [000] ...1   127.086435: snd_soc_dapm_path:  I2S1 Mux <- ADX2-4 <- ADX2-4 RX
           aplay-2701  [000] ...1   127.086437: snd_soc_dapm_path:  I2S1 Mux <- ADX2-3 <- ADX2-3 RX
           aplay-2701  [000] ...1   127.086439: snd_soc_dapm_path:  I2S1 Mux <- ADX2-2 <- ADX2-2 RX
           aplay-2701  [000] ...1   127.086441: snd_soc_dapm_path:  I2S1 Mux <- ADX2-1 <- ADX2-1 RX
           aplay-2701  [000] ...1   127.086444: snd_soc_dapm_path:  I2S1 Mux <- AMX2 <- AMX2 RX
           aplay-2701  [000] ...1   127.086446: snd_soc_dapm_path:  I2S1 Mux <- ADX1-4 <- ADX1-4 RX
           aplay-2701  [000] ...1   127.086448: snd_soc_dapm_path:  I2S1 Mux <- ADX1-3 <- ADX1-3 RX
           aplay-2701  [000] ...1   127.086450: snd_soc_dapm_path:  I2S1 Mux <- ADX1-2 <- ADX1-2 RX
           aplay-2701  [000] ...1   127.086453: snd_soc_dapm_path:  I2S1 Mux <- ADX1-1 <- ADX1-1 RX
           aplay-2701  [000] ...1   127.086455: snd_soc_dapm_path:  I2S1 Mux <- AMX1 <- AMX1 RX
           aplay-2701  [000] ...1   127.086457: snd_soc_dapm_path:  I2S1 Mux <- DMIC3 <- DMIC3 RX
           aplay-2701  [000] ...1   127.086460: snd_soc_dapm_path:  I2S1 Mux <- DMIC2 <- DMIC2 RX
           aplay-2701  [000] ...1   127.086462: snd_soc_dapm_path:  I2S1 Mux <- DMIC1 <- DMIC1 RX
           aplay-2701  [000] ...1   127.086465: snd_soc_dapm_path:  I2S1 Mux <- IQC2-2 <- IQC2-2 RX
           aplay-2701  [000] ...1   127.086467: snd_soc_dapm_path:  I2S1 Mux <- IQC2-1 <- IQC2-1 RX
           aplay-2701  [000] ...1   127.086469: snd_soc_dapm_path:  I2S1 Mux <- IQC1-2 <- IQC1-2 RX
           aplay-2701  [000] ...1   127.086471: snd_soc_dapm_path:  I2S1 Mux <- IQC1-1 <- IQC1-1 RX
           aplay-2701  [000] ...1   127.086474: snd_soc_dapm_path:  I2S1 Mux <- MVC2 <- MVC2 RX
           aplay-2701  [000] ...1   127.086476: snd_soc_dapm_path:  I2S1 Mux <- MVC1 <- MVC1 RX
           aplay-2701  [000] ...1   127.086478: snd_soc_dapm_path:  I2S1 Mux <- OPE1 <- OPE1 RX
           aplay-2701  [000] ...1   127.086480: snd_soc_dapm_path:  I2S1 Mux <- AFC6 <- AFC6 RX
           aplay-2701  [000] ...1   127.086482: snd_soc_dapm_path:  I2S1 Mux <- AFC5 <- AFC5 RX
           aplay-2701  [000] ...1   127.086485: snd_soc_dapm_path:  I2S1 Mux <- AFC4 <- AFC4 RX
           aplay-2701  [000] ...1   127.086487: snd_soc_dapm_path:  I2S1 Mux <- AFC3 <- AFC3 RX
           aplay-2701  [000] ...1   127.086489: snd_soc_dapm_path:  I2S1 Mux <- AFC2 <- AFC2 RX
           aplay-2701  [000] ...1   127.086491: snd_soc_dapm_path:  I2S1 Mux <- AFC1 <- AFC1 RX
           aplay-2701  [000] ...1   127.086494: snd_soc_dapm_path:  I2S1 Mux <- SPDIF1-2 <- SPDIF1-2 RX
           aplay-2701  [000] ...1   127.086496: snd_soc_dapm_path:  I2S1 Mux <- SPDIF1-1 <- SPDIF1-1 RX
           aplay-2701  [000] ...1   127.086498: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-5 <- MIXER1-5 RX
           aplay-2701  [000] ...1   127.086504: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-4 <- MIXER1-4 RX
           aplay-2701  [000] ...1   127.086507: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-3 <- MIXER1-3 RX
           aplay-2701  [000] ...1   127.086509: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-2 <- MIXER1-2 RX
           aplay-2701  [000] ...1   127.086511: snd_soc_dapm_path:  I2S1 Mux <- MIXER1-1 <- MIXER1-1 RX
           aplay-2701  [000] ...1   127.086513: snd_soc_dapm_path:  I2S1 Mux <- SFC4 <- SFC4 RX
           aplay-2701  [000] ...1   127.086515: snd_soc_dapm_path:  I2S1 Mux <- SFC3 <- SFC3 RX
           aplay-2701  [000] ...1   127.086517: snd_soc_dapm_path:  I2S1 Mux <- SFC2 <- SFC2 RX
           aplay-2701  [000] ...1   127.086520: snd_soc_dapm_path:  I2S1 Mux <- SFC1 <- SFC1 RX
           aplay-2701  [000] ...1   127.086522: snd_soc_dapm_path:  I2S1 Mux <- I2S5 <- I2S5 RX
           aplay-2701  [000] ...1   127.086524: snd_soc_dapm_path:  I2S1 Mux <- I2S4 <- I2S4 RX
           aplay-2701  [000] ...1   127.086527: snd_soc_dapm_path:  I2S1 Mux <- I2S3 <- I2S3 RX
           aplay-2701  [000] ...1   127.086529: snd_soc_dapm_path:  I2S1 Mux <- I2S2 <- I2S2 RX
           aplay-2701  [000] ...1   127.086532: snd_soc_dapm_path:  I2S1 Mux <- I2S1 <- I2S1 RX
           aplay-2701  [000] ...1   127.086534: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF10 <- ADMAIF10 RX
           aplay-2701  [000] ...1   127.086537: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF9 <- ADMAIF9 RX
           aplay-2701  [000] ...1   127.086539: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF8 <- ADMAIF8 RX
           aplay-2701  [000] ...1   127.086542: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF7 <- ADMAIF7 RX
           aplay-2701  [000] ...1   127.086544: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF6 <- ADMAIF6 RX
           aplay-2701  [000] ...1   127.086547: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF5 <- ADMAIF5 RX
           aplay-2701  [000] ...1   127.086549: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF4 <- ADMAIF4 RX
           aplay-2701  [000] ...1   127.086551: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF3 <- ADMAIF3 RX
           aplay-2701  [000] ...1   127.086553: snd_soc_dapm_path:  I2S1 Mux <- ADMAIF2 <- ADMAIF2 RX
           aplay-2701  [000] ...1   127.086555: snd_soc_dapm_path: *I2S1 Mux <- ADMAIF1 <- ADMAIF1 RX
           aplay-2701  [000] ...1   127.086558: snd_soc_dapm_widget_power: widget=I2S1 Mux val=0
           aplay-2701  [000] ...1   127.086565: snd_soc_dapm_path: *I2S1 TX <- (direct) <- I2S1 Mux
           aplay-2701  [000] ...1   127.086567: snd_soc_dapm_widget_power: widget=I2S1 TX val=0
           aplay-2701  [000] ...1   127.086571: snd_soc_dapm_path: *I2S1 Transmit <- (direct) <- I2S1 TX
           aplay-2701  [000] ...1   127.086573: snd_soc_dapm_widget_power: widget=I2S1 Transmit val=0
           aplay-2701  [000] ...1   127.086578: snd_soc_dapm_path: *I2S1 Transmit-I2S1 CIF Receive <- (direct) <- I2S1 Transmit
           aplay-2701  [000] ...1   127.086581: snd_soc_dapm_widget_power: widget=I2S1 Transmit-I2S1 CIF Receive val=0
           aplay-2701  [000] ...1   127.086584: snd_soc_dapm_path: *I2S1 CIF Receive <- (direct) <- I2S1 Transmit-I2S1 CIF Receive
           aplay-2701  [000] ...1   127.086587: snd_soc_dapm_widget_power: widget=I2S1 CIF Receive val=0
           aplay-2701  [000] ...1   127.086591: snd_soc_dapm_path: *I2S1 CIF RX <- (direct) <- I2S1 CIF Receive
           aplay-2701  [000] ...1   127.086593: snd_soc_dapm_widget_power: widget=I2S1 CIF RX val=0
           aplay-2701  [000] ...1   127.086596: snd_soc_dapm_path: *I2S1 DAP TX <- (direct) <- I2S1 CIF RX
           aplay-2701  [000] ...1   127.086598: snd_soc_dapm_widget_power: widget=I2S1 DAP TX val=0
           aplay-2701  [000] ...1   127.086601: snd_soc_dapm_path: *I2S1 DAP Transmit <- (direct) <- I2S1 DAP TX
           aplay-2701  [000] ...1   127.086604: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit val=0
           aplay-2701  [000] ...1   127.086608: snd_soc_dapm_path: *I2S1 DAP Transmit-x AIF1 Playback <- (direct) <- I2S1 DAP Transmit
           aplay-2701  [000] ...1   127.086611: snd_soc_dapm_widget_power: widget=I2S1 DAP Transmit-x AIF1 Playback val=0
           aplay-2701  [000] ...1   127.086615: snd_soc_dapm_path: *x AIF1 Playback <- (direct) <- I2S1 DAP Transmit-x AIF1 Playback
           aplay-2701  [000] ...1   127.086618: snd_soc_dapm_widget_power: widget=x AIF1 Playback val=0
           aplay-2701  [000] ...1   127.086621: snd_soc_dapm_path: *x AIF1RX <- (direct) <- x LOUTL
           aplay-2701  [000] ...1   127.086626: snd_soc_dapm_path: *x LOUTL <- (direct) <- x LOUT L Playback
           aplay-2701  [000] ...1   127.086630: snd_soc_dapm_path: *x LOUT L Playback <- Switch <- x LOUT MIX
           aplay-2701  [000] ...1   127.086635: snd_soc_dapm_path: *x LOUT MIX <- OUTVOL R Switch <- x OUTVOL R
           aplay-2701  [000] ...1   127.086639: snd_soc_dapm_path: *x LOUT MIX <- OUTVOL L Switch <- x OUTVOL L
           aplay-2701  [000] ...1   127.086643: snd_soc_dapm_path: *x LOUT MIX <- DAC R1 Switch <- x DAC R1
           aplay-2701  [000] ...1   127.086646: snd_soc_dapm_path: *x DAC R1 <- (direct) <- x Stereo DAC MIXR
           aplay-2701  [000] ...1   127.086651: snd_soc_dapm_path: *x Stereo DAC MIXR <- DAC L1 Switch <- x DAC MIXL
           aplay-2701  [000] ...1   127.086655: snd_soc_dapm_path: *x DAC MIXL <- INF1 Switch <- x IF1 DAC1 L
           aplay-2701  [000] ...1   127.086658: snd_soc_dapm_path: *x IF1 DAC1 L <- (direct) <- x IF1 DAC
           aplay-2701  [000] ...1   127.086662: snd_soc_dapm_path: *x IF1 DAC <- (direct) <- x AIF1RX
           aplay-2701  [000] ...1   127.086665: snd_soc_dapm_path:  x DAC MIXL <- Stereo ADC Switch <- x Stereo1 ADC MIXL
           aplay-2701  [000] ...1   127.086669: snd_soc_dapm_path: *x Stereo DAC MIXR <- DAC R2 Switch <- x DAC R2 Volume
           aplay-2701  [000] ...1   127.086673: snd_soc_dapm_path: *x Stereo DAC MIXR <- DAC R1 Switch <- x Audio DSP
           aplay-2701  [000] ...1   127.086677: snd_soc_dapm_path: *x Audio DSP <- (direct) <- x DAC MIXR
           aplay-2701  [000] ...1   127.086680: snd_soc_dapm_path: *x DAC MIXR <- INF1 Switch <- x IF1 DAC1 R
           aplay-2701  [000] ...1   127.086683: snd_soc_dapm_path: *x IF1 DAC1 R <- (direct) <- x IF1 DAC
           aplay-2701  [000] ...1   127.086687: snd_soc_dapm_path:  x DAC MIXR <- Stereo ADC Switch <- x Stereo1 ADC MIXR
           aplay-2701  [000] ...1   127.086690: snd_soc_dapm_path: *x Audio DSP <- (direct) <- x DAC MIXL
           aplay-2701  [000] ...1   127.086693: snd_soc_dapm_path: *x LOUT MIX <- DAC L1 Switch <- x DAC L1
           aplay-2701  [000] ...1   127.086699: snd_soc_dapm_path: *x DAC L1 <- (direct) <- x Stereo DAC MIXL
           aplay-2701  [000] ...1   127.086703: snd_soc_dapm_path: *x Stereo DAC MIXL <- DAC R1 Switch <- x DAC MIXR
           aplay-2701  [000] ...1   127.086707: snd_soc_dapm_path: *x Stereo DAC MIXL <- DAC L2 Switch <- x DAC L2 Volume
           aplay-2701  [000] ...1   127.086710: snd_soc_dapm_path: *x Stereo DAC MIXL <- DAC L1 Switch <- x Audio DSP
           aplay-2701  [000] ...1   127.086713: snd_soc_dapm_path: *x AIF1RX <- (direct) <- x AIF1 Playback

These are our setting in dtb;

i2s@2901000 {
			compatible = "nvidia,tegra210-i2s";
			reg = <0x2901000 0x100>;
			nvidia,ahub-i2s-id = <0x0>;
			clocks = <0xd 0x4f 0xd 0xf6 0xd 0x269 0xd 0xf7>;
			clock-names = "i2s1", "pll_a_out0", "ext_audio_sync", "audio_sync";
			pinctrl-names = "dap_active", "dap_inactive";
			pinctrl-0;
			pinctrl-1;
			fsync-width = <0x1f>;
			status = "okay";
			linux,phandle = <0xce>;
			phandle = <0xce>;
		};

rt5651.1-001a@1a {
			compatible = "realtek,rt5651";
			reg = <0x1a>;
			status = "okay";
			gpios = <0x12 0x4d 0x0>;
			realtek,jd-src = <0x1>;
			realtek,dmic1-data-pin = <0x2>;
			linux,phandle = <0x124>;
			phandle = <0x124>;
		};

sound {
		#stream-id-cells = <0x1>;
		status = "okay";
                compatible = "nvidia,tegra-audio-t186ref-mobile-rt565x";
		nvidia,model = "tegra-snd-t186ref-mobile-rt565x";
		nvidia,num-codec-link = <0xd>;
		nvidia,num-clk = <0x8>;
		nvidia,clk-rates = <0x10266000 0xac4400 0x2b11000 0x2b11000 0xea60000 0xbb8000 0x2ee0000 0x2ee0000>;
		clocks = <0xd 0x10d 0xd 0x10f 0xd 0xf6 0xd 0x57 0xd 0x261 0xd 0x7c>;
		clock-names = "pll_p_out1", "pll_a", "pll_a_out0", "ahub", "clk_m", "extern1";
		resets = <0xd 0x92>;
		reset-names = "extern1_rst";
		nvidia,audio-routing = "x Headphone", "x AIF1RX", "x AIF1RX", "x LOUTL", "x Headphone","x LOUTR","x Mic", "x IN3P", "y Headphone", "y OUT", "y IN", "y Mic", "z IN", "z OUT", "m Headphone", "m OUT", "m IN", "m Mic", "n Headphone", "n OUT", "n IN", "n Mic", "o Headphone", "o OUT", "o IN", "o Mic", "a IN", "a Mic", "b IN", "b Mic", "c IN", "c Mic", "d IN", "d Mic", "e Headphone", "e OUT", "e IN", "e Mic", "d1 Headphone", "d1 OUT", "d2 Headphone", "d2 OUT";
		nvidia,xbar = <0xcd>;

               nvidia,dai-link-1 {
			link-name = "rt565x-playback";
			cpu-dai = <0xce>;
			codec-dai = <0x124>;
			cpu-dai-name = "I2S1";
			codec-dai-name = "rt5651-aif1";
			format = "i2s";
			bitclock-slave;
			frame-slave;
			bitclock-noninversion;
			frame-noninversion;
			bit-format = "s16_le";
			bclk_ratio = <0x0>;
			srate = <0xbb80>;
			num-channel = <0x2>;
			ignore_suspend;
			name-prefix = [78 00];
			status = "okay";
			linux,phandle = <0x11f>;
			phandle = <0x11f>;
		};

and when I make the follow change in dts:

sound {
         nvidia,audio-routing = "x Headphone", "x LOUTL", "x Headphone","x LOUTR";
}

then I used the command " aplay -D hw:1,0 Noise.wav" to play, there is no sound can hear, and the trace message is:

root@tegra-ubuntu:~# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 6/6   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
           aplay-2656  [000] ...1   312.122171: snd_soc_dapm_start: card=tegra-snd-t186ref-mobile-rt565x
           aplay-2656  [000] ...1   312.122443: snd_soc_dapm_walk_done: tegra-snd-t186ref-mobile-rt565x: checks 2 power, 2 path, 0 neighbour
           aplay-2656  [004] ...1   319.468701: snd_soc_dapm_start: card=tegra-snd-t186ref-mobile-rt565x
           aplay-2656  [004] ...1   319.468902: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- Playback 1
           aplay-2656  [004] ...1   319.468907: snd_soc_dapm_path: *ADMAIF1 Receive <- (direct) <- ADMAIF1 CIF Receive-ADMAIF1 Receive
           aplay-2656  [004] ...1   319.469117: snd_soc_dapm_walk_done: tegra-snd-t186ref-mobile-rt565x: checks 2 power, 2 path, 2 neighbour

Hello!

Looking at the rt5651, I see it has both line-out and headphone outputs. From the above it appears that you are trying to use the line-out outputs, is this correct?

So for using the line-out the following route looks fine …

sound {
         nvidia,audio-routing = "x Headphone", "x LOUTL", "x Headphone","x LOUTR";
}

However, from the trace you can see that the I2S interface is not being enabled and so what this typically means is that the route within codec is not configured completely. The ALSA lib contains some UCM (use-case manager) examples for the rt5651 [0] and so maybe something like the following could work …

amixer cset -c tegrasndt186ref name="x LOUT R Playback Switch" on
amixer cset -c tegrasndt186ref name="x LOUT L Playback Switch" on
amixer cset -c tegrasndt186ref name="x LOUT MIX DAC L1 Switch" on
amixer cset -c tegrasndt186ref name="x LOUT MIX DAC R1 Switch" on
amixer cset -c tegrasndt186ref name="x Stereo DAC MIXL DAC L1 Switch" on
amixer cset -c tegrasndt186ref name="x Stereo DAC MIXR DAC R1 Switch" on
amixer cset -c tegrasndt186ref name="x OUT Playback Volume" 31
amixer cset -c tegrasndt186ref name="x DAC1 Playback Volume" 175
amixer cset -c tegrasndt186ref name="x Headphone Jack Switch" on

Regards,
Jon

[0] https://git.alsa-project.org/?p=alsa-lib.git;a=tree;f=src/conf/ucm/codecs/rt5651;h=1645c274a41261a5f1aeea12076193af959176a9;hb=HEAD

Hi, jonathanh:

  Thanks for your answer. I checked the rt5651's chip manual, I found that the  route was set wrong. after I change the route in amixer_settings according the manual, I can hear the sound from HeadPhone() and SPK(LOUTL/LOUTR).

Regards,
Michale