|
【Android】
Audio DTS setup issue.
Posted at 7/11/2018 19:42:33
View:8412
|
Replies:4
Print
Only Author
[Copy Link]
1#
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>;
};
|
|