Changeset 260 for GPL/branches
- Timestamp:
- Oct 15, 2007, 1:51:34 AM (18 years ago)
- Location:
- GPL/branches/alsa-resync1/alsa-kernel
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/alsa-resync1/alsa-kernel/core/info.c
r250 r260 294 294 !entry->c.text.read_size) || 295 295 (entry->content == SNDRV_INFO_CONTENT_DATA && 296 entry->c.ops->read == NULL) || 297 entry->content == SNDRV_INFO_CONTENT_DEVICE) { 296 entry->c.ops->read == NULL)) { 298 297 err = -ENODEV; 299 298 goto __error; … … 304 303 !entry->c.text.write_size) || 305 304 (entry->content == SNDRV_INFO_CONTENT_DATA && 306 entry->c.ops->write == NULL) || 307 entry->content == SNDRV_INFO_CONTENT_DEVICE) { 305 entry->c.ops->write == NULL)) { 308 306 err = -ENODEV; 309 307 goto __error; -
GPL/branches/alsa-resync1/alsa-kernel/core/pcm_lib.c
r250 r260 70 70 if (frames > runtime->silence_size) 71 71 frames = runtime->silence_size; 72 else73 frames = runtime->silence_threshold;74 72 } else { 75 73 if (new_hw_ptr == ULONG_MAX) { /* initialization */ -
GPL/branches/alsa-resync1/alsa-kernel/core/pcm_memory.c
r227 r260 23 23 #include <asm/io.h> 24 24 #include <linux/time.h> 25 #include <linux/init.h> 25 26 #include <sound/core.h> 26 27 #include <sound/pcm.h> -
GPL/branches/alsa-resync1/alsa-kernel/core/rtctimer.c
r224 r260 58 58 }; 59 59 60 int rtctimer_freq = RTC_FREQ; /* frequency */60 static int rtctimer_freq = RTC_FREQ; /* frequency */ 61 61 static snd_timer_t *rtctimer; 62 62 static atomic_t rtc_inc = ATOMIC_INIT(0); … … 183 183 MODULE_LICENSE("GPL"); 184 184 185 #ifndef MODULE 186 /* format is: snd-rtctimer=freq */ 187 188 static int __init rtctimer_setup(char *str) 189 { 190 (void)(get_option(&str,&rtctimer_freq) == 2); 191 return 1; 192 } 193 194 __setup("snd-rtctimer=", rtctimer_setup); 195 #endif /* ifndef MODULE */ 196 185 197 #endif /* CONFIG_RTC || CONFIG_RTC_MODULE */ -
GPL/branches/alsa-resync1/alsa-kernel/drivers/dummy.c
r250 r260 293 293 /* info: */ (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | 294 294 SNDRV_PCM_INFO_MMAP_VALID), 295 /* formats: */USE_FORMATS,296 /* rates: */USE_RATE,297 /* rate_min: */USE_RATE_MIN,298 /* rate_max: */USE_RATE_MAX,299 /* channels_min: */USE_CHANNELS_MIN,300 /* channels_max: */USE_CHANNELS_MAX,301 /* buffer_bytes_max: */MAX_BUFFER_SIZE,302 /* period_bytes_min: */64,303 /* period_bytes_max: */MAX_BUFFER_SIZE,304 /* periods_min: */USE_PERIODS_MIN,305 /* periods_max: */USE_PERIODS_MAX,306 /* fifo_size: */0,295 .formats = USE_FORMATS, 296 .rates = USE_RATE, 297 .rate_min = USE_RATE_MIN, 298 .rate_max = USE_RATE_MAX, 299 .channels_min = USE_CHANNELS_MIN, 300 .channels_max = USE_CHANNELS_MAX, 301 .buffer_bytes_max = MAX_BUFFER_SIZE, 302 .period_bytes_min = 64, 303 .period_bytes_max = MAX_BUFFER_SIZE, 304 .periods_min = USE_PERIODS_MIN, 305 .periods_max = USE_PERIODS_MAX, 306 .fifo_size = 0, 307 307 }; 308 308 … … 311 311 /* info: */ (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | 312 312 SNDRV_PCM_INFO_MMAP_VALID), 313 /* formats: */USE_FORMATS,314 /* rates: */USE_RATE,315 /* rate_min: */USE_RATE_MIN,316 /* rate_max: */USE_RATE_MAX,317 /* channels_min: */USE_CHANNELS_MIN,318 /* channels_max: */USE_CHANNELS_MAX,319 /* buffer_bytes_max: */MAX_BUFFER_SIZE,320 /* period_bytes_min: */64,321 /* period_bytes_max: */MAX_BUFFER_SIZE,322 /* periods_min: */USE_PERIODS_MIN,323 /* periods_max: */USE_PERIODS_MAX,324 /* fifo_size: */0,313 .formats = USE_FORMATS, 314 .rates = USE_RATE, 315 .rate_min = USE_RATE_MIN, 316 .rate_max = USE_RATE_MAX, 317 .channels_min = USE_CHANNELS_MIN, 318 .channels_max = USE_CHANNELS_MAX, 319 .buffer_bytes_max = MAX_BUFFER_SIZE, 320 .period_bytes_min = 64, 321 .period_bytes_max = MAX_BUFFER_SIZE, 322 .periods_min = USE_PERIODS_MIN, 323 .periods_max = USE_PERIODS_MAX, 324 .fifo_size = 0, 325 325 }; 326 326 -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/core.h
r250 r260 221 221 222 222 extern int snd_ecards_limit; 223 extern int device_mode;224 extern int device_gid;225 extern int device_uid;226 223 227 224 void snd_request_card(int card); -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/pcm_oss.h
r222 r260 31 31 direct:1, 32 32 block:1, 33 nonblock:1; 33 nonblock:1, 34 wholefrag:1, 35 nosilence:1; 34 36 unsigned int periods; 35 37 unsigned int period_size; -
GPL/branches/alsa-resync1/alsa-kernel/include/sound/version.h
r256 r260 1 1 /* include/version.h. Generated by configure. */ 2 #define CONFIG_SND_VERSION "0.9. 5"2 #define CONFIG_SND_VERSION "0.9.6" 3 3 #define CONFIG_SND_DATE "" -
GPL/branches/alsa-resync1/alsa-kernel/isa/ad1848/ad1848_lib.c
r250 r260 25 25 #include <linux/init.h> 26 26 #include <linux/interrupt.h> 27 #include <linux/pm.h> 27 28 #include <linux/slab.h> 28 29 #include <linux/ioport.h> -
GPL/branches/alsa-resync1/alsa-kernel/isa/cmi8330.c
r246 r260 298 298 { 299 299 struct pnp_dev *pdev; 300 struct pnp_resource_table * cfg = kmalloc( GFP_ATOMIC, sizeof(struct pnp_resource_table));300 struct pnp_resource_table * cfg = kmalloc(sizeof(struct pnp_resource_table), GFP_KERNEL); 301 301 int err; 302 302 -
GPL/branches/alsa-resync1/alsa-kernel/isa/es18xx.c
r246 r260 1974 1974 { 1975 1975 struct pnp_dev *pdev; 1976 struct pnp_resource_table * cfg = kmalloc( GFP_ATOMIC, sizeof(struct pnp_resource_table));1976 struct pnp_resource_table * cfg = kmalloc(sizeof(struct pnp_resource_table), GFP_KERNEL); 1977 1977 int err; 1978 1978 -
GPL/branches/alsa-resync1/alsa-kernel/isa/sb/sb16.c
r250 r260 369 369 #endif /* CONFIG_PNP */ 370 370 371 static void snd_sb16_free(snd_card_t *card) 372 { 373 struct snd_card_sb16 *acard = (struct snd_card_sb16 *)card->private_data; 374 375 if (acard == NULL) 376 return; 377 if (acard->fm_res) { 378 release_resource(acard->fm_res); 379 kfree_nocheck(acard->fm_res); 380 } 381 } 382 371 383 static int __init snd_sb16_probe(int dev, 372 384 struct pnp_card_link *pcard, … … 393 405 return -ENOMEM; 394 406 acard = (struct snd_card_sb16 *) card->private_data; 407 card->private_free = snd_sb16_free; 395 408 #ifdef CONFIG_PNP 396 409 if (isapnp[dev]) { … … 483 496 if (fm_port[dev] > 0) { 484 497 if (snd_opl3_create(card, fm_port[dev], fm_port[dev] + 2, 485 OPL3_HW_OPL3, fm_port[dev] == port[dev], 498 OPL3_HW_OPL3, 499 fm_port[dev] == port[dev] || fm_port[dev] == 0x388, 486 500 &opl3) < 0) { 487 501 snd_printk(KERN_ERR PFX "no OPL device at 0x%lx-0x%lx\n", -
GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/ak4xxx.c
r250 r260 123 123 * initialize the akm4xxx_t record with the template 124 124 */ 125 int __devinitsnd_ice1712_akm4xxx_init(akm4xxx_t *ak, const akm4xxx_t *temp,126 125 int snd_ice1712_akm4xxx_init(akm4xxx_t *ak, const akm4xxx_t *temp, 126 const struct snd_ak4xxx_private *_priv, ice1712_t *ice) 127 127 { 128 128 struct snd_ak4xxx_private *priv; … … 146 146 } 147 147 148 void __devexitsnd_ice1712_akm4xxx_free(ice1712_t *ice)148 void snd_ice1712_akm4xxx_free(ice1712_t *ice) 149 149 { 150 150 unsigned int akidx; … … 162 162 * build AK4xxx controls 163 163 */ 164 int __devinitsnd_ice1712_akm4xxx_build_controls(ice1712_t *ice)164 int snd_ice1712_akm4xxx_build_controls(ice1712_t *ice) 165 165 { 166 166 unsigned int akidx; -
GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/ice1712.h
r250 r260 87 87 */ 88 88 89 #define ICE1712_IREG_PBK_COUNT_ HI0x0090 #define ICE1712_IREG_PBK_COUNT_ LO0x0189 #define ICE1712_IREG_PBK_COUNT_LO 0x00 90 #define ICE1712_IREG_PBK_COUNT_HI 0x01 91 91 #define ICE1712_IREG_PBK_CTRL 0x02 92 92 #define ICE1712_IREG_PBK_LEFT 0x03 /* left volume */ … … 96 96 #define ICE1712_IREG_PBK_RATE_MID 0x07 97 97 #define ICE1712_IREG_PBK_RATE_HI 0x08 98 #define ICE1712_IREG_CAP_COUNT_ HI0x1099 #define ICE1712_IREG_CAP_COUNT_ LO0x1198 #define ICE1712_IREG_CAP_COUNT_LO 0x10 99 #define ICE1712_IREG_CAP_COUNT_HI 0x11 100 100 #define ICE1712_IREG_CAP_CTRL 0x12 101 101 #define ICE1712_IREG_GPIO_DATA 0x20 -
GPL/branches/alsa-resync1/alsa-kernel/pci/ice1712/ice1724.c
r250 r260 1584 1584 1585 1585 if ((inb(ICEREG1724(ice, I2C_CTRL)) & VT1724_I2C_EEPROM) == 0) { 1586 snd_printk( "ICE1724 has not detected EEPROM\n");1587 return -EIO;1586 snd_printk(KERN_WARNING "ICE1724 has not detected EEPROM\n"); 1587 // return -EIO; 1588 1588 } 1589 1589 ice->eeprom.subvendor = (snd_vt1724_read_i2c(ice, dev, 0x00) << 0) | -
GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c
r256 r260 1162 1162 static unsigned int i, rates[] = { 1163 1163 /* ATTENTION: these values depend on the definition in pcm.h! */ 1164 5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000 01164 5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000 1165 1165 }; 1166 1166 int err; -
GPL/branches/alsa-resync1/alsa-kernel/pci/korg1212/korg1212.c
r250 r260 2071 2071 snd_iprintf(buffer, " (index #%d)\n", korg1212->card->number + 1); 2072 2072 snd_iprintf(buffer, "\nGeneral settings\n"); 2073 snd_iprintf(buffer, " period size: % d bytes\n", K1212_PERIOD_BYTES);2073 snd_iprintf(buffer, " period size: %Zd bytes\n", K1212_PERIOD_BYTES); 2074 2074 snd_iprintf(buffer, " clock mode: %s\n", clockSourceName[korg1212->clkSrcRate] ); 2075 2075 snd_iprintf(buffer, " left ADC Sens: %d\n", korg1212->leftADCInSens ); … … 2337 2337 2338 2338 if (korg1212->sharedBufferPtr == NULL) { 2339 snd_printk(KERN_ERR "can not allocate shared buffer memory (% d bytes)\n", sizeof(KorgSharedBuffer));2339 snd_printk(KERN_ERR "can not allocate shared buffer memory (%Zd bytes)\n", sizeof(KorgSharedBuffer)); 2340 2340 return -ENOMEM; 2341 2341 } … … 2386 2386 korg1212->dspCodeSize = sizeof (dspCode); 2387 2387 2388 korg1212->VolumeTablePhy = (u32) &((KorgSharedBuffer *) korg1212->sharedBufferPhy)->volumeData; 2389 korg1212->RoutingTablePhy = (u32) &((KorgSharedBuffer *) korg1212->sharedBufferPhy)->routeData; 2390 korg1212->AdatTimeCodePhy = (u32) &((KorgSharedBuffer *) korg1212->sharedBufferPhy)->AdatTimeCode; 2388 korg1212->VolumeTablePhy = korg1212->sharedBufferPhy + 2389 offsetof(KorgSharedBuffer, volumeData); 2390 korg1212->RoutingTablePhy = korg1212->sharedBufferPhy + 2391 offsetof(KorgSharedBuffer, routeData); 2392 korg1212->AdatTimeCodePhy = korg1212->sharedBufferPhy + 2393 offsetof(KorgSharedBuffer, AdatTimeCode); 2391 2394 2392 2395 korg1212->dspMemPtr = snd_malloc_pci_pages(korg1212->pci, korg1212->dspCodeSize, &phys_addr); -
GPL/branches/alsa-resync1/alsa-kernel/pci/rme9652/hdsp.c
r256 r260 78 78 #define MULTIFACE_SS_CHANNELS 18 79 79 #define MULTIFACE_DS_CHANNELS 14 80 #define H9652_ DS_CHANNELS 2681 #define H9652_ SS_CHANNELS 1480 #define H9652_SS_CHANNELS 26 81 #define H9652_DS_CHANNELS 14 82 82 83 83 /* Write registers. These are defined as byte-offsets from the iobase value. … … 645 645 static inline int hdsp_check_for_firmware (hdsp_t *hdsp) 646 646 { 647 if (hdsp->io_type == H9652) return 0; 647 648 if ((hdsp_read (hdsp, HDSP_statusRegister) & HDSP_DllError) != 0) { 648 649 snd_printk("firmware not present.\n"); … … 3802 3803 switch (cmd) { 3803 3804 case SNDRV_HDSP_IOCTL_GET_PEAK_RMS: 3805 if (hdsp->io_type == H9652) { 3806 snd_printk("hardware metering isn't supported yet for hdsp9652 cards\n"); 3807 return -EINVAL; 3808 } 3804 3809 if (!(hdsp->state & HDSP_FirmwareLoaded)) { 3805 3810 snd_printk("firmware needs to be uploaded to the card.\n");
Note:
See TracChangeset
for help on using the changeset viewer.