am335x alsa codec调试

root@phyCORE-AM335x:~ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: audio [PCM051 audio], device 0: wm8976 wm8976-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@phyCORE-AM335x:~ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: audio [PCM051 audio], device 0: wm8976 wm8976-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Camera [USB 2.0 PC Camera], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 

aplay -f cd  -D plughw:0,0  /home/1.wav               //使用card(0)device(0)立体声播放1.wav

arecord -f cd -D plughw:0,0 -t wav  /home/1.wav           //使用card(0)device(0)立体声录音并保存文件名1.wav

arecord -D plughw:1,0 | aplay -D plughw:0,0                 //使用 card(1)device(0)录音,同时使用 card(0)device(0)放音

 

你可能感兴趣的:(code)