Lines Matching refs:cfg
382 struct usb_stream_config *cfg; in usb_stream_hwdep_ioctl() local
392 cfg = memdup_user((void *)arg, sizeof(*cfg)); in usb_stream_hwdep_ioctl()
393 if (IS_ERR(cfg)) in usb_stream_hwdep_ioctl()
394 return PTR_ERR(cfg); in usb_stream_hwdep_ioctl()
396 if (cfg->version != USB_STREAM_INTERFACE_VERSION) { in usb_stream_hwdep_ioctl()
401 if ((cfg->sample_rate != 44100 && cfg->sample_rate != 48000 && in usb_stream_hwdep_ioctl()
403 (cfg->sample_rate != 88200 && cfg->sample_rate != 96000))) || in usb_stream_hwdep_ioctl()
404 cfg->frame_size != 6 || in usb_stream_hwdep_ioctl()
405 cfg->period_frames > 0x3000) { in usb_stream_hwdep_ioctl()
409 switch (cfg->sample_rate) { in usb_stream_hwdep_ioctl()
422 if (cfg->period_frames < min_period_frames) { in usb_stream_hwdep_ioctl()
434 if (!s || memcmp(cfg, &s->cfg, sizeof(*cfg))) { in usb_stream_hwdep_ioctl()
440 if (!s || memcmp(cfg, &s->cfg, sizeof(*cfg)) || in usb_stream_hwdep_ioctl()
443 if (!us122l_start(us122l, cfg->sample_rate, cfg->period_frames)) in usb_stream_hwdep_ioctl()
451 kfree(cfg); in usb_stream_hwdep_ioctl()
725 us122l->sk.s->cfg.sample_rate); in snd_us122l_resume()