arecord -D auxin -r 44100 -c 2 -t raw -f S32_LE | aplay -D out -c 2 -r 44100 -f S32_LE
aplay -D hw:2,0 -c 2 -r 48000 -f S16_LE lrch.wav
speaker-test -Dhw:2,0 -c2 -twav | arecord -Dhw:2,1 -d60 -c2 -r48000 -twav -fS16_LE lrch.wav
arecord -D auxin -r 44100 -c 2 -t raw -f S32_LE | busybox hexdump -C -v
amixer cset -c0 numid=4 60
cat /proc/asound/card0/pcm1p/sub0/status
bash-4.3# cat /sys/kernel/debug/gpio
GPIOs 0-23, platform/1800a000.gpio, 1800a000.gpio:
gpio-5 (led1_blue ) out lo
gpio-6 (led1_green ) out lo
gpio-7 (led2_blue ) out lo
gpio-8 (aux-gpio ) in hi
gpio-10 (Reset ) in lo
gpio-11 (gpio-mod1-det ) in lo
gpio-12 (WiFi_WPS ) in lo
gpio-13 (gpio-mod2-det ) in hi
gpio-16 (led2_amber ) out hi
gpio-17 (Play ) in lo
gpio-18 (BT ) in lo
gpio-19 (Slash ) in lo
gpio-20 (Vol_Up ) in lo
gpio-21 (Vol_down ) in lo
GPIOs 24-169, platform/180a5000.gpio, 180a5000.gpio:
gpio-38 (gpio-cs48l11-busy ) in hi
gpio-39 (gpio-optical-det ) in hi
gpio-40 (gpio-amp-mute ) out lo
gpio-42 (cpld-mode-gpio ) out hi
gpio-64 (gpio-cs48l11-reset ) out hi
gpio-67 (gpio-cs48l11-cs ) out hi
gpio-68 (gpio-reset ) out hi
gpio-69 (gpio-codec-power ) out lo
gpio-88 (gpio-cs48l11-int ) in lo
gpio-97 (gpio-aux-switch ) out lo
gpio-125 (bt-rf-reg1 ) out hi
gpio-126 (bt-rf-reg0 ) out hi
gpio-127 (led1_white ) out lo
gpio-128 (led2_white ) out lo
gpio-144 (gpio-codec-int ) in lo
gpio-145 (vbus_presence ) in lo
gpio-146 (usb_id ) in hi
GPIOs 170-175, platform/3024800.gpio, 3024800.gpio:
gpio-170 (gpio-aux-det ) in hi
gpio-173 (ssp-wa-gpio ) out hi
bash-4.3# amixer contents -c 0
numid=2,iface=MIXER,name='Master'
; type=INTEGER,access=rw------,values=1,min=0,max=100,step=0
: values=0
numid=3,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=4,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw------,values=1,min=0,max=100,step=0
: values=0
numid=11,iface=MIXER,name='AOUTA1 Mute'
; type=INTEGER,access=rw------,values=1,min=0,max=1,step=0
: values=0
numid=6,iface=MIXER,name='HKAuxDetect'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=7,iface=MIXER,name='HKOptPlugIn'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=8,iface=MIXER,name='HKOpticalDirectOutput'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=5,iface=MIXER,name='HKPlayOptical'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=10,iface=MIXER,name='HKVolumeAdjust'
; type=INTEGER,access=rw------,values=1,min=-100,max=100,step=0
: values=0
numid=1,iface=MIXER,name='Mute'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=9,iface=PCM,name='IEC958 External Rate'
; type=INTEGER,access=r--v----,values=1,min=0,max=192000,step=0
: values=0
bash-4.3# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: bcmcygnushoka [bcm-cygnus-hoka], device 0: cygsvkdev0_stream cs42528-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: bcmcygnushoka [bcm-cygnus-hoka], device 1: cygsvkdev1_stream cs42528-hifi-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: bcmcygnushoka [bcm-cygnus-hoka], device 2: bluetooth snd-soc-dummy-dai-2 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: bcmcygnushoka [bcm-cygnus-hoka], device 3: SPDIF snd-soc-dummy-dai-3 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 2: Blackfire [Blackfire], device 0: Loopback PCM [Loopback PCM]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 2: Blackfire [Blackfire], device 1: Loopback PCM [Loopback PCM]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
本文转自FrankNie0101 51CTO博客,原文链接:http://blog.51cto.com/frankniefaquan/1933850,如需转载请自行联系原作者