Lines Matching defs:config
513 struct msm_audio_config config;
514 config.buffer_size = BUFSZ;
515 config.buffer_count = 2;
516 config.sample_rate = 8000;
517 config.channel_count = 1;
518 config.unused[0] = 0;
519 config.unused[1] = 0;
520 config.unused[2] = 0;
521 config.unused[3] = 0;
522 if (copy_to_user((void *)arg, &config, sizeof(config)))
529 struct msm_audio_pcm_config config;
530 config.pcm_feedback = 0;
531 config.buffer_count = PCM_BUF_MAX_COUNT;
532 config.buffer_size = PCM_BUFSZ_MIN;
533 if (copy_to_user((void *)arg, &config, sizeof(config)))
540 struct msm_audio_pcm_config config;
542 (&config, (void *)arg, sizeof(config))) {
546 if ((config.buffer_count > PCM_BUF_MAX_COUNT) ||
547 (config.buffer_count == 1))
548 config.buffer_count = PCM_BUF_MAX_COUNT;
550 if (config.buffer_size < PCM_BUFSZ_MIN)
551 config.buffer_size = PCM_BUFSZ_MIN;
554 if ((config.pcm_feedback) && (!audio->read_data)) {
556 config.buffer_count *
557 config.buffer_size);
560 config.buffer_size *
561 config.buffer_count,
574 config.buffer_count;
579 index < config.buffer_count;
586 config.buffer_size;
588 offset += config.buffer_size;