dm8168 dvr3.50 32bit 音频数据应该是采集不到的吧,
我们用mca0,可以采集16bit数据,
如果采集32bit数据(HDMI 音频数据)
如果设置成如下:
if ((err = snd_pcm_hw_params_set_format (capture_handle, hw_params, SND_PCM_FORMAT_S32_LE)) < 0) {
采集32bit数据,就会出现这样的打印:
Segmentation fault
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.
dm8168 dvr3.50 32bit 音频数据应该是采集不到的吧,
我们用mca0,可以采集16bit数据,
如果采集32bit数据(HDMI 音频数据)
如果设置成如下:
if ((err = snd_pcm_hw_params_set_format (capture_handle, hw_params, SND_PCM_FORMAT_S32_LE)) < 0) {
采集32bit数据,就会出现这样的打印:
Segmentation fault
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/191507.aspx?pi199607=1
Ramappa,
The HDMI hardware only supports 16 and 24bit word size. You will not be able to support the same directly .
Alternatively you can use the ASLA "plughw:" options to convert any stream in software based on the support available on the hardware and achieve this.
Ex:
aplay -plughw:0,1 -r3200 -fS31_LE <sample file>
where plughw:0,1 is ur HDMI device (normal usage is -Dhw:0,1)
播放的时候似乎可以通过一些alsa的设置,播放32bit;
采集的时候呢?有类似的参数设置吗,可以采集32bit输入,但是实际保存的有效数据是16bit。