alsa arecord录音
本帖最后由 bayers 于 2010-8-17 09:37 编辑移植alsa-lib alsa-utils到开发板
运行 arecord -t wav -f dat myrecord.wav录音
运行 aplay myrecord.wav 没有声音
请问怎么解决?谢谢。
运行 alsactl store -f asound.state获得alsa相关状态数据
state.SMDK6400 {
control.1 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Speaker Playback Volume'
value.0 31
value.1 31
}
control.2 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Speaker Playback Switch'
value.0 true
value.1 true
}
control.3 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Headphone Playback Volume'
value.0 31
value.1 31
}
control.4 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
}
control.5 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Line In Volume'
value.0 23
value.1 23
}
control.6 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'PCM Playback Volume'
value.0 23
value.1 23
}
control.7 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mic 1 Volume'
value 23
}
control.8 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mic 2 Volume'
value 23
}
control.9 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mic Boost (+20dB) Switch'
value true
}
control.10 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Mic Headphone Mixer Volume'
value 5
}
control.11 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture Switch'
value true
}
control.12 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 2
comment.item.0 '+1.5dB Steps'
comment.item.1 '+0.75dB Steps'
iface MIXER
name 'Capture Volume Steps'
value.0 '+1.5dB Steps'
value.1 '+1.5dB Steps'
}
control.13 {
comment.access 'read write'
comment.type INTEGER
comment.count 2
comment.range '0 - 31'
iface MIXER
name 'Capture Volume'
value.0 15
value.1 15
}
control.14 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture ZC Switch'
value true
}
control.15 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Capture to Headphone Volume'
value 5
}
control.16 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture to Mono Boost (+20dB) Switch'
value true
}
control.17 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Capture ADC Boost (+20dB) Switch'
value true
}
control.18 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Target Volume'
value 11
}
control.19 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Hold Time'
value 0
}
control.20 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Decay Time'
value 3
}
control.21 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'ALC Attack Time'
value 2
}
control.22 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 None
comment.item.1 Left
comment.item.2 Right
comment.item.3 Stereo
iface MIXER
name 'ALC Function'
value None
}
control.23 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'ALC Max Volume'
value 7
}
control.24 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 3'
iface MIXER
name 'ALC ZC Timeout'
value 3
}
control.25 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'ALC ZC Switch'
value true
}
control.26 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'ALC NG Switch'
value true
}
control.27 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Constant Gain'
comment.item.1 Mute
iface MIXER
name 'ALC NG Type'
value 'Constant Gain'
}
control.28 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'ALC NG Threshold'
value 0
}
control.29 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Speaker Playback ZC Switch'
value.0 true
value.1 true
}
control.30 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 2
iface MIXER
name 'Headphone Playback ZC Switch'
value.0 true
value.1 true
}
control.31 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Out4 Playback Switch'
value true
}
control.32 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Out4 Playback ZC Switch'
value true
}
control.33 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 63'
iface MIXER
name 'Out4 Playback Volume'
value 63
}
control.34 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Out3 Playback Switch'
value true
}
control.35 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Out3 Playback ZC Switch'
value true
}
control.36 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 63'
iface MIXER
name 'Out3 Playback Volume'
value 63
}
control.37 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mono Capture Volume'
value 23
}
control.38 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Playback Switch'
value true
}
control.39 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Playback ZC Switch'
value true
}
control.40 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 31'
iface MIXER
name 'Mono Playback Volume'
value 31
}
control.41 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'PC Beep Playback Headphone Volume'
value 5
}
control.42 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'PC Beep Playback Speaker Volume'
value 5
} control.43 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'PC Beep Playback Mono Volume'
value 5
}
control.44 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Voice Playback Headphone Volume'
value 5
}
control.45 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Voice Playback Master Volume'
value 5
}
control.46 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Voice Playback Mono Volume'
value 5
}
control.47 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Aux Playback Headphone Volume'
value 5
}
control.48 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Aux Playback Master Volume'
value 5
}
control.49 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 7'
iface MIXER
name 'Aux Playback Mono Volume'
value 5
}
control.50 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Linear Control'
comment.item.1 'Adaptive Boost'
iface MIXER
name 'Bass Control'
value 'Linear Control'
}
control.51 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Bass Cut-off Switch'
value true
}
control.52 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Tone Cut-off Switch'
value true
}
control.53 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Playback Attenuate (-6dB) Switch'
value true
}
control.54 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'Bass Volume'
value 0
}
control.55 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name 'Tone Volume'
value 0
}
control.56 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name '3D Upper Cut-off Switch'
value true
}
control.57 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name '3D Lower Cut-off Switch'
value true
}
control.58 {
comment.access 'read write'
comment.type INTEGER
comment.count 1
comment.range '0 - 15'
iface MIXER
name '3D Depth'
value 15
}
control.59 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer PC Beep Playback '
value true
}
control.60 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer Voice Playback Sw'
value true
}
control.61 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer Aux Playback Swit'
value true
}
control.62 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer PCM Playback Swit'
value true
}
control.63 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer MonoIn Playback S'
value true
}
control.64 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Speaker Mixer Bypass Playback S'
value true
}
control.65 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Mixer PC Beep Playback Swi'
value true
}
control.66 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Mixer Voice Playback Switc'
value true
}
control.67 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Mixer Aux Playback Switch'
value true
}
control.68 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Mixer PCM Playback Switch'
value true
}
control.69 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Mixer Bypass Playback Swit'
value true
}
control.70 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Mixer Mic 1 Sidetone Switc'
value true
}
control.71 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Mono Mixer Mic 2 Sidetone Switc'
value true
}
control.72 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Right HP Mixer PC Beep Playback'
value true
}
control.73 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Right HP Mixer Voice Playback S'
value true
}
control.74 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Right HP Mixer Aux Playback Swi'
value true
}
control.75 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Right HP Mixer PCM Playback Swi'
value true
}
control.76 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Right HP Mixer MonoIn Playback '
value true
}
control.77 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Right HP Mixer Bypass Playback '
value true
}
control.78 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Left HP Mixer PC Beep Playback '
value true
}
control.79 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Left HP Mixer Voice Playback Sw'
value true
}
control.80 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Left HP Mixer Aux Playback Swit'
value true
}
control.81 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Left HP Mixer PCM Playback Swit'
value true
}
control.82 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Left HP Mixer MonoIn Playback S'
value true
} control.83 {
comment.access 'read write'
comment.type BOOLEAN
comment.count 1
iface MIXER
name 'Left HP Mixer Bypass Playback S'
value true
}
control.84 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 MPB
comment.item.1 MPA
iface MIXER
name 'Mic B Source'
value MPA
}
control.85 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Mic 1'
comment.item.1 'Mic 2 A'
comment.item.2 'Mic 2 B'
iface MIXER
name 'Mic A Source'
value 'Mic 1'
}
control.86 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Mic 1'
comment.item.1 'Mic 2'
comment.item.2 Line
comment.item.3 'Mono In'
comment.item.4 Headphone
comment.item.5 Speaker
comment.item.6 'Mono Out'
comment.item.7 Zh
iface MIXER
name 'Right Capture Source'
value 'Mic 1'
}
control.87 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 'Mic 1'
comment.item.1 'Mic 2'
comment.item.2 Line
comment.item.3 'Mono In'
comment.item.4 Headphone
comment.item.5 Speaker
comment.item.6 'Mono Out'
comment.item.7 Zh
iface MIXER
name 'Left Capture Source'
value 'Mic 1'
}
control.88 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Off
comment.item.1 Mono
comment.item.2 Speaker
comment.item.3 'Left Headphone'
comment.item.4 'Right Headphone'
comment.item.5 'Headphone Mono'
comment.item.6 NC
comment.item.7 Vmid
iface MIXER
name 'DAC Inv Mux 2'
value Speaker
}
control.89 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Off
comment.item.1 Mono
comment.item.2 Speaker
comment.item.3 'Left Headphone'
comment.item.4 'Right Headphone'
comment.item.5 'Headphone Mono'
comment.item.6 NC
comment.item.7 Vmid
iface MIXER
name 'DAC Inv Mux 1'
value Speaker
}
control.90 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Vmid
comment.item.1 Zh
comment.item.2 'Inv 2'
comment.item.3 'Inv 2 Vmid'
iface MIXER
name 'Out 4 Mux'
value Vmid
}
control.91 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Vmid
comment.item.1 Zh
comment.item.2 'Inv 1'
comment.item.3 'Inv 1 Vmid'
iface MIXER
name 'Out 3 Mux'
value Vmid
}
control.92 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Vmid
comment.item.1 Zh
comment.item.2 Headphone
iface MIXER
name 'Right Headphone Out Mux'
value Vmid
}
control.93 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Vmid
comment.item.1 Zh
comment.item.2 Headphone
iface MIXER
name 'Left Headphone Out Mux'
value Vmid
}
control.94 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Vmid
comment.item.1 Zh
comment.item.2 Headphone
comment.item.3 Speaker
comment.item.4 Inv
comment.item.5 'Headphone Vmid'
comment.item.6 'Speaker Vmid'
comment.item.7 'Inv Vmid'
iface MIXER
name 'Right Speaker Out Mux'
value Vmid
}
control.95 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Vmid
comment.item.1 Zh
comment.item.2 Headphone
comment.item.3 Speaker
comment.item.4 Inv
comment.item.5 'Headphone Vmid'
comment.item.6 'Speaker Vmid'
comment.item.7 'Inv Vmid'
iface MIXER
name 'Left Speaker Out Mux'
value Vmid
}
control.96 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Vmid
comment.item.1 Zh
comment.item.2 Mono
comment.item.3 Inv
iface MIXER
name 'Mono Out Mux'
value Vmid
}
control.97 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Stereo
comment.item.1 Left
comment.item.2 Right
comment.item.3 Mute
iface MIXER
name 'Capture Mono Mux'
value Mute
}
control.98 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Stereo
comment.item.1 'Mic 1'
comment.item.2 'Mic 2'
comment.item.3 Mute
iface MIXER
name 'Sidetone Mux'
value Mute
}
control.99 {
comment.access 'read write'
comment.type ENUMERATED
comment.count 1
comment.item.0 Stereo
comment.item.1 Left
comment.item.2 Right
comment.item.3 Mute
iface MIXER
name 'Capture Headphone Mux'
value Mute
}
} 楼主能不能介绍一下所移植的程序以及简略的移植方法。
楼主碰到的问题,大家不一定碰到过。
页:
[1]