suntao945firefl 发表于 2018-3-2 17:33:17

求助:HDMI播放无声音输出,启动过程有爆音,有LOG,求大神帮忙分析

按照《RK音频简介以及常见问题DEBUG方法.pdf》文档的方法调试,发现:1. 声卡注册不知道是否成功?[    2.403665] asoc-simple-card spdif-sound: dit-hifi <-> ff870000.spdif mapping ok[    2.404145] rk-hdmi-dp-sound hdmi-dp-sound: control 3:0:0:ELD:0 is already present[    2.404155] hdmi-audio-codec hdmi-audio-codec.8.auto: ASoC: Failed to add ELD: -16[    2.405498] rk-hdmi-dp-sound hdmi-dp-sound: multicodec <-> ff8a0000.i2s mapping ok[    2.407540] hdmi-audio-codec hdmi-audio-codec.8.auto: ASoC: Failed to create Playback debugfs file[    2.407916] rt5640 1-001c: rt5640 have no aux_det_adc_value defined
2.查看当前系统的声卡,声卡存在root@android:/ # cat /proc/asound/cards 0 : ROCKCHIP_SPDIF - ROCKCHIP,SPDIF                      ROCKCHIP,SPDIF 1 : rk-hdmi-dp-soun - rk-hdmi-dp-sound                      rk-hdmi-dp-sound
root@android:/ #
错误如下:
03-0205:52:52.283   257   257 I mediadrmserver: type=1400audit(0.0:13): avc: denied { execmod } forpath="/system/lib/libffmpeg.so" dev="mmcblk1p10" ino=1645scontext=u:r:mediadrmserver:s0 tcontext=u:object_r:system_file:s0 tclass=filepermissive=103-0205:52:52.309   251   251 D AudioHardwareTiny: ALSA Audio Version:V1.1.003-0205:52:52.309   251   251 D AudioHardwareTiny: card =ROCKCHIPSPDIF03-0205:52:52.309   251   251 D AudioHardwareTiny: card =RKHDMIDPSOUND03-0205:52:52.309   251   251 D AudioHardwareTiny: card = 03-0205:52:52.309   251   251 D AudioHardwareTiny: PCM_CARD=2,PCM_CARD_SPDIF=0, PCM_CARD_HDMI=1, PCM_BT=3

3:route报错03-0205:53:02.939   463   557 W KeyguardServiceDelegate:onScreenTurningOn(): no keyguard service!03-0205:53:03.087   251   334 V alsa_route: route_pcm_open() route 1103-0205:53:03.087   251   334 V alsa_route: get_route_config() route1103-0205:53:03.087   251   334 E alsa_route: get_route_config()route_table is NULL!03-0205:53:03.087   251   334 E alsa_route:route_pcm_open() Can not get config of route03-0205:53:03.087   251   334 V alsa_route: route_pcm_open exit03-0205:53:03.087   251   334 E AudioHardwareTiny:pcm_open(PCM_CARD_HDMI) failed: cannot open device '/dev/snd/pcmC1D0p': Deviceor resource busy03-0205:53:03.089   653   653 W SystemConfig: No directory/system/etc/sysconfig, skipping03-0205:53:03.099   251   334 D AudioHardwareTiny: 1212121start_output_stream03-0205:53:03.099   251   334 E AudioHardwareTiny: vicent r 44100c 2ps512 pc 303-0205:53:03.099   463   750 I ACodec : callingProcessName:system_server03-0205:53:03.099   251   334 D AudioHardwareTiny: Device   : 0x8040a03-0205:53:03.100   251   334 D AudioHardwareTiny: SampleRate : 4410003-0205:53:03.100   251   334 D AudioHardwareTiny: Channels   : 203-0205:53:03.100   251   334 D AudioHardwareTiny: Formate    : 003-0205:53:03.100   251   334 D AudioHardwareTiny: PreiodSize : 51203-0205:53:03.100   251   334 E AudioHardwareTiny:start_output_stream() >>>> PCM_CARD_HDMI:1, PCM_CARD:2,
麻烦大神告知一下,是声卡注册的问题还是,route的错误,03-02 05:53:03.087   251   334 E AudioHardwareTiny: pcm_open(PCM_CARD_HDMI) failed: cannot open device '/dev/snd/pcmC1D0p': Device or resource busy
非常感谢


Monster_Mr 发表于 2018-3-5 14:19:56

楼主解决了吗,我也遇到类似问题

Monster_Mr 发表于 2018-3-5 14:20:37

楼主解决了吗,我也遇到类似问题

suntao945firefl 发表于 2018-3-5 15:20:14

Monster_Mr 发表于 2018-3-5 14:20
楼主解决了吗,我也遇到类似问题

还没解决,没有大神出现

繧餤﹍.風輕. 发表于 2018-3-6 15:10:53

你用的是firefly的开发板,日志显示codec都有异常了

suntao945firefl 发表于 2018-3-8 11:29:38

繧餤﹍.風輕. 发表于 2018-3-6 15:10
你用的是firefly的开发板,日志显示codec都有异常了

那这个该如何解决?

pumpkinZhu 发表于 2018-5-23 10:28:18

hal层的通路有问题,把rkhdmidpsound注册为card0,ROCKCHIPSPDIF注册为card1,通路的配置文件用默认的,应该就可以了

suntao945firefl 发表于 2018-7-10 09:09:14

pumpkinZhu 发表于 2018-5-23 10:28
hal层的通路有问题,把rkhdmidpsound注册为card0,ROCKCHIPSPDIF注册为card1,通路的配置文件用默认的,应 ...

感谢
页: [1]
查看完整版本: 求助:HDMI播放无声音输出,启动过程有爆音,有LOG,求大神帮忙分析