hardware/libaudio
Revision | 8900acb725ce00c691266e1c9f51adc7cfa7429e (tree) |
---|---|
Zeit | 2012-02-22 16:03:29 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
fix audio recording
@@ -1043,9 +1043,8 @@ status_t AudioHardware::AudioStreamInALSA::set( | ||
1043 | 1043 | return BAD_VALUE; |
1044 | 1044 | } |
1045 | 1045 | |
1046 | - if (pChannels == 0 || (*pChannels != AudioSystem::CHANNEL_IN_MONO && | |
1047 | - *pChannels != AudioSystem::CHANNEL_IN_STEREO)) { | |
1048 | - *pChannels = AUDIO_HW_IN_CHANNELS; | |
1046 | + if (pChannels == 0 || ( *pChannels != AudioSystem::CHANNEL_IN_STEREO)) { | |
1047 | + *pChannels = AudioSystem::CHANNEL_IN_STEREO ; | |
1049 | 1048 | return BAD_VALUE; |
1050 | 1049 | } |
1051 | 1050 |