Lines Matching defs:config
527 struct msm_audio_config config;
528 config.buffer_size = BUFSZ;
529 config.buffer_count = BUF_COUNT;
530 config.sample_rate = 8000;
531 config.channel_count = 1;
532 config.unused[0] = 0;
533 config.unused[1] = 0;
534 config.unused[2] = 0;
535 config.unused[3] = 0;
536 if (copy_to_user((void *)arg, &config,
537 sizeof(config)))
545 struct msm_audio_pcm_config config;
547 config.pcm_feedback = 0;
548 config.buffer_count = PCM_BUF_MAX_COUNT;
549 config.buffer_size = PCM_BUFSZ_MIN;
550 if (copy_to_user((void *)arg, &config,
551 sizeof(config)))
558 struct msm_audio_pcm_config config;
560 if (copy_from_user(&config, (void *)arg,
561 sizeof(config))) {
565 if ((config.buffer_count > PCM_BUF_MAX_COUNT) ||
566 (config.buffer_count == 1))
567 config.buffer_count = PCM_BUF_MAX_COUNT;
569 if (config.buffer_size < PCM_BUFSZ_MIN)
570 config.buffer_size = PCM_BUFSZ_MIN;
573 if ((config.pcm_feedback) && (!audio->read_data)) {
576 config.buffer_count * config.buffer_size);
578 config.buffer_size * config.buffer_count,
592 config.buffer_count;
597 index < config.buffer_count; index++) {
603 config.buffer_size;
605 offset += config.buffer_size;