Changeset 542
- Timestamp:
- Sep 22, 2010, 8:52:19 PM (15 years ago)
- Location:
- GPL/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/core/pcm_lib.c
r479 r542 302 302 if (!xrun_debug(substream, 4)) 303 303 goto no_jiffies_check; 304 #endif305 304 /* Skip the jiffies check for hardwares with BATCH flag. 306 305 * Such hardware usually just increases the position at each IRQ, … … 336 335 } 337 336 no_jiffies_check: 337 #endif 338 338 if (delta > runtime->period_size + runtime->period_size / 2) { 339 339 hw_ptr_error(substream, … … 418 418 if (!xrun_debug(substream, 4)) 419 419 goto no_jiffies_check; 420 #endif421 420 if (delta < runtime->delay) 422 421 goto no_jiffies_check; … … 432 431 } 433 432 no_jiffies_check: 433 #endif 434 434 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && 435 435 runtime->silence_size > 0) -
GPL/trunk/alsa-kernel/include/sound/asound.h
r464 r542 374 374 struct snd_pcm_hw_params { 375 375 unsigned int flags; 376 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - 376 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - 377 377 SNDRV_PCM_HW_PARAM_FIRST_MASK + 1]; 378 378 struct snd_mask mres[5]; /* reserved masks */ … … 772 772 #define SNDRV_CTL_ELEM_ACCESS_LOCK (1<<9) /* write lock */ 773 773 #define SNDRV_CTL_ELEM_ACCESS_OWNER (1<<10) /* write lock owner */ 774 #define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK (1<<28) /* kernel use a TLV callback */ 774 #define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK (1<<28) /* kernel use a TLV callback */ 775 775 #define SNDRV_CTL_ELEM_ACCESS_USER (1<<29) /* user space element */ 776 776 /* bits 30 and 31 are obsoleted (for indirect access) */ … … 789 789 unsigned int device; /* device/client number */ 790 790 unsigned int subdevice; /* subdevice (substream) number */ 791 791 unsigned char name[44]; /* ASCII name of item */ 792 792 unsigned int index; /* index of item */ 793 793 }; … … 836 836 struct snd_ctl_elem_id id; /* W: element ID */ 837 837 unsigned int indirect: 1; /* W: indirect access - obsoleted */ 838 838 union { 839 839 union { 840 840 long value[128]; … … 854 854 } bytes; 855 855 struct snd_aes_iec958 iec958; 856 856 } value; /* RO */ 857 857 struct timespec tstamp; 858 858 unsigned char reserved[128-sizeof(struct timespec)]; 859 859 }; 860 860 -
GPL/trunk/drv32/dispatch.c
r485 r542 27 27 #include <os2.h> 28 28 29 #include <dbgos2.h> 29 30 #include <devhelp.h> 30 31 #include <devtype.h> … … 375 376 { 376 377 377 if (rp->DataLength < sizeof(ULONG)) 378 { 379 // invalid Data Pkt 380 rc = RPERR_PARAMETER | RPDONE; 381 break; 382 } 383 384 if (rp->ParmLength < sizeof(ULONG)) 385 { 386 // invalid Data Pkt 387 rc = RPERR_PARAMETER | RPDONE; 388 break; 389 } 390 391 pData = (ULONG *) linData; 378 if (rp->DataLength < sizeof(ULONG)) { 379 // invalid Data Pkt 380 rc = RPERR_PARAMETER | RPDONE; 381 break; 382 } 383 384 if (rp->ParmLength < sizeof(ULONG)) { 385 // invalid Data Pkt 386 rc = RPERR_PARAMETER | RPDONE; 387 break; 388 } 389 390 pData = (ULONG *)linData; 392 391 ULONG id = *((ULONG *)linParm); 393 392 card_id = (id >> 16) & 0x0000FFFF; -
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; -
GPL/trunk/uniaud.inc
r535 r542 13 13 # ex RC3 GA FIXPACK2 beta_47 14 14 # Comment out to avoid a fixpack line in bldlevel 15 FIXPACK = SVNr5 3515 FIXPACK = SVNr542 16 16 17 17 # ALSA BUILD VERSION
Note:
See TracChangeset
for help on using the changeset viewer.