Hi Pavel,
I have one question to be solved.
I have two boards.So I want one board to send PCM data packets and other one to receive the data packets.
How to do ? Is there any tool?
Do you understand me? If not, please let me know .
BR
Bob
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.
Hi Pavel,
I have one question to be solved.
I have two boards.So I want one board to send PCM data packets and other one to receive the data packets.
How to do ? Is there any tool?
Do you understand me? If not, please let me know .
BR
Bob
Bob,
bob lee said:I have two boards.
Do you have two DM814x custom boards?
bob lee said:So I want one board to send PCM data packets and other one to receive the data packets.
So you want 1st DM814x McASP ---> (PCM data) ---> 2nd DM814x McASP?
bob lee said:How to do ? Is there any tool?
You can check if ALSA or ADEC will be in help. See the below links:
http://processors.wiki.ti.com/index.php/TI81XX_PSP_AUDIO_Driver_User_Guide
http://processors.wiki.ti.com/index.php/OMX_EZSDK_Examples#Adec_Snt
Regards,
Pavel
Hi Pavel,
Do you have two DM814x custom boards?
One is DM8148 custom board,other one is OMAPL138(Funtion based PCM is ok).
So you want 1st DM814x McASP ---> (PCM data) ---> 2nd DM814x McASP?
OMAPL138 McASP --->(PCM data) ---> DM8148 McASP (out custom board).
BR
Bob
Bob,
bob lee said:On OMAPL138 board, execute aplay.
On DM8148 board,execute arecord.
Is it right?
I think yes, this is right. You can try this.
Regards.
Pavel
Hi Pavel,
I have tried,maybe not succeeded.
The file I use to play is 960044 bytes,but the file I record is 44 bytes.
Would you tell me how to use aplay and arecord tools ? And give me some suggestions.
Thank you .
BR
Bob
Bob,
bob lee said:In this case,Can we also use aplay and arecord tools?
arecord utility is sued to record the audio through audio capture device (AIC3x audio codec, USB audio device, SPDIF DIR).
arecord option '-l' is used to list audio capture devices on board
arecord application is used to record the audio coming from audio in line.
Most of the boards have simple audio setup which means we have one sound card with one playback and one capture PCM. To list the available sound cards and PCMs for playback:
aplay -l
To list the available sound cards and PCMs for capture:
arecord -l
In most cases 0 is the device we want to use for audio but in case we have several audio
devices (onboard + USB for example) you need to specify which device to use for audio.
root@dm814x-evm:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:~#
Regards,
Pavel
Hi,
There is no tlv320alc3x chip on Our custom board,and the PCM data is from other board. In this case,Can we also use aplay and arecord tools? |
you mean tlv320aic3x rite ? As long as the driver conforms to Linux alsa framework
you can use aplay & arecord tools.
Thanks,
--Prabhakar Lad
Hi Pavel,
Here is the information on my side.
root@dm814x-evm:/media/mmcblk0p1# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:/media/mmcblk0p1# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: EVM [TI81XX EVM], device 1: hdmi HDMI-DAI-CODEC-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:/media/mmcblk0p1#
But there is no tlv320aic3x chip on our board.
Can we also transmit and receive PCM data ?
BR
Bob
Hi Prabhakar,
Yes ,you are right.
Our custom board is based on ti8148 EVM board.But our board is no tlv320aic3x chip.
And I want to transmit and receive PCM data from other board.
In this case ,can I finish it ?Thank you.
BR
Bob
Hi,
Can you print the o/p of arecord -l and aplay -l on your custom board ? If it doesn’t list out anything its not possible.
alternatively if your custom board has usb, You can use a USB microphone/speaker and use arecord & aplay.
Thanks,
--Prabhakar Lad
Hi Pavel,
Here is the information.
root@dm814x-evm:/media/mmcblk0p1# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:/media/mmcblk0p1# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: EVM [TI81XX EVM], device 1: hdmi HDMI-DAI-CODEC-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:/media/mmcblk0p1#
BR
Bob
Hi Prabhakar,
Here is the information.
root@dm814x-evm:/media/mmcblk0p1# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:/media/mmcblk0p1# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: EVM [TI81XX EVM], device 1: hdmi HDMI-DAI-CODEC-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@dm814x-evm:/media/mmcblk0p1#
BR
Bob
Bob,
bob lee said:the output wave is not correct
Do you mean that the output wave of the OMAPL138 McASP is not correct?
Best regards,
Pavel
Bob,
bob lee said:Figure 2 is the wave for our custom board DM8148 to arecord.But it is not correct.
On which DM814x McASP pin you have this "not correct" wave?
BR
Pavel