Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/AM5728: McASP2 configuration questions

$
0
0

Part Number:AM5728

Tool/software: Linux

Hi,

I want to capture 8 mic data at a time so i am using McASP2 of Beagleboard X15 . I need help on these questions:-

1). how bitclk and Fsclk is configure at specific pin

2). If i want to record in minicom i am getting this error:-

arecord -f S16_LE  Mcasp2_1mic.wav -c 2 -r 96000                                                                           
Recording WAVE 'Mcasp2_1mic.wav' : Signed 16 bit Little Endian, Rate 96000 Hz, Stereo
[ 1463.776298] EXT4-fs error (device mmcblk0p2): ext4_mb_generate_buddy:757: group 2, block bitmap and bg descriptor inconsistent: 10370 vs 12418 frees
[ 1463.791240] EXT4-fs error (device mmcblk0p2): ext4_mb_generate_buddy:757: group 3, block bitmap and bg descriptor inconsistent: 7700 vs 20242 frees

3). i ahve done these configurations:-

 sound2: sound2 {
                compatible = "simple-audio-card";
                simple-audio-card,name = "PCM1681";
                simple-audio-card,format = "i2s";
                simple-audio-card,bitclock-master = <&sound2_master>;
                simple-audio-card,frame-master = <&sound2_master>;
                simple-audio-card,bitclock-inversion;

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

                sound2_master: simple-audio-card,codec {
                        sound-dai = <&pcm1681>;
                        clocks = <&clkout2_clk>;
                        clock-names = "mclk";
                };
        };
};

&dra7_pmx_core {
        mcasp2_pins: mcasp2_pins {
                pinctrl-single,pins= <
                  /* sink must enable transmitter/receivers*/
                    0x2f4 (PIN_INPUT_PULLDOWN | MUX_MODE0)
                    0x2f8 (PIN_INPUT_PULLDOWN | MUX_MODE0)
                    0x304 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)
                    0x308 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)

                >;
};

&mcasp2 {
        #sound-dai-cells = <0>;
        pinctrl-names = "default";
        pinctrl-0 = <&mcasp2_pins>;
        //assigned-clocks = <&mcasp2_ahclkx_mux>;
        //assigned-clock-parents = <&sys_clkin2>;
        status = "okay";

        op-mode = <0>;  /* MCASP_IIS_MODE */
        tdm-slots = <2>;
        /* 16 serializers */
        serial-dir = <  /* 0: INACTIVE, 1: TX, 2: RX */
                2 2 2 2
                2 2 2 2
                0 0 0 0
                0 0 0 0
        >;
        tx-num-evt = <32>;
        rx-num-evt = <32>;
};

i have made changes in  am57xx-beagleboardx-15-common.dtsi file

if any other files need to be changed please let me know as i don't know about device driver .

Thanks,

Pooja


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>