|
楼主 |
发表于 2021-9-15 15:04:05
|
显示全部楼层
声音部分的DTS如下:
/* audio dirver module */
codec:codec@0x05096000 {
adcdrc_cfg = <0x00>;
adchpf_cfg = <0x00>;
dacdrc_cfg = <0x00>;
dachpf_cfg = <0x00>;
fmin_gain = <0x03>;
linein_gain = <0x03>;
digital_vol = <0x00>;
lineout_vol = <0x1a>;
/* gpio-spk */
pa_ctl_level = <0x00>;
pa_msleep_time = <0x78>;
ramp_func_used = <0x01>;
status = "okay";
};
spdif:spdif-controller@0x05093000{
status = "disabled";
};
dmic:dmic-controller@0x05095000{
status = "disabled";
};
ahub_codec:ahub_codec@0x05097000{
status = "okay";
};
ahub_daudio0:ahub_daudio0@0x05097000{
pinconfig = <0x01>;
frametype = <0x00>;
pcm_lrck_period = <0x20>;
slot_width_select = <0x20>;
daudio_master = <0x04>;
audio_format = <0x01>;
signal_inversion = <0x01>;
tdm_config = <0x01>;
mclk_div = <0x08>;
status = "disabled";
};
ahub_daudio1:ahub_daudio1@0x05097000{
pinconfig = <0x00>;
frametype = <0x00>;
pcm_lrck_period = <0x20>;
slot_width_select = <0x20>;
daudio_master = <0x04>;
audio_format = <0x01>;
signal_inversion = <0x01>;
tdm_config = <0x01>;
mclk_div = <0x01>;
status = "okay";
};
ahub_daudio2:ahub_daudio2@0x05097000{
pinconfig = <0x01>;
frametype = <0x00>;
pcm_lrck_period = <0>;
slot_width_select = <0x20>;
daudio_master = <0x04>;
audio_format = <0x01>;
signal_inversion = <0x01>;
tdm_config = <0x01>;
mclk_div = <0x08>;
status = "okay";
};
ahub_daudio3:ahub_daudio3@0x05097000{
pinconfig = <0x01>;
frametype = <0x00>;
pcm_lrck_period = <0>;
slot_width_select = <0x20>;
daudio_master = <0x04>;
audio_format = <0x01>;
signal_inversion = <0x01>;
tdm_config = <0x01>;
mclk_div = <0x08>;
status = "disabled";
};
snddaudio0:sound@0{
/* ac107-codec throught daudio0*/
sunxi,snddaudio-codec = "ac107.3-0036";
sunxi,snddaudio-codec-dai = "ac107-pcm0";
status = "disabled";
};
sndhdmi:sound@1{
status = "okay";
};
snddaudio2:sound@2{
sunxi,snddaudio-codec = "wm8960.3-001a";
sunxi,snddaudio-codec-dai = "wm8960-hifi";
status = "okay";
};
snddaudio3:sound@3{
sunxi,snddaudio-codec = "wm8960.3-001a";
sunxi,snddaudio-codec-dai = "wm8960-hifi";
status = "disabled";
};
sndspdif:sound@4{
status = "disabled";
};
snddmic:sound@5{
status = "disabled";
};
sndcodec:sound@6{
status = "okay";
};
sndahub:sound@7{
status = "okay";
};
|
|