static int audio_pcm_info_eq (struct audio_pcm_info *info, audsettings_t *as)

{

    int bits = 8, sign = 0;



    switch (as->fmt) {

    case AUD_FMT_S8:

        sign = 1;

    case AUD_FMT_U8:

        break;



    case AUD_FMT_S16:

        sign = 1;

    case AUD_FMT_U16:

        bits = 16;

        break;



    case AUD_FMT_S32:

        sign = 1;

    case AUD_FMT_U32:

        bits = 32;

        break;

    }

    return info->freq == as->freq

        && info->nchannels == as->nchannels

        && info->sign == sign

        && info->bits == bits

        && info->swap_endianness == (as->endianness != AUDIO_HOST_ENDIANNESS);

}

static int audio_pcm_info_eq (struct audio_pcm_info *info, audsettings_t *as)

{

    int bits = 8, sign = 0;



    switch (as->fmt) {

    case AUD_FMT_S8:

        sign = 1;

    case AUD_FMT_U8:

        break;



    case AUD_FMT_S16:

        sign = 1;

    case AUD_FMT_U16:

        bits = 16;

        break;



    case AUD_FMT_S32:

        sign = 1;

    case AUD_FMT_U32:

        bits = 32;

        break;

    }

    return info->freq == as->freq

        && info->nchannels == as->nchannels

        && info->sign == sign

        && info->bits == bits

        && info->swap_endianness == (as->endianness != AUDIO_HOST_ENDIANNESS);

}

static int FUNC_0 (struct audio_pcm_info *VAR_0, audsettings_t *VAR_1)

{

    int VAR_2 = 8, VAR_3 = 0;



    switch (VAR_1->fmt) {

    case AUD_FMT_S8:

        VAR_3 = 1;

    case AUD_FMT_U8:

        break;



    case AUD_FMT_S16:

        VAR_3 = 1;

    case AUD_FMT_U16:

        VAR_2 = 16;

        break;



    case AUD_FMT_S32:

        VAR_3 = 1;

    case AUD_FMT_U32:

        VAR_2 = 32;

        break;

    }

    return VAR_0->freq == VAR_1->freq

        && VAR_0->nchannels == VAR_1->nchannels

        && VAR_0->VAR_3 == VAR_3

        && VAR_0->VAR_2 == VAR_2

        && VAR_0->swap_endianness == (VAR_1->endianness != AUDIO_HOST_ENDIANNESS);

}

static int FUNC_0 (struct audio_pcm_info *VAR_0, audsettings_t *VAR_1)
{ int VAR_2 = 8, VAR_3 = 0; switch (VAR_1->fmt) { case AUD_FMT_S8:
VAR_3 = 1; case AUD_FMT_U8:
break; case AUD_FMT_S16:
VAR_3 = 1; case AUD_FMT_U16:
VAR_2 = 16; break; case AUD_FMT_S32:
VAR_3 = 1; case AUD_FMT_U32:
VAR_2 = 32; break; } return VAR_0->freq == VAR_1->freq
&& VAR_0->nchannels == VAR_1->nchannels
&& VAR_0->VAR_3 == VAR_3
&& VAR_0->VAR_2 == VAR_2
&& VAR_0->swap_endianness == (VAR_1->endianness != AUDIO_HOST_ENDIANNESS); }