MB:2N8MP

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
(How to Test CN059/AU002)
Line 163: Line 163:
C-Media Electronics Inc. USB Advanced Audio Device at usb-xhci-hcd.1.auto-1.4.4
C-Media Electronics Inc. USB Advanced Audio Device at usb-xhci-hcd.1.auto-1.4.4
-
CN059/AU002 recored
+
#CN059/AU002 Recored Test
root@imx8mpevk:~# arecord -Dhw:1,0 -d 5 -f cd -r 44100 test.wav
root@imx8mpevk:~# arecord -Dhw:1,0 -d 5 -f cd -r 44100 test.wav
Line 169: Line 169:
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
-
CN059/AU002 play
+
#CN059/AU002 play Test
root@imx8mpevk:~# aplay -Dhw:1,0 -f cd -r 44100 test.wav
root@imx8mpevk:~# aplay -Dhw:1,0 -f cd -r 44100 test.wav
Line 175: Line 175:
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
-
CN059/AU002邊錄邊放測試
+
#CN059/AU002 Record+Play Test
-
1.註冊聲卡使用pactl list sinks 和pactl list sources來查詢
+
1.check sound card
-
2.指定聲卡來源pacmd set-default-source 1 (Microphone)
+
#pactl list sinks
-
3.指定聲卡sink來源pacmd set-default-sink 0 (C-Media)
+
#pactl list sources
 +
 
 +
2.assignation Sound Card source:
 +
 
 +
#pacmd set-default-source 1 (Microphone)
 +
 
 +
3.assignation Sound Card sink
 +
pacmd set-default-sink 0 (C-Media)
 +
 
 +
4.Line In Test : First Modify source Active Port is analog-input-linein:
-
4.測試Line In時 : 需要先去修改source #1 Active Port為analog-input-linein,命令如下:
 
#pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-linein
#pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-linein
-
測試Mic In時:要先修改source #1 Active Port為analog-input-mic(Default),命令如下:
+
 
 +
Mic In Test:First Modify source Active Port = analog-input-mic(Default)
 +
 
#pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-mic
#pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-mic
-
5.邊錄邊播放指令
+
5.Arecord + Play Command
#arecord –Dhw:1,0 –d 5 –f cd –r 44100 | aplay –Dhw:1,0 –r44100
#arecord –Dhw:1,0 –d 5 –f cd –r 44100 | aplay –Dhw:1,0 –r44100

Revision as of 15:37, 9 May 2024

O.S.CPURevLVDSHDMIDual outputM.2(B key)nano SIMUSB2.0USB3.0PCIELANCOM-422COM-485F75111NWDT/DIOTPM2.0CN059AU002Download Patch

zeus_yocto

A53

0.3

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

-

Yes

Yes

kernel5.4.70

kirkstone_yocto

A53

0.3

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

-

Yes

Yes

kernel5.15.71

kirkstone_desktop

A53

0.3

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

Yes

-

-

kernel5.15.71

edit table


Contents

How to Test CIO/CPWM1

Image:READ_ME.png

Download Sample code

DIO.ZIP https://drive.google.com/file/d/1ozNkJM7kMCuZY4z5h6gxbEk6VwjMniiT/view?usp=drive_link

Note

TPM2.0 only kirkstone_desktop Test, because other kernel not support clevis tool

How to Test CN059/AU002

root@imx8mpevk:~# cat /proc/asound/cards

0 [audiohdmi      ]: audio-hdmi - audio-hdmi
                     audio-hdmi
1 [Device         ]: USB-Audio - USB Advanced Audio Device
                     C-Media Electronics Inc. USB Advanced Audio Device at usb-xhci-hcd.1.auto-1.4.4
  1. CN059/AU002 Recored Test

root@imx8mpevk:~# arecord -Dhw:1,0 -d 5 -f cd -r 44100 test.wav

Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

  1. CN059/AU002 play Test

root@imx8mpevk:~# aplay -Dhw:1,0 -f cd -r 44100 test.wav

Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

  1. CN059/AU002 Record+Play Test

1.check sound card

  1. pactl list sinks
  1. pactl list sources

2.assignation Sound Card source:

  1. pacmd set-default-source 1 (Microphone)

3.assignation Sound Card sink pacmd set-default-sink 0 (C-Media)

4.Line In Test : First Modify source Active Port is analog-input-linein:

  1. pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-linein

Mic In Test:First Modify source Active Port = analog-input-mic(Default):

  1. pacmd set-source-port alsa_input.usb-C-Media_Electronics_Inc._USB_Advanced_Audio_Device-00.analog-stereo analog-input-mic

5.Arecord + Play Command

  1. arecord –Dhw:1,0 –d 5 –f cd –r 44100 | aplay –Dhw:1,0 –r44100

Support 4G/5G LTE Module

SIMCOM SIM7906G-M2,LTE CAT6 M.2 Type Module

SIMCOM SIM8200EA-M2

Support WIFI/BT Module

AzureWave AW-CM276MA SDIO-UART

Personal tools