This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1210975/tlv320dac3100-tlv320dac3100
器件型号:TLV320DAC3100大家好!
我在公司的原型板中使用 TLV320DAC3100。 当我播放 audio.wav 文件时、我的耳机中没有任何声音、我已通过3.5mm 插孔连接。
qt850a:/sdcard # tinyplay audio.wav
[ 83.072432] tlv320aic31xx-codec 2-0018:## aic31xx_hw_params:宽度16速率44100
[ 83.471193] tlv320aic31xx-codec 2-0018:PLL 7.5264/1 dosr 128 n 8 m 2 aosr 128 n 8 m 2 BCLK_n 8.
播放样本:2通道、44100 Hz、16位
qt850a:/sdcard # tinymix
混音器名称:"音频输出"
控件数量:17
CTL 类型 num name 值
0 BOOL 1扬声器驱动器播放开关关闭
1 INT 1扬声器驱动程序播放音量0
2 INT 1扬声器模拟回放音量0
3 INT 2 DAC 播放音量127 127
4 BOOL 2 HP 驱动程序播放开关关闭
5 INT 2 HP 驱动程序播放音量0 0
6 INT 2 HP 模拟回放音量0
7 enum 1 DAC 左输入左数据
8枚举1 DAC 右输入右数据
9 BOOL 1 HP 左侧开关关闭
10 BOOL 1 HP 右侧开关关闭
11 BOOL 1从左到左 DAC 关闭的左输出
12 BOOL 1从 AIN1左侧输出关闭
13 BOOL 1从 AIN2左侧输出关闭
14 BOOL 1从右数 DAC 关闭后的输出
15 BOOL 1输出从 AIN2关闭开始
16 BOOL 1扬声器开关关闭
您能帮助找出问题吗?
谢谢你
您如何与该电路板进行连接? 我无法识别您显示的命令。
谢谢!
Jeff McPherson
我要将运行基于 Linux 4.14.98的 Android 操作系统的 IMX7D 芯片连接到 TLV320DAC3100。
这是我的器件树
sound { compatible = "simple-audio-card"; simple-audio-card,name = "Audio Output"; simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&sound_codec>; simple-audio-card,frame-master = <&sound_codec>; simple-audio-card,widgets = "Headphone", "Headphone Jack", "Speaker", "speakerOut"; simple-audio-card,routing = "Headphone Jack", "HPLOUT", "Headphone Jack", "HPROUT", "speakerOut", "SPK"; simple-audio-card,cpu { sound-dai = <&sai1>; }; sound_codec: simple-audio-card,codec { sound-dai = <&codec1>; clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; }; }; codec1: codec@18 { compatible = "ti,tlv320dac3100"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_codec1>; reg = <0x18>; //verify this #sound-dai-cells = <0>; HPVDD-supply = <&audio_3v3>; SPRVDD-supply = <&audio_3v3>; SPLVDD-supply = <&audio_3v3>; AVDD-supply = <&audio_3v3>; IOVDD-supply = <&audio_3v3>; DVDD-supply = <&audio_3v3>; gpio-reset = <&gpio3 22 GPIO_ACTIVE_HIGH>; status = "okay"; }; &sai1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai1>; assigned-clocks = <&clks IMX7D_SAI1_ROOT_SRC>, <&clks IMX7D_SAI1_ROOT_CLK>; assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>; assigned-clock-rates = <0>, <24576000>; // find correct value status = "okay"; };
我看到在内核日志中已正确检测到代码:
3.916525] snd-soc-dummy snd-soc-dummy: codec register snd-soc-dummy [ 3.923006] snd-soc-dummy snd-soc-dummy: ASoC: Registered codec 'snd-soc-dummy' [ 3.927194] mmc1: new ultra high speed SDR104 SDIO card at address 0001 [ 3.930415] snd-soc-dummy snd-soc-dummy: ASoC: platform register snd-soc-dummy [ 3.945113] tlv320aic31xx-codec 2-0018: probe sai ## aic31xx_i2c_probe: tlv320dac3100 codec_type = 4 [ 3.955143] tlv320aic31xx-codec 2-0018: probe sai successful ## aic31xx_i2c_probe: tlv320dac3100 codec_type = 4 [ 3.965284] tlv320aic31xx-codec 2-0018: codec register 2-0018 [ 3.971063] tlv320aic31xx-codec 2-0018: ASoC: Registered codec 'tlv320aic31xx-codec.2-0018' [ 3.980562] asoc-simple-card sound: simple audio card [ 3.989289] fsl-sai 308a0000.sai: Probe SAI [ 3.994007] fsl-sai 308a0000.sai: Probe SAI successful almost [ 3.999769] fsl-sai 308a0000.sai: ASoC: platform register 308a0000.sai 4.382055] asoc-simple-card sound: simple audio card [ 4.387461] asoc-simple-card sound: simple device available [ 4.393364] tlv320aic31xx-codec 2-0018: SAI probe codec## aic31xx_codec_probe [ 4.400584] tlv320aic31xx-codec 2-0018: SAI probe## succesful aic31xx_codec_probe [ 4.408241] tlv320aic31xx-codec 2-0018: ## aic31xx_set_dai_fmt: fmt = 0x1001
ALSA device list: [ 4.560538] #0: Audio Output
Asma、
感谢您的澄清。 我将请到我们的软件专家来为您提供帮助。
此致、
Jeff McPherson
你好、Asma
在播放期间,转储 tinymix 命令,如下所示:
# tinyplay audio.wav 和 //运行回放背景
# tinymix
还有一点、请在播放期间测量 I2S 时钟旋钮范围