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.

DM8168dvrrdk3.0 音频测试

Other Parts Discussed in Thread: TVP5158

root@dvr:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SOUND0 [TI81XX SOUND0], device 1: AIC3X tlv320aic3x-hifi-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SOUND1 [TI81XX SOUND1], device 0: hdmi HDMI-DAI-CODEC-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@dvr:/# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: SOUND0 [TI81XX SOUND0], device 0: TVP-PCM tvp5158-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: SOUND0 [TI81XX SOUND0], device 1: AIC3X tlv320aic3x-hifi-1 []
  Subdevices: 1/1

  Subdevice #0: subdevice #0

这是我的具体硬件配置, 我的音频输入接到开发板的音频1口,液晶电视接入开发板的hdmi0口, 运行

1.root@dvr:/# arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2|aplay -Dhw:0,0 -r8000 -fS
   16_LE -c1
   aplay: main:660: audio open error: No such file or directory
   Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
   root@dvr:/# arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2|aplay -Dhw:0,1 -r8000 -fS
  16_LE -c1
  Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
  Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
  arecord: pcm_read:1773: read error: Input/output error

2.root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,0 Side_Right.wav
   aplay: main:660: audio open error: No such file or directory
   root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,1 Side_Right.wav
   Playing WAVE 'Side_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
   aplay: set_params:1065: Channels count non available

以上是我的音频测试信息,出了些问题,麻烦帮我看看!

  • 1.root@dvr:/# arecord -Dhw:0,0 -r8000 -fS16_LE -twav -c2|aplay -Dhw:0,0 -r8000 -fS
       16_LE -c1
       aplay: main:660: audio open error: No such file or directory
       Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo

    你这里的aplay的设备谁知的是hw:0,0,根据你的信息,这个声卡是TVP-PCM tvp5158-hifi-0, TVP5158显然不支持回放,而且你的错误信息也显示“aplay: main:660: audio open error: No such file or directory” 打开播放设备出错。


    2.root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,0 Side_Right.wav
       aplay: main:660: audio open error: No such file or directory

    --- 这里与问题一类似


       root@dvr:/usr/share/sounds/alsa# aplay -Dhw:0,1 Side_Right.wav
       Playing WAVE 'Side_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
       aplay: set_params:1065: Channels count non available

    --- 这里是通道不对你的wav是单通道的,试一下搞一个双通道的wav文件播放

  • 谢谢louis!

    平台:DM8168,dvrrdk3.0;

    我运行mcfw可以录制音频的,生成的*.aac文件是可以播放发声,但是现在我运行gui的实时的和录制的都没有声音,我在怀疑是不是硬件有什么问题,所以才有以上的测试,根据你所说,我的tvp5158不支持回放,那我该怎么办?我的开发板是udwork,我现在都不知道是硬件有问题?还是gui软件有问题?你能告诉我吗?

  • losie ,我的播放设备是hw:1,0吧?

  • 你好,

          mcfw中的demo可以直接运行吗?我的dvrrdk3.0中mcfw中的demo有错误,错误是[host] MCFW_IPCFRAMES:VcapVenc_ipcFramesSendRecvFxn:Entered... [m3vpss ]  127346: Assertion @ Line: 464 in links_m3vpss/system/system_dctrl.c: retVal == FVID2_SOK : failed !!!,你帮忙看一下,谢谢!

  • 你好,

        路径\DVRRDK_03.00.00.00\dvr_rdk\demos下的demo程序已经没有再维护了,直接运行会有错误。可以参考DM81xx_DVR_RDK_Demo_Guide.pdf文档,运行MCFW的demos。