Lines Matching defs:config
547 struct msm_audio_config config;
548 config.buffer_size = BUFSZ;
549 config.buffer_count = 2;
550 config.sample_rate = 8000;
551 config.channel_count = 1;
552 config.unused[0] = 0;
553 config.unused[1] = 0;
554 config.unused[2] = 0;
555 config.unused[3] = 0;
556 if (copy_to_user((void *)arg, &config,
557 sizeof(config)))
565 struct msm_audio_pcm_config config;
566 config.pcm_feedback = 0;
567 config.buffer_count = PCM_BUF_MAX_COUNT;
568 config.buffer_size = PCM_BUFSZ_MIN;
569 if (copy_to_user((void *)arg, &config,
570 sizeof(config)))
577 struct msm_audio_pcm_config config;
579 (&config, (void *)arg, sizeof(config))) {
583 if ((config.buffer_count > PCM_BUF_MAX_COUNT) ||
584 (config.buffer_count == 1))
585 config.buffer_count = PCM_BUF_MAX_COUNT;
587 if (config.buffer_size < PCM_BUFSZ_MIN)
588 config.buffer_size = PCM_BUFSZ_MIN;
591 if ((config.pcm_feedback) && (!audio->read_data)) {
593 config.buffer_count *
594 config.buffer_size);
597 config.buffer_size *
598 config.buffer_count,
610 config.buffer_count;
615 index < config.buffer_count; index++) {
621 config.buffer_size;
623 offset += config.buffer_size;