- Timestamp:
- Apr 5, 2008, 10:09:19 AM (17 years ago)
- Location:
- GPL/branches/uniaud32-2.0
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/alsa-kernel/core/pcm_memory.c
r305 r339 30 30 31 31 static int preallocate_dma = 1; 32 //module_param(preallocate_dma, int, 0444);32 module_param(preallocate_dma, int, 0444); 33 33 MODULE_PARM_DESC(preallocate_dma, "Preallocate DMA memory when the PCM devices are initialized."); 34 34 35 35 static int maximum_substreams = 4; 36 //module_param(maximum_substreams, int, 0444);36 module_param(maximum_substreams, int, 0444); 37 37 MODULE_PARM_DESC(maximum_substreams, "Maximum substreams with preallocated DMA memory."); 38 38 -
GPL/branches/uniaud32-2.0/alsa-kernel/drivers/dummy.c
r305 r339 158 158 module_param_array(pcm_substreams, int, NULL, 0444); 159 159 MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-16) for dummy driver."); 160 //module_param_array(midi_devs, int, NULL, 0444);161 //MODULE_PARM_DESC(midi_devs, "MIDI devices # (0-2) for dummy driver.");160 module_param_array(midi_devs, int, NULL, 0444); 161 MODULE_PARM_DESC(midi_devs, "MIDI devices # (0-2) for dummy driver."); 162 162 163 163 static struct platform_device *devices[SNDRV_CARDS]; -
GPL/branches/uniaud32-2.0/alsa-kernel/pci/ac97/ac97_codec.c
r305 r339 45 45 static int enable_loopback; 46 46 47 //module_param(enable_loopback, bool, 0444);47 module_param(enable_loopback, bool, 0444); 48 48 MODULE_PARM_DESC(enable_loopback, "Enable AC97 ADC/DAC Loopback Control"); 49 49 -
GPL/branches/uniaud32-2.0/alsa-kernel/pci/hda/hda_codec.c
r305 r339 36 36 /* define this option here to hide as static */ 37 37 static int power_save = CONFIG_SND_HDA_POWER_SAVE_DEFAULT; 38 //module_param(power_save, int, 0644);38 module_param(power_save, int, 0644); 39 39 MODULE_PARM_DESC(power_save, "Automatic power-saving timeout " 40 40 "(in second, 0 = disable)."); -
GPL/branches/uniaud32-2.0/alsa-kernel/pci/hda/hda_intel.c
r331 r339 63 63 static int enable_msi; 64 64 65 //module_param_array(index, int, NULL, 0444);65 module_param_array(index, int, NULL, 0444); 66 66 MODULE_PARM_DESC(index, "Index value for Intel HD audio interface."); 67 //module_param_array(id, charp, NULL, 0444);67 module_param_array(id, charp, NULL, 0444); 68 68 MODULE_PARM_DESC(id, "ID string for Intel HD audio interface."); 69 //module_param_array(enable, bool, NULL, 0444);69 module_param_array(enable, bool, NULL, 0444); 70 70 MODULE_PARM_DESC(enable, "Enable Intel HD audio interface."); 71 //module_param_array(model, charp, NULL, 0444);71 module_param_array(model, charp, NULL, 0444); 72 72 MODULE_PARM_DESC(model, "Use the given board model."); 73 //module_param_array(position_fix, int, NULL, 0444);73 module_param_array(position_fix, int, NULL, 0444); 74 74 MODULE_PARM_DESC(position_fix, "Fix DMA pointer " 75 75 "(0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size)."); 76 //module_param_array(probe_mask, int, NULL, 0444);76 module_param_array(probe_mask, int, NULL, 0444); 77 77 MODULE_PARM_DESC(probe_mask, "Bitmask to probe codecs (default = -1)."); 78 //module_param(single_cmd, bool, 0444);78 module_param(single_cmd, bool, 0444); 79 79 MODULE_PARM_DESC(single_cmd, "Use single command to communicate with codecs " 80 80 "(for debugging only)."); 81 //module_param(enable_msi, int, 0444);81 module_param(enable_msi, int, 0444); 82 82 MODULE_PARM_DESC(enable_msi, "Enable Message Signaled Interrupt (MSI)"); 83 83 … … 90 90 */ 91 91 static int power_save_controller = 1; 92 //module_param(power_save_controller, bool, 0644);92 module_param(power_save_controller, bool, 0644); 93 93 MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode."); 94 94 #endif -
GPL/branches/uniaud32-2.0/lib32/sound.c
r332 r339 809 809 pHandle->doublesamplesize = samplesize * 2; 810 810 pHandle->doublesamplesize *= pHwParams->ulNumChannels; 811 periodbytes = pHwParams->ulPeriodSize; 812 periodsize = bytes_to_samples(periodbytes); 811 // periodbytes = pHwParams->ulPeriodSize; 812 // periodsize = bytes_to_samples(periodbytes); 813 periodsize = pHwParams->ulPeriodSize; 814 periodbytes = samples_to_bytes(periodsize); 813 815 // checking number of channels 814 816 815 printk("channels: %i, period size: %i\n",pHwParams->ulNumChannels, periodbytes);817 printk("channels: %i, period bytes: %i\n",pHwParams->ulNumChannels, periodbytes); 816 818 _snd_pcm_hw_params_any(¶ms); 817 819 ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_PCM_IOCTL_HW_REFINE, (ULONG)__Stack32ToFlat(¶ms)); … … 926 928 periodbytes = maxperiodbytes; 927 929 } 928 929 930 minperiodsize = hw_param_interval((¶ms), SNDRV_PCM_HW_PARAM_PERIOD_SIZE)->min; 930 931 maxperiodsize = hw_param_interval((¶ms), SNDRV_PCM_HW_PARAM_PERIOD_SIZE)->max; … … 936 937 periodsize = maxperiodsize; 937 938 } 938 939 939 if(samples_to_bytes(periodsize) < periodbytes) { 940 940 periodbytes = samples_to_bytes(periodsize); … … 944 944 periodsize = bytes_to_samples(periodbytes); 945 945 } 946 947 946 //make sure period size is a whole fraction of the buffer size 948 947 bufsize = hw_param_interval((¶ms), SNDRV_PCM_HW_PARAM_BUFFER_BYTES)->max; … … 992 991 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_RATE, 993 992 pHwParams->ulSampleRate, 0); 994 #if 0995 993 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 996 994 periodsize, 0); … … 1003 1001 _snd_pcm_hw_param_set(¶ms, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 1004 1002 periodbytes*nrperiods, 0); 1005 #endif 1003 1006 1004 //#ifdef DEBUG_PK 1007 1005 printk("Hardware parameters: sample rate %i, data type %i, channels %i, period size %i, periods %i\n", … … 1009 1007 //#endif 1010 1008 ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_PCM_IOCTL_HW_PARAMS, (ULONG)__Stack32ToFlat(¶ms)); 1011 if (ret == -77 && fTryAgain == FALSE) 1009 printk("OSS32_WaveSetHwParams return %d after SNDRV_PCM_IOCTL_HW_PARAMS ioctl", ret); 1010 if (ret == -77 && fTryAgain == FALSE) 1012 1011 { 1013 1012 ret = pHandle->file.f_op->ioctl(&pHandle->inode, &pHandle->file, SNDRV_PCM_IOCTL_PREPARE, 0);
Note:
See TracChangeset
for help on using the changeset viewer.