Revision 4d1d6f7a libavdevice/alsa-audio-common.c

View differences:

libavdevice/alsa-audio-common.c
36 36
static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id)
37 37
{
38 38
    switch(codec_id) {
39
        case CODEC_ID_PCM_S32LE: return SND_PCM_FORMAT_S32_LE;
40
        case CODEC_ID_PCM_S32BE: return SND_PCM_FORMAT_S32_BE;
39 41
        case CODEC_ID_PCM_S16LE: return SND_PCM_FORMAT_S16_LE;
40 42
        case CODEC_ID_PCM_S16BE: return SND_PCM_FORMAT_S16_BE;
41 43
        case CODEC_ID_PCM_S8:    return SND_PCM_FORMAT_S8;
......
83 85

  
84 86
REORDER_OUT_51(s16, int16_t)
85 87
REORDER_OUT_71(s16, int16_t)
88
REORDER_OUT_51(s32, int32_t)
89
REORDER_OUT_71(s32, int32_t)
86 90

  
87 91
#define REORDER_DUMMY ((void *)1)
88 92

  
......
98 102
        layout == AV_CH_LAYOUT_7POINT1 ?
99 103
            out ? alsa_reorder_s16_out_71 : NULL :
100 104
            NULL :
105
    codec_id == CODEC_ID_PCM_S32LE || codec_id == CODEC_ID_PCM_S32BE ?
106
        layout == AV_CH_LAYOUT_5POINT1_BACK || layout == AV_CH_LAYOUT_5POINT1 ?
107
            out ? alsa_reorder_s32_out_51 : NULL :
108
        layout == AV_CH_LAYOUT_7POINT1 ?
109
            out ? alsa_reorder_s32_out_71 : NULL :
110
           NULL :
101 111
        NULL;
102 112
}
103 113

  

Also available in: Unified diff