Changeset 542 for GPL/trunk/lib32/ioctl.c
- Timestamp:
- Sep 22, 2010, 8:52:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/ioctl.c
r528 r542 139 139 if (j++ > timeout) 140 140 { 141 printk("j with tout =%i. handle: %x\n",j, pHandle);141 dprintf(("WaitForPCMInterrupt: Timeout j=%i handle=%x\n", j, pHandle)); 142 142 return -ETIME; 143 143 } … … 548 548 // struct snd_ctl_card_info *pinfo; 549 549 550 dprintf(("GetUniaudCardInfo")); 551 550 552 if(alsa_fops == NULL) { 551 553 ret = OSSERR_NO_DEVICE_AVAILABLE; … … 600 602 mixerhandle *pHandle = NULL; 601 603 int ret, i, j, sz; 604 605 dprintf(("GetUniaudControlNum")); 602 606 603 607 if(alsa_fops == NULL) { … … 665 669 mixerhandle *pHandle = NULL; 666 670 int ret, i, j, sz; 671 672 dprintf(("GetUniaudControls")); 667 673 668 674 if(alsa_fops == NULL) { … … 756 762 int ret, i, j, sz; 757 763 764 dprintf(("GetUniaudControlInfo")); 765 758 766 if(alsa_fops == NULL) { 759 767 ret = OSSERR_NO_DEVICE_AVAILABLE; … … 811 819 { 812 820 struct snd_ctl_elem_value *pElem = NULL; 813 struct snd_ctl_elem_info *pElemInfo = NULL;821 //struct snd_ctl_elem_info *pElemInfo = NULL; 814 822 mixerhandle *pHandle = NULL; 815 823 int ret, i, j, sz; … … 848 856 goto failure; 849 857 } 850 851 // printk("sizeof elem_info %i\n",sizeof(struct snd_ctl_elem_info));852 858 853 859 pElem->id.numid = id; … … 857 863 if(pHandle) kfree(pHandle); 858 864 865 dprintf(("GetUniaudControlValueGet: id=%x 0=%x 1=%x", pElem->id.numid, pElem->value.integer.value[0], pElem->value.integer.value[1])); 866 859 867 return OSSERR_SUCCESS; 860 868 failure: … … 869 877 { 870 878 struct snd_ctl_elem_value *pElem = NULL; 871 struct snd_ctl_elem_info *pElemInfo = NULL;879 //struct snd_ctl_elem_info *pElemInfo = NULL; 872 880 mixerhandle *pHandle = NULL; 873 881 int ret, i, j, sz; … … 907 915 } 908 916 909 // printk("sizeof elem_info %i\n",sizeof(struct snd_ctl_elem_info));910 911 917 pElem->id.numid = id; 912 918 pElem->indirect = 0; 919 913 920 ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_CTL_IOCTL_ELEM_WRITE, (ULONG)pElem); 914 921 ret = pHandle->file.f_op->release(&pHandle->inode, &pHandle->file); … … 930 937 soundhandle *pHandle = (soundhandle *)streamid; 931 938 struct snd_pcm_hw_params *params = NULL; 932 printk("PS UniaudIoctlHWRefine\n");933 939 params = (struct snd_pcm_hw_params *)pHwParams; 940 941 dprintf(("UniaudIoctlHWRefine")); 934 942 935 943 if (!params) return -1001; … … 947 955 soundhandle *pHandle = (soundhandle *)streamid; 948 956 struct snd_pcm_hw_params *params = NULL; 949 printk("PS UniaudIoctlHWParamSet\n");950 957 params = (struct snd_pcm_hw_params *)pHwParams; 958 959 dprintf(("UniaudIoctlHWParamSet")); 951 960 952 961 if (!params) return -1001; … … 963 972 soundhandle *pHandle = (soundhandle *)streamid; 964 973 struct snd_pcm_sw_params *params = NULL; 965 printk("PS UniaudIoctlSWParamSet\n"); 974 966 975 params = (struct snd_pcm_sw_params *)pSwParams; 976 977 dprintf(("UniaudIoctlSWParamSet")); 967 978 968 979 if (!params) return -1001; … … 981 992 struct snd_pcm_status *status = (struct snd_pcm_status *)pstatus; 982 993 994 dprintf(("UniaudIoctlPCMStatus")); 995 983 996 if (!status) return -1001; 984 997 if (!pHandle) return -1002; … … 995 1008 soundhandle *pHandle = (soundhandle *)streamid; 996 1009 1010 dprintf(("UniaudIoctlPCMWrite")); 1011 997 1012 if (!buf) return -1001; 998 1013 if (!pHandle) return -1002; … … 1013 1028 if (!pHandle) return -1002; 1014 1029 1030 dprintf(("UniaudIoctlPCMRead")); 1031 1015 1032 pHandle->file.f_flags = O_NONBLOCK; 1016 1033 … … 1025 1042 soundhandle *pHandle = (soundhandle *)streamid; 1026 1043 1044 dprintf(("UniaudIoctlPCMPrepare")); 1045 1027 1046 if (!pHandle) return -1002; 1028 1047 … … 1038 1057 soundhandle *pHandle = (soundhandle *)streamid; 1039 1058 1059 dprintf(("UniaudIoctlPCMResume: %x", pause)); 1060 1040 1061 if (!pHandle) return -1002; 1041 1062 … … 1052 1073 soundhandle *pHandle = (soundhandle *)streamid; 1053 1074 1075 dprintf(("UniaudIoctlPCMStart")); 1076 1054 1077 if (!pHandle) return -1002; 1055 1078 … … 1065 1088 int ret; 1066 1089 soundhandle *pHandle = (soundhandle *)streamid; 1090 1091 dprintf(("UniaudIoctlPCMDrop")); 1067 1092 1068 1093 if (!pHandle) return -1002;
Note:
See TracChangeset
for help on using the changeset viewer.