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.

Linux/AM5728: GP EVM audio input

Part Number: AM5728
Other Parts Discussed in Thread: BEAGLEBOARD-X15, TLV320AIC3104

Tool/software: Linux

Hi :

 I'm trying to use command arecord to record audio on AM572x GP EVM , but failed.

Same as the following links:

http://e2e.ti.com/support/arm/sitara_arm/f/791/p/515977/1879359

Whether the problem has been resolved?

Thanks

  • The software team have been notified. They will respond here.
  • Hi,

    Have you enabled the mic prior to running the arecord command? You should execute something like the bellow commands:
    amixer sset 'Right PGA Mixer Mic3L' on
    amixer sset 'Right PGA Mixer Mic3R' on
    amixer sset 'Left PGA Mixer Mic3L' on
    amixer sset 'Left PGA Mixer Mic3R' on

    Best Regards,
    Yordan
  • I've tried this method.The results are as follows:

    root@am57xx-evm:~# amixer sset 'Left PGA Mixer Mic3L' on
    amixer: Unable to find simple control 'Left PGA Mixer Mic3L',0

    The device tree configuration as follows:

    sound0: sound@0 {
    compatible = "simple-audio-card";
    simple-audio-card,name = "BeagleBoard-X15";
    simple-audio-card,widgets =
    "Line", "Line Out",
    "Line", "Line In";
    simple-audio-card,routing =
    "Line Out", "LLOUT",
    "Line Out", "RLOUT",
    "MIC2L", "Line In",
    "MIC2R", "Line In";

    /delete-property/The defination of DAI link
    simple-audio-card,format = "dsp_b";
    simple-audio-card,bitclock-master = <&sound0_master>;
    simple-audio-card,frame-master = <&sound0_master>;
    simple-audio-card,bitclock-inversion;

    simple-audio-card,cpu {
    sound-dai = <&mcasp3>;
    };

    sound0_master: simple-audio-card,codec {
    sound-dai = <&tlv320aic3104>;
    clocks = <&clkout2_clk>;
    };
    };

    So I tried as  as follows:

    root@am57xx-evm:~# amixer sset 'Left PGA Mixer Mic2R' on
    Simple mixer control 'Left PGA Mixer Mic2R',0
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [on]\

    But the recording is still failing

  • So I tried as as follows:
    amixer sset 'Right PGA Mixer Mic2L' on
    amixer sset 'Right PGA Mixer Mic2R' on
    amixer sset 'Left PGA Mixer Mic2L' on
    amixer sset 'Left PGA Mixer Mic2R' on
  • Hi,

    Does your aplay -l or cat /proc/asound detect your sound card? If yes, then I think this is an alsa configuration issue..

    Try turning off line in & turning on the MIC, something like:
    processors.wiki.ti.com/.../DRA7xx_GLSDK_Software_Developers_Guide

    Best Regards,
    Yordan
  • root@am57xx-evm:~# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: BeagleBoardX15 [BeagleBoard-X15], device 0: davinci-mcasp.0-tlv320aic3x-hifi tlv320aic3x-hifi-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: H58040000encode [HDMI 58040000.encoder], device 0: HDMI 58040000.encoder snd-soc-dummy-dai-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    I have tried many times as the link. All the results failed
  • Hi,

    I am facing the same issue. Please help.

    Regards,
    Prav