工具与软件:
您好、我录制音频时出错。 我记录了如下所示的8k 采样率音频和16k 采样率波形。 为什么记录的波形不平滑、问题是什么?
这是 I recorded 命令、`arecord -D HW:0、0 -d 10 -f cd -r 48000 -c 2 -t wav 48y.wav`。
这是我记录时的寄存器值、我记录了16k 个样本。
i2cdump -y -f 0 0x18
未指定大小(使用字节数据访问)
0 1 2 3 4 5 6 7 8 9 A b c d e f 0123456789abcdef
00:00 00 00 44 91 60 00 0A 00 00 00 00 C1 00 00 00 00 26 .. D?`………………………………………………………………………………………………
10:14 0f f0 04 78 78 7c 78 78 78 06 00 FE 00 FE 00 ???xx|xx?...
20:00 00 00 cc 20 10 00 40 00 80 00 80 00 ...? @……………………………………………………
30: 00 00 00 0f 00 00 8c 00 00 8c 0c 00 80 00 00 ...?...
40:00 0f 00 8b 00 00 8c 0c 00 00 00 00 00 00 00 00 ………………………………………………………………
50:00 80 00 00 00 00 0b 00 88 00 88 00 88 08 16 00 ???????????????
60:00 00 00 00 00 00 A2 00 00 00 00 00 00 00 00 00 00 00 ...... ?..........
70:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80:00 00 44 91 60 00 0A 00 00 00 00 00 00 01 00 00 00 26 .. D?`………………………………………………………………………………………………
90: 14 0f f0 04 78 78 7c 78 78 78 06 00 FE 00 FE 00 ???xx|xx?...
A0:00 00 00 cc 20 10 00 40 00 80 00 80 00 ...? @……………………………………………………
B0:00 00 00 0f 00 00 8c 00 8c 00 0c 00 80 00 00 ...?...
C0:00 0f 00 8b 00 00 8c 0c 00 00 00 00 00 00 00 ………………………………………………………………
D0:00 80 00 00 00 0b 00 00 88 00 88 88 08 16 00 ???????????????
E0:00 00 00 00 00 00 A2 00 00 00 00 00 00 00 00 00 00 00 ...... ?..........
F0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
我的设备树:
声音{
Compatible ="简单音频卡";
simple-audio-card、name ="tlv320aic3104";
simple-audio-card、format ="I2S";
simple-audio-card、MCLK-FS =<256>;
simple-audio-card、bitclock-master =<&dailink0_MASTER>;
simple-audio-card、frame-master =<&dailink0_MASTER>;
simple-audio-card、widget =
"麦克风"、"麦克风插孔"、
"耳机"、"耳机插孔"、
"扬声器"、"外置扬声器"、
"线"、"线输出"、
"线路"、"线路输入";
、路由=
"MIC_IN"、"麦克风插孔"、
"耳机插孔"、"HP_OUT"、
"LINE1L"、"Line in"、
"LINE1R"、"LINE IN"、
"耳机插孔"、"RLOUT"、
"耳机插孔"、"LLUT";
dailink0_master:simple-audio-card、CPU {
Sound-Dai =<&said 1 0>;
};
简单音频卡、编解码器{
sound-Dai =<&codec 0>;
/*时钟=<&CLKS IMX6UL_CLK_SAI1>;*/
};
};
CLKS (&C){
分配的时钟=<&CLKS IMX6UL_CLK_PLL4_AUDIO_DIV>;
/* assigned-clock-rate =<1179648000>;*/
分配的时钟速率=<786432000>;
/* assigned-clock-rates =<705600000>;*/
/* assigned-clock-rates =<153600000>;*/
};
所述1 (&S){
#sound-Di-cells =<0>;
pinctrl-names ="默认值";
pinctrl-0 =<&pinctrl_sai1>;
分配的时钟=<&CLKS IMX6UL_CLK_SAI1_SEL>
<&CLKS IMX6UL_CLK_SAI1>;
分配的时钟父级=<&CLKS IMX6UL_CLK_PLL4_AUDIO_DIV>;
/*分配的时钟速率=<2>、<12288000>;*/
分配的时钟速率=<2>、<24576000>;
//分配的时钟速率=<2>、<28224000>;
状态="正常";
};
祝你好运



 
				 
		 
					 
				

