Home | History | Annotate | Download | only in src

Lines Matching refs:hwparams

850   snd_pcm_hw_params_t *hwparams;
863 if ((rc = snd_pcm_hw_params_malloc(&hwparams)) < 0)
872 if ((rc = snd_pcm_hw_params_any(ghPCM, hwparams)) < 0)
878 if ((rc = snd_pcm_hw_params_set_access(ghPCM, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0)
884 if ((rc = snd_pcm_hw_params_set_format(ghPCM, hwparams, SND_PCM_FORMAT_S16_LE)) < 0)
906 if ((rc = snd_pcm_hw_params_set_rate_near(ghPCM, hwparams, &exact_rate, &dir)) < 0)
913 if ((rc = snd_pcm_hw_params_set_rate(ghPCM, hwparams, exact_rate, dir)) < 0)
921 if ((rc = snd_pcm_hw_params_set_channels(ghPCM, hwparams, NR_OF_CHANNELS)) < 0)
927 if ((rc = snd_pcm_hw_params(ghPCM, hwparams)) < 0)