Firefly Open Source Community

Title: Audio DTS setup issue. [Print This Page]

Author: james    Time: 7/11/2018 19:42
Title: Audio DTS setup issue.

The RT5651 Codec is attached to the AIO-3399j board using jumpers.
DTS setting and DTSI setting are as follows.
The result is that the audio does not work.
The log data is as follows.
Please check if there is a problem with DTS setup.

[    0.901599] mmc_host mmc2: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.915026] dwmmc_rockchip fe310000.dwmmc: 1 slots initialized
[    0.935066] asoc-simple-card rt5651-sound: rt5651-aif1 <-> ff880000.i2s mapping ok
[    0.935175] asoc-simple-card rt5651-sound: ASoC: no source widget found for MICBIAS1
[    0.935191] asoc-simple-card rt5651-sound: ASoC: Failed to add route MICBIAS1 -> direct -> Mic Jack
[    0.935429] rt5651 1-001a: ASoC: mux INL1 Mux has no paths
[    0.935450] rt5651 1-001a: ASoC: mux INR1 Mux has no paths
[    0.935469] rt5651 1-001a: ASoC: mux INL2 Mux has no paths
[    0.935488] rt5651 1-001a: ASoC: mux INR2 Mux has no paths
[    0.947139] asoc-simple-card spdif-sound: dit-hifi <-> ff870000.spdif mapping ok
[    0.951657]

[    0.995734] Mali: Mali device driver loaded
[    0.996286] input: rk29-keypad as /devices/platform/rockchip-key/input/input0
[    0.999861] ALSA device list:
[    0.999880]   #0: rockchip,rt5651-codec
[    0.999888]   #1: ROCKCHIP,SPDIF
[    1.000405] Freeing unused kernel memory: 832K


rk3399-firefly-aio-mipi.dts
rt5651-sound {
  status = "okay";
};

rk3399-firefly-port.dtsi
rt5651-sound {
  status = "okay";
  compatible = "simple-audio-card";
  simple-audio-card, format = "i2s";
  simple-audio-card, name = & quot; rockchip, rt5651-codec & quot ;;
  simple-audio-card, mclk-fs = <256>;
  simple-audio-card, widgets =
   "Microphone", "Mic Jack"
   "Headphone", "Headphone Jack";
  simple-audio-card, routing =
   "Mic Jack", "MICBIAS1", "
   "IN1P", "Mic Jack"
   & Quot; Headphone Jack & quot ;, & quot; HPOL &
   "Headphone Jack", "HPOR";

  simple-audio-card, cpu {
   sound-dai = <& i2s0>;
  };
  simple-audio-card, codec {
   sound-dai = <& rt5651>;
  };

& i2c1 {
status = "okay";
i2c-scl-rising-time-ns = <300>;
i2c-scl-falling-time-ns = & lt; 15 & gt ;;

rt5651: rt5651 @ 1a {
  # sound-dai-cells = <0>;
  compatible = "realtek, rt5651";
  reg = <0x1a>;
  clocks = <& cru SCLK_I2S_8CH_OUT>;
  clock-names = "mclk";
  realtek, in1-differential;
  pinctrl-names = "default";
  pinctrl-0 = <& rt5651_spkcon & rt5651_hpdet & i2s_8ch_mclk>;
  spk-con-gpio = <& gpio4 21 GPIO_ACTIVE_HIGH>;
  hp-det-gpio = <& gpio4 28 GPIO_ACTIVE_LOW>;
};
};

rk3399-firefly-core.dtsi
& i2s0 {
status = "okay";
rockchip, i2s-broken-burst-len;
rockchip, playback-channels = <8>;
rockchip, capture-channels = <8>;
# sound-dai-cells = <0>;
assigned-clocks = <& cru SCLK_I2S0_DIV>, <& cru SCLK_I2S_8CH>;
assigned-clock-parents = <& cru PLL_GPLL>, <& cru SCLK_I2S0_8CH>;
};









Author: james    Time: 7/11/2018 19:54
The RT5651 is supplied with 3.0V and 1.8V power,
I2S0 has no clock and data.
Author: lzzy.ha@qq.com    Time: 11/12/2018 17:04
I'm using rt5651, could you share your dts file for my reference.

Thanks a lot.
Author: luvings    Time: 11/20/2018 10:58
rt5651  -->  compatible = "rockchip,rt5651";   
Author: bzhao    Time: 3/8/2019 12:43
"realtek,in1-differential"  should be removed , or it do nothing
Author: mikefis139    Time: 1/9/2026 09:59
MogiExamはVMwareの2V0-17.25認定試験にたいして短期で有効なウェブサイトで2V0-17.25認定試験に合格するのを保証したり、VMware認証試験に合格しなければ全額で返金いたします。あなたはMogiExamが提供した2V0-17.25の認証試験の問題集を購入するの前にインターネットで無料な試用版をダウンロードしてください。
Author: billhal295    Time: 1/11/2026 11:18
Natürlich kennen Sie viele verschiedene Unterlagen, wenn Sie die Prüfungsunterlagen zur Nutanix NCP-US Zertifizierung suchen. Aber Sie können laut Umfrage oder dem persönlichen Probieren finden, dass Prüfungsunterlagen von Zertpruefung für Sie am besten geeignet sind. Die Zertifizierungsfragen zur Nutanix NCP-US Zertifizierung von Zertpruefung werden für die Prüfungsteilnehmer, die sich nicht genug Zeit auf die Zertifizierungsprüfung vorbereiten, speziell konzipiert. Damit können Sie viel Zeit sparen, Und diese NCP-US Prüfungsunterlagen können Ihnen versprechen, diese Prüfung einmalig zu bestehen. Außerdem sind die Prüfungsfragen von Zertpruefung immer die neuesten und die aktualisiersten. Wenn sich die Prüfungsinhalte verändern, bietet Zertpruefung Ihnen die neuesten Informationen.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1