winealsa: Disable channel remapping for capture devices.

This commit is contained in:
Mark Harmstone 2014-11-07 15:13:32 +00:00 committed by Alexandre Julliard
parent 5d17f9bc7c
commit 8fe52db332
1 changed files with 1 additions and 1 deletions

View File

@ -1162,7 +1162,7 @@ static DWORD get_channel_mask(unsigned int channels)
static HRESULT map_channels(ACImpl *This, const WAVEFORMATEX *fmt)
{
if(fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE || fmt->nChannels > 2){
if(This->dataflow != eCapture && (fmt->wFormatTag == WAVE_FORMAT_EXTENSIBLE || fmt->nChannels > 2) ){
WAVEFORMATEXTENSIBLE *fmtex = (void*)fmt;
DWORD mask, flag = SPEAKER_FRONT_LEFT;
UINT i = 0;