Lines Matching refs:cdev
74 char *cdev);
739 char *cdev = NULL;
754 cdev = strdup(s->data.cdev);
755 if (cdev == NULL)
757 if (rewrite_device_value(uc_mgr, "PlaybackCTL", &cdev))
765 if (cdev == NULL && uc_mgr->in_component_domain) {
767 * its parent's cdev stored by ucm manager.
769 if (uc_mgr->cdev == NULL) {
770 uc_error("cdev is not defined!");
774 cdev = strndup(uc_mgr->cdev, PATH_MAX);
775 if (!cdev)
777 } else if (cdev == NULL) {
786 uc_error("cdev is not defined!");
795 uc_error("cdev is not defined!");
800 uc_error("cdev is not defined!");
808 uc_error("cdev is not equal for playback and capture!");
812 cdev = playback_ctl;
815 cdev = capture_ctl;
819 err = uc_mgr_open_ctl(uc_mgr, &ctl_list, cdev, 1);
821 uc_error("unable to open ctl device '%s'", cdev);
873 * device. Pass the cdev defined by the machine device.
880 cdev);
906 free(cdev);
912 free(cdev);
921 * specify the sound card device 'cdev', because a component can be reused
923 * parameter 'cdev' is used to pass cdev defined by the sequence of its
924 * parent, the machine device. UCM manger will store the cdev when entering
932 char *cdev)
938 /* enter component domain and store cdev for the component */
940 uc_mgr->cdev = cdev;
954 /* exit component domain and clear cdev */
956 uc_mgr->cdev = NULL;