瑞芯微Rockchip开发者社区
登录
直播中
carey123
10年用户
1557经验值
擅长:可编程逻辑 嵌入式技术
私信
关注
[问答]
为什么I2S2上没有CLK输出呢
开启该帖子的消息推送
CLK
SPI
IO口
请问:我需要用SPI,所以只能将WM8960从I2s3转到I2S2,板以做好,调试时,WM8960驱动加载都顺利,也没有报错误。但是I2S2上没有CLK输出。
原有I2S2上的IO口都已经移走。
回帖
(1)
张晓宁
2021-12-31 13:50:27
声音部分的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";
};
声音部分的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";
};
举报
更多回帖
rotate(-90deg);
回复
相关问答
CLK
SPI
IO口
如何解决SPI1占用后
I2s2
的启用问题?
2021-12-31
413
CH32V307搭建全双工驱动PCM编解码,
I2S
3口时序异常如何解决?
2022-09-08
403
引脚PB10
上
的
I2S2
_CK是如何从主要的64 MHz
I2S
时钟派生出来的
呢
?
2022-12-20
277
请问CH32V307的
I2S
有
没有
双全工模式?
2022-06-22
508
ESP32
输出
I2S0_CLK
和
I2S1_CLK
,要如何配置PIN_CTRL寄存器?
2023-02-17
161
esp32
I2S
I2S0_CLK
是怎么配置的?
2023-02-20
225
STM32F411能否外接
I2S
芯片WM8978?
2018-11-06
3325
STM32CubeMX STM32H750
I2S2
如何配置为使用端口PI0..PI1?
2023-01-10
245
STM32F103ZET6用
I2S2
DMA方式
输出
,声音有但是噪声很大为什么?
2024-05-07
100
ESP32C3的
I2S_CLK
是指什么信号?
2024-06-07
132
发帖
登录/注册
20万+
工程师都在用,
免费
PCB检查工具
无需安装、支持浏览器和手机在线查看、实时共享
查看
点击登录
登录更多精彩功能!
首页
论坛版块
小组
免费开发板试用
ebook
直播
搜索
登录
×
20
完善资料,
赚取积分