按照《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 [ROCKCHIPSPDIF ]: ROCKCHIP_SPDIF - ROCKCHIP,SPDIF ROCKCHIP,SPDIF 1 [rkhdmidpsound ]: 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=1 03-0205:52:52.309 251 251 D AudioHardwareTiny: ALSA Audio Version:V1.1.0 03-0205:52:52.309 251 251 D AudioHardwareTiny: card[0] =ROCKCHIPSPDIF 03-0205:52:52.309 251 251 D AudioHardwareTiny: card[1] =RKHDMIDPSOUND 03-0205:52:52.309 251 251 D AudioHardwareTiny: card[2] = 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 11 03-0205:53:03.087 251 334 V alsa_route: get_route_config() route11 03-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 route 03-0205:53:03.087 251 334 V alsa_route: route_pcm_open exit 03-0205:53:03.087 251 334 E AudioHardwareTiny:pcm_open(PCM_CARD_HDMI) failed: cannot open device '/dev/snd/pcmC1D0p': Deviceor resource busy 03-0205:53:03.089 653 653 W SystemConfig: No directory/system/etc/sysconfig, skipping 03-0205:53:03.099 251 334 D AudioHardwareTiny: 1212121start_output_stream 03-0205:53:03.099 251 334 E AudioHardwareTiny: vicent r 44100 c 2 ps512 pc 3 03-0205:53:03.099 463 750 I ACodec : callingProcessName:system_server 03-0205:53:03.099 251 334 D AudioHardwareTiny: Device : 0x8040a 03-0205:53:03.100 251 334 D AudioHardwareTiny: SampleRate : 44100 03-0205:53:03.100 251 334 D AudioHardwareTiny: Channels : 2 03-0205:53:03.100 251 334 D AudioHardwareTiny: Formate : 0 03-0205:53:03.100 251 334 D AudioHardwareTiny: PreiodSize : 512 03-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
非常感谢
|