Toybrick

在开发板播放音乐文件没声音

cr7jj

中级会员

积分
456
楼主
发表于 2020-1-16 16:14:14    查看: 10754|回复: 8 | [复制链接]    打印 | 只看该作者
在rk3399pro开发板播放音乐文件没声音,需要移植哪些源码包,或者在哪设置声音
回复

使用道具 举报

jefferyzhang

版主

积分
13576
沙发
发表于 2020-1-30 12:33:27 | 只看该作者
toybrick的开发版测试过均有声音
回复

使用道具 举报

cr7jj

中级会员

积分
456
板凳
 楼主| 发表于 2020-2-18 16:51:31 | 只看该作者
jefferyzhang 发表于 2020-1-30 12:33
toybrick的开发版测试过均有声音

你好,用什么软件播放,需要安装哪些源码包?
回复

使用道具 举报

yuys

注册会员

积分
194
地板
发表于 2020-4-20 10:17:17 | 只看该作者
Debian10 下没有声音。
回复

使用道具 举报

395876134

版主

积分
1099
5#
发表于 2020-4-20 11:42:14 | 只看该作者
你好,请问你怎么播放的?
回复

使用道具 举报

395876134

版主

积分
1099
6#
发表于 2020-4-22 11:38:38 | 只看该作者
确认硬件ok的前提下:
1、aplay -Dhw:1,0 test1.wav  ----hdmi出声音   
2、aplay -Dhw:0,0 test1.wav----默认喇叭出来
3、要从耳机出来的话,先amixer -c 0 cset numid=1,iface=MIXER,name='Playback Path' 3   再aplay -Dhw:0,0 test1.wav
回复

使用道具 举报

cr7jj

中级会员

积分
456
7#
 楼主| 发表于 2020-5-28 14:10:07 | 只看该作者
395876134 发表于 2020-4-22 11:38
确认硬件ok的前提下:
1、aplay -Dhw:1,0 test1.wav  ----hdmi出声音   
2、aplay -Dhw:0,0 test1.wav---- ...

你好,设置系统音量用什么命令
回复

使用道具 举报

snsing

注册会员

积分
94
8#
发表于 2020-8-5 11:39:41 | 只看该作者
jefferyzhang 发表于 2020-1-30 12:33
toybrick的开发版测试过均有声音

你好。
问题1:使用rk809怎么放音和录音?
[root@toybrick toybrick]# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: rockchiprk809co [rockchip,rk809-codec], device 0: ff890000.i2s-rk817-hifi rk817-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: rockchiphdmi [rockchip,hdmi], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[root@toybrick toybrick]# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: rockchiprk809co [rockchip,rk809-codec], device 0: ff890000.i2s-rk817-hifi rk817-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: RKmsm261s4030h0 [RK_msm261s4030h0], device 0: msm261s4030h0 PCM rockchip-msm261s4030h0-card-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
[root@toybrick toybrick]#



问题2:ES7243和i2c通信失败.
log:
[ 1316.341186] --- mcy --- </data/workspace/9922/sound/soc/soc-pcm.c>[soc_pcm_open:454]
[ 1316.341214] --- mcy --- </data/workspace/9922/sound/soc/soc-pcm.c>[soc_pcm_open:463]
[ 1316.341256] rockchip-i2s ff880000.i2s: __pm_clk_enable: sussce to enable clk ffffffc0a83939c0, ret = 0
[ 1316.341279] rockchip-i2s ff880000.i2s: __pm_clk_enable: sussce to enable clk ffffffc0a8393a40, ret = 0
[ 1316.341338] ASoC: rockchip-msm261s4030h0-card-hifi <-> ff880000.i2s info:
[ 1316.341353] ASoC: rate mask 0x14ea
[ 1316.341366] ASoC: min ch 2 max ch 8
[ 1316.341379] ASoC: min rate 8000 max rate 192000
[ 1316.341394] --- mcy --- </data/workspace/9922/sound/soc/soc-pcm.c>[soc_pcm_open:598]
[ 1316.345320] es7243_init_mode:i2c write 0x0 failed
[ 1316.345343] es7243_start
[ 1316.345730] es7243 7-0013: i2c write 0x6 failed
[ 1316.346764] es7243 7-0013: i2c write 0x1 failed
[ 1316.347310] es7243 7-0013: i2c write 0x2 failed
[ 1316.347744] es7243 7-0013: i2c write 0x3 failed
[ 1316.348064] es7243 7-0013: i2c write 0x4 failed
[ 1316.348517] es7243 7-0013: i2c write 0x5 failed
[ 1316.348933] es7243 7-0013: i2c write 0x8 failed
[ 1316.349303] es7243 7-0013: i2c write 0x7 failed
[ 1316.349742] es7243 7-0013: i2c write 0x9 failed
[ 1316.350163] es7243 7-0013: i2c write 0x6 failed
[ 1316.350583] es7243 7-0013: i2c write 0x5 failed
[ 1316.350696] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.350714] es7243_startup:0x0 -- 0x0
[ 1316.350817] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.350832] es7243_startup:0x1 -- 0x0
[ 1316.350932] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.350945] es7243_startup:0x2 -- 0x0
[ 1316.351052] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351066] es7243_startup:0x3 -- 0x0
[ 1316.351162] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351176] es7243_startup:0x4 -- 0x0
[ 1316.351272] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351286] es7243_startup:0x5 -- 0x0
[ 1316.351382] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351396] es7243_startup:0x6 -- 0x0
[ 1316.351491] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351504] es7243_startup:0x7 -- 0x0
[ 1316.351600] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351613] es7243_startup:0x8 -- 0x0
[ 1316.351709] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351722] es7243_startup:0x9 -- 0x0
[ 1316.351819] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351831] es7243_startup:0xa -- 0x0
[ 1316.351927] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.351940] es7243_startup:0xb -- 0x0
[ 1316.352037] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.352049] es7243_startup:0xc -- 0x0
[ 1316.352144] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.352157] es7243_startup:0xd -- 0x0
[ 1316.352254] es7243_i2c_read:i2c_transfer() returned -6
[ 1316.352266] es7243_startup:0xe -- 0x0
[ 1316.352289] rk3399_hw_params mic record
回复

使用道具 举报

ztfmars

注册会员

积分
108
9#
发表于 2020-9-25 17:13:13 | 只看该作者
395876134 发表于 2020-4-22 11:38
确认硬件ok的前提下:
1、aplay -Dhw:1,0 test1.wav  ----hdmi出声音   
2、aplay -Dhw:0,0 test1.wav---- ...

rk3399prod 使用方案2,没有声音啊。这个板子默认带喇叭么,请指教
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表