Changeset 594
- Timestamp:
- Apr 3, 2017, 3:18:42 PM (8 years ago)
- Location:
- GPL/branches/uniaud32-2.1.x
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/info.c
r569 r594 81 81 static void snd_info_disconnect(struct snd_info_entry *entry); 82 82 83 83 #ifdef NOT_USED 84 84 /* resize the proc r/w buffer */ 85 85 static int resize_info_buffer(struct snd_info_buffer *buffer, … … 106 106 return 0; 107 107 } 108 #endif 108 109 109 110 #ifndef TARGET_OS2 … … 171 172 } 172 173 174 #ifdef NOT_USED 173 175 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) 174 176 { … … 557 559 .release = snd_info_entry_release, 558 560 }; 561 #endif 559 562 560 563 int __init snd_info_init(void) -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/init.c
r573 r594 657 657 #endif 658 658 659 #ifdef NOT_USED 659 660 static struct device_attribute card_id_attrs = 660 661 __ATTR(id, S_IRUGO | S_IWUSR, card_id_show_attr, card_id_store_attr); 661 662 662 #ifdef NOT_USED663 663 static ssize_t 664 664 card_number_show_attr(struct device *dev, … … 668 668 return snprintf(buf, PAGE_SIZE, "%i\n", card ? card->number : -1); 669 669 } 670 #endif671 670 672 671 static struct device_attribute card_number_attrs = 673 672 __ATTR(number, S_IRUGO, card_number_show_attr, NULL); 673 #endif 674 674 675 675 /** -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/pcm.c
r569 r594 231 231 #define ACCESS(v) [SNDRV_PCM_ACCESS_##v] = #v 232 232 #define START(v) [SNDRV_PCM_START_##v] = #v 233 #define SUBFORMAT(v) [SNDRV_PCM_SUBFORMAT_##v] = #v 233 #define SUBFORMAT(v) [SNDRV_PCM_SUBFORMAT_##v] = #v 234 234 235 235 static char *snd_pcm_stream_names[] = { … … 1184 1184 int pcm_instances(int card_id) 1185 1185 { 1186 int idx;1186 //int idx; 1187 1187 int pcms = 0; 1188 1188 struct snd_pcm *pcm; -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/pcm_lib.c
r592 r594 46 46 snd_pcm_uframes_t frames, ofs, transfer; 47 47 48 /* DAZ: This is a hack to prevent extra noise after every sound. 49 * runtime->boundary is always *much* bigger than runtime->silence_size 50 * so the ring buffer never gets filled with silence. This hack forces 51 * the ring buffer to always get filled with silence. 52 * I am guessing that the OS2 code is not providing a big enough buffer 53 * of silence. 54 */ 55 #ifndef TARGET_OS2 48 56 if (runtime->silence_size < runtime->boundary) { 49 57 snd_pcm_sframes_t noise_dist, n; … … 67 75 frames = runtime->silence_size; 68 76 } else { 77 #endif 69 78 if (new_hw_ptr == ULONG_MAX) { /* initialization */ 70 79 snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime); … … 89 98 } 90 99 frames = runtime->buffer_size - runtime->silence_filled; 91 } 100 #ifndef TARGET_OS2 101 } 102 #endif 92 103 if (snd_BUG_ON(frames > runtime->buffer_size)) 93 104 return; -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/pcm_native.c
r569 r594 892 892 snd_pcm_trigger_tstamp(substream); 893 893 runtime->hw_ptr_jiffies = jiffies; 894 runtime->hw_ptr_buffer_jiffies = (runtime->buffer_size * HZ) / 894 runtime->hw_ptr_buffer_jiffies = (runtime->buffer_size * HZ) / 895 895 runtime->rate; 896 896 runtime->status->state = state; -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/sgbuf.c
r519 r594 109 109 { 110 110 struct snd_sg_buf *sgbuf; 111 unsigned int i, pages, chunk, maxpages; 112 struct snd_dma_buffer tmpb; 111 unsigned int pages; 112 // unsigned int i, chunk, maxpages; 113 // struct snd_dma_buffer tmpb; 113 114 #ifdef TARGET_OS2 114 115 void *ptr; -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/sound_oss.c
r499 r594 114 114 int cidx = SNDRV_MINOR_OSS_CARD(minor); 115 115 int track2 = -1; 116 int register1 = -1, register2 = -1;117 struct device *carddev = snd_card_get_device_link(card);116 // int register1 = -1, register2 = -1; 117 // struct device *carddev = snd_card_get_device_link(card); 118 118 119 119 if (card && card->number >= 8) -
GPL/branches/uniaud32-2.1.x/alsa-kernel/core/timer.c
r573 r594 44 44 #endif 45 45 46 static int timer_limit = DEFAULT_TIMER_LIMIT;46 //static int timer_limit = DEFAULT_TIMER_LIMIT; 47 47 static int timer_tstamp_monotonic = 1; 48 48 MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>"); -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/ac97/ac97_codec.c
r569 r594 603 603 } 604 604 605 #ifdef NOT_USED 605 606 static const struct snd_kcontrol_new snd_ac97_controls_master_mono[2] = { 606 607 AC97_SINGLE("Master Mono Playback Switch", AC97_MASTER_MONO, 15, 1, 1), 607 608 AC97_SINGLE("Master Mono Playback Volume", AC97_MASTER_MONO, 0, 31, 1) 608 609 }; 610 #endif 609 611 610 612 static const struct snd_kcontrol_new snd_ac97_controls_tone[2] = { -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/ali5451/ali5451.c
r499 r594 61 61 62 62 /* just for backward compatibility */ 63 static int enable;63 //static int enable; 64 64 module_param(enable, bool, 0444); 65 65 … … 302 302 unsigned int port) 303 303 { 304 return (unsigned int)inl(ALI_REG(codec, port)); 304 return (unsigned int)inl(ALI_REG(codec, port)); 305 305 } 306 306 … … 815 815 bVal = inb(ALI_REG(codec, ALI_SPDIF_CTRL)); 816 816 outb(bVal & ALI_SPDIF_OUT_CH_STATUS, ALI_REG(codec, ALI_SPDIF_CTRL)); 817 817 818 818 wVal = inw(ALI_REG(codec, ALI_GLOBAL_CONTROL)); 819 819 wVal |= ALI_SPDIF_OUT_SEL_PCM; … … 1076 1076 else if (rate == 48000) 1077 1077 delta = 0x1000; 1078 else 1078 else 1079 1079 delta = (((rate << 12) + rate) / 48000) & 0x0000ffff; 1080 1080 } … … 1107 1107 static int snd_ali_trigger(struct snd_pcm_substream *substream, 1108 1108 int cmd) 1109 1109 1110 1110 { 1111 1111 struct snd_ali *codec = snd_pcm_substream_chip(substream); … … 1259 1259 Delta = snd_ali_convert_rate(runtime->rate, 0); 1260 1260 1261 if (pvoice->number == ALI_SPDIF_IN_CHANNEL || 1261 if (pvoice->number == ALI_SPDIF_IN_CHANNEL || 1262 1262 pvoice->number == ALI_PCM_IN_CHANNEL) 1263 1263 snd_ali_disable_special_channel(codec, pvoice->number); … … 1277 1277 1278 1278 /* set target ESO for channel */ 1279 pvoice->eso = runtime->buffer_size; 1279 pvoice->eso = runtime->buffer_size; 1280 1280 1281 1281 snd_ali_printk("playback_prepare: eso=%xh count=%xh\n", … … 1350 1350 1351 1351 Delta = (pvoice->number == ALI_MODEM_IN_CHANNEL || 1352 pvoice->number == ALI_MODEM_OUT_CHANNEL) ? 1352 pvoice->number == ALI_MODEM_OUT_CHANNEL) ? 1353 1353 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode); 1354 1354 … … 1380 1380 1381 1381 /* set target ESO for channel */ 1382 pvoice->eso = runtime->buffer_size; 1382 pvoice->eso = runtime->buffer_size; 1383 1383 1384 1384 /* set interrupt count size */ … … 1809 1809 } 1810 1810 break; 1811 case 1: 1811 case 1: 1812 1812 change = (codec->spdif_mask & 0x04) ? 1 : 0; 1813 1813 change = change ^ spdif_enable; … … 1929 1929 for (i = 0; i < ALI_CHANNELS; i++) { 1930 1930 outb(i, ALI_REG(chip, ALI_GC_CIR)); 1931 for (j = 0; j < ALI_CHANNEL_REGS; j++) 1931 for (j = 0; j < ALI_CHANNEL_REGS; j++) 1932 1932 im->channel_regs[i][j] = inl(ALI_REG(chip, j*4 + 0xe0)); 1933 1933 } … … 1969 1969 for (i = 0; i < ALI_CHANNELS; i++) { 1970 1970 outb(i, ALI_REG(chip, ALI_GC_CIR)); 1971 for (j = 0; j < ALI_CHANNEL_REGS; j++) 1971 for (j = 0; j < ALI_CHANNEL_REGS; j++) 1972 1972 outl(im->channel_regs[i][j], ALI_REG(chip, j*4 + 0xe0)); 1973 1973 } … … 2318 2318 .resume = ali_resume, 2319 2319 #endif 2320 }; 2320 }; 2321 2321 2322 2322 static int __init alsa_card_ali_init(void) -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/atiixp.c
r519 r594 61 61 62 62 /* just for backward compatibility */ 63 static int enable;63 //static int enable; 64 64 module_param(enable, bool, 0444); 65 65 -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/hda_codec.c
r569 r594 639 639 struct hda_codec_preset_list *tbl; 640 640 const struct hda_codec_preset *preset; 641 int mod_requested = 0;641 //int mod_requested = 0; 642 642 643 643 if (is_generic_config(codec)) -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/hda_proc.c
r569 r594 493 493 #endif 494 494 495 int sup = snd_hda_param_read(codec, nid, AC_PAR_POWER_STATE);495 //int sup = snd_hda_param_read(codec, nid, AC_PAR_POWER_STATE); 496 496 int pwr = snd_hda_codec_read(codec, nid, 0, 497 497 AC_VERB_GET_POWER_STATE, 0); -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/hda/patch_sigmatel.c
r569 r594 4850 4850 { 4851 4851 struct sigmatel_spec *spec = codec->spec; 4852 const struct dmi_device *dev = NULL;4852 //const struct dmi_device *dev = NULL; 4853 4853 4854 4854 if ((codec->subsystem_id >> 16) == PCI_VENDOR_ID_HP) { -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/intel8x0.c
r569 r594 97 97 98 98 /* just for backward compatibility */ 99 static int enable;99 //static int enable; 100 100 module_param(enable, bool, 0444); 101 static int joystick;101 //static int joystick; 102 102 module_param(joystick, int, 0444); 103 103 … … 3164 3164 }; 3165 3165 3166 #ifdef NOT_USED 3166 3167 static struct snd_pci_quirk spdif_aclink_defaults[] __devinitdata = { 3167 3168 SND_PCI_QUIRK(0x147b, 0x1c1a, "ASUS KN8", 1), 3168 3169 {0} /* end */ 3169 3170 }; 3171 #endif 3170 3172 3171 3173 /* look up white/black list for SPDIF over ac-link */ -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/nm256/nm256.c
r499 r594 1 /* 1 /* 2 2 * Driver for NeoMagic 256AV and 256ZX chipsets. 3 3 * Copyright (c) 2000 by Takashi Iwai <tiwai@suse.de> … … 24 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 */ 26 26 27 27 #include <asm/io.h> 28 28 #include <linux/delay.h> … … 87 87 88 88 /* just for backward compatibility */ 89 static int enable;89 //static int enable; 90 90 module_param(enable, bool, 0444); 91 91 … … 401 401 }; 402 402 static struct snd_pcm_hw_constraint_list constraints_rates = { 403 .count = ARRAY_SIZE(samplerates), 403 .count = ARRAY_SIZE(samplerates), 404 404 .list = samplerates, 405 405 .mask = 0, … … 957 957 958 958 959 /* 960 * Initialize the hardware. 959 /* 960 * Initialize the hardware. 961 961 */ 962 962 static void … … 998 998 } 999 999 1000 /* 1001 * Handle a potential interrupt for the device referred to by DEV_ID. 1000 /* 1001 * Handle a potential interrupt for the device referred to by DEV_ID. 1002 1002 * 1003 1003 * I don't like the cut-n-paste job here either between the two routines, … … 1148 1148 testb = chip->mixer_status_mask; 1149 1149 1150 /* 1151 * Loop around waiting for the mixer to become ready. 1150 /* 1151 * Loop around waiting for the mixer to become ready. 1152 1152 */ 1153 1153 while (timeout-- > 0) { … … 1159 1159 } 1160 1160 1161 /* 1161 /* 1162 1162 * Initial register values to be written to the AC97 mixer. 1163 1163 * While most of these are identical to the reset values, we do this … … 1188 1188 { AC97_REC_GAIN, 0x0B0B }, 1189 1189 { AC97_GENERAL_PURPOSE, 0x0000 }, 1190 { AC97_3D_CONTROL, 0x8000 }, 1190 { AC97_3D_CONTROL, 0x8000 }, 1191 1191 { AC97_VENDOR_ID1, 0x8384 }, 1192 1192 { AC97_VENDOR_ID2, 0x7609 }, … … 1218 1218 } 1219 1219 1220 /* 1220 /* 1221 1221 */ 1222 1222 static void … … 1331 1331 } 1332 1332 1333 /* 1333 /* 1334 1334 * See if the signature left by the NM256 BIOS is intact; if so, we use 1335 1335 * the associated address as the end of our audio buffer in the video … … 1499 1499 chip->streams[SNDRV_PCM_STREAM_CAPTURE].bufsize = capture_bufsize * 1024; 1500 1500 1501 /* 1501 /* 1502 1502 * The NM256 has two memory ports. The first port is nothing 1503 1503 * more than a chunk of video RAM, which is used as the I/O ring -
GPL/branches/uniaud32-2.1.x/alsa-kernel/pci/via82xx.c
r569 r594 44 44 * 45 45 * Sep. 26, 2005 Karsten Wiese <annabellesgarden@yahoo.de> 46 * - Optimize position calculation for the 823x chips. 46 * - Optimize position calculation for the 823x chips. 47 47 */ 48 48 … … 111 111 112 112 /* just for backward compatibility */ 113 static int enable;113 //static int enable; 114 114 module_param(enable, bool, 0444); 115 115 … … 513 513 return inl(VIAREG(chip, AC97)); 514 514 } 515 515 516 516 static inline void snd_via82xx_codec_xwrite(struct via82xx *chip, unsigned int val) 517 517 { 518 518 outl(val, VIAREG(chip, AC97)); 519 519 } 520 520 521 521 static int snd_via82xx_codec_ready(struct via82xx *chip, int secondary) 522 522 { … … 533 533 return -EIO; 534 534 } 535 535 536 536 static int snd_via82xx_codec_valid(struct via82xx *chip, int secondary) 537 537 { … … 550 550 return -EIO; 551 551 } 552 552 553 553 static void snd_via82xx_codec_wait(struct snd_ac97 *ac97) 554 554 { … … 648 648 /* 649 649 * Update hwptr_done based on 'period elapsed' 650 * interrupts. We'll use it, when the chip returns 0 650 * interrupts. We'll use it, when the chip returns 0 651 651 * for OFFSET_CURR_COUNT. 652 652 */ … … 697 697 /* 698 698 * Update hwptr_done based on 'period elapsed' 699 * interrupts. We'll use it, when the chip returns 0 699 * interrupts. We'll use it, when the chip returns 0 700 700 * for OFFSET_CURR_COUNT. 701 701 */ … … 877 877 status = inb(VIADEV_REG(viadev, OFFSET_STATUS)); 878 878 879 /* An apparent bug in the 8251 is worked around by sending a 879 /* An apparent bug in the 8251 is worked around by sending a 880 880 * REG_CTRL_START. */ 881 881 if (chip->revision == VIA_REV_8251 && (status & VIA_REG_STAT_EOL)) … … 908 908 } 909 909 } 910 } 910 } 911 911 unlock: 912 912 viadev->lastpos = res; -
GPL/branches/uniaud32-2.1.x/drv32/dispatch.c
r588 r594 105 105 //printk("StratIOCtl 0x%x\n", rp->Function); 106 106 #endif 107 // printk("cmd: %x, len: %i, pack: %x\n",rp-> Function, rp->ioctl.usParmLen, rp->ParmPacket);107 // printk("cmd: %x, len: %i, pack: %x\n",rp->ioctl.bFunction, rp->ioctl.usParmLen, rp->ioctl.pvParm); 108 108 // work with Parm Packet 109 109 if ((rp->ioctl.usParmLen != 0 || … … 183 183 case IOCTL_OSS32_ATTACH: 184 184 { 185 dprintf(("OSS32_ATTACH\n")); 185 186 card_id = (ULONG) *linParm; 186 187 // Check if audio init was successful … … 193 194 case IOCTL_OSS32_VERSION: 194 195 { 196 dprintf(("OSS32_VERSION\n")); 195 197 if (rp->ioctl.usDataLen < sizeof(ULONG)) 196 198 { … … 206 208 case IOCTL_OSS32_GET_PCM_NUM: 207 209 { 210 dprintf(("GET_PCM_NUM\n")); 208 211 if (rp->ioctl.usDataLen < sizeof(ULONG)) 209 212 { … … 219 222 220 223 case IOCTL_OSS32_CARDS_NUM: 224 dprintf(("OSS32_CARDS_NUM\n")); 221 225 if (rp->ioctl.usDataLen < sizeof(ULONG)) 222 226 { … … 231 235 case IOCTL_OSS32_PCM_CAPS: 232 236 { 237 dprintf(("OSS32_PCM_CAPS\n")); 233 238 if (rp->ioctl.usDataLen < sizeof(ULONG)) 234 239 { … … 244 249 case IOCTL_OSS32_CARD_INFO: 245 250 { 251 dprintf(("OSS32_CARD_INFO\n")); 246 252 if (rp->ioctl.usDataLen < sizeof(ULONG)) 247 253 { … … 257 263 case IOCTL_OSS32_GET_POWER_STATE: 258 264 { 265 dprintf(("OSS32_GET_POWER_STATE\n")); 259 266 if (rp->ioctl.usDataLen < sizeof(ULONG)) 260 267 { … … 270 277 case IOCTL_OSS32_SET_POWER_STATE: 271 278 { 279 dprintf(("OSS32_SET_POWER_STATE\n")); 272 280 if (rp->ioctl.usDataLen < sizeof(ULONG)) 273 281 { … … 283 291 case IOCTL_OSS32_GET_CNTRLS_NUM: 284 292 { 293 dprintf(("OSS32_GET_CNTRLS_NUM\n")); 285 294 if (rp->ioctl.usDataLen < sizeof(ULONG)) 286 295 { … … 298 307 case IOCTL_OSS32_GET_CNTRLS: 299 308 { 309 dprintf(("OSS32_GET_CNTRLS\n")); 300 310 if (rp->ioctl.usDataLen < sizeof(ULONG)) 301 311 { … … 311 321 case IOCTL_OSS32_CNTRL_INFO: 312 322 { 323 dprintf(("OSS32_CNTRL_INFO\n")); 313 324 314 325 if (rp->ioctl.usDataLen < sizeof(ULONG)) … … 336 347 case IOCTL_OSS32_CNTRL_GET: 337 348 { 349 dprintf(("OSS32_CNTRL_GET\n")); 338 350 if (rp->ioctl.usDataLen < sizeof(ULONG)) 339 351 { … … 360 372 case IOCTL_OSS32_CNTRL_PUT: 361 373 { 374 dprintf(("OSS32_CNTRL_PUT\n")); 362 375 363 376 if (rp->ioctl.usDataLen < sizeof(ULONG)) { … … 383 396 case IOCTL_OSS32_SET_PCM: 384 397 { 398 dprintf(("OSS32_SET_PCM\n")); 385 399 386 400 if (rp->ioctl.usParmLen < sizeof(ULONG)) … … 399 413 case IOCTL_OSS32_CNTRL_WAIT: 400 414 { 415 dprintf(("OSS32_CNTRL_WAIT\n")); 401 416 if (rp->ioctl.usDataLen < sizeof(ULONG)) 402 417 { … … 414 429 pData = (ULONG *)linData; 415 430 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 431 432 dprintf(("OSS32_PCM_OPEN\n")); 416 433 // close all pcms from uniaud16 first 417 434 pcm->ret = OSS32_WaveOpen(pcm->deviceid, pcm->streamtype, pData, pcm->pcm, rp->ioctl.usSysFileNum); … … 422 439 { 423 440 ULONG alsa_id = *((ULONG *)linParm); 441 442 dprintf(("OSS32_PCM_CLOSE\n")); 424 443 OSS32_WaveClose(alsa_id); 425 444 } … … 429 448 char *pData1 = (char *)linData; 430 449 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 450 451 dprintf(("OSS32_PCM_READ\n")); 431 452 pcm->ret = UniaudIoctlPCMRead(pcm->deviceid, pData1, pcm->size); 432 453 } … … 436 457 char *pData1 = (char *)linData; 437 458 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 459 460 dprintf(("OSS32_PCM_WRITE\n")); 438 461 pcm->ret = UniaudIoctlPCMWrite(pcm->deviceid, pData1, pcm->size); 439 462 } … … 442 465 { 443 466 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 467 468 dprintf(("OSS32_PCM_PAUSE\n")); 444 469 pcm->ret = UniaudIoctlPCMResume(pcm->deviceid, 0); 445 470 } … … 448 473 { 449 474 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 475 476 dprintf(("OSS32_PCM_RESUME\n")); 450 477 pcm->ret = UniaudIoctlPCMResume(pcm->deviceid, 1); 451 478 } … … 454 481 { 455 482 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 483 484 dprintf(("OSS32_PCM_START\n")); 456 485 pcm->ret = UniaudIoctlPCMStart(pcm->deviceid); 457 486 } … … 460 489 { 461 490 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 491 492 dprintf(("OSS32_PCM_DROP\n")); 462 493 pcm->ret = UniaudIoctlPCMDrop(pcm->deviceid); 463 494 } … … 469 500 void *pData1 = (void *)linData; 470 501 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 502 503 dprintf(("OSS32_PCM_STATUS\n")); 471 504 pcm->ret = UniaudIoctlPCMStatus(pcm->deviceid, pData1); 472 505 } … … 476 509 void *pData1 = (void *)linData; 477 510 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 511 512 dprintf(("OSS32_PCM_REFINEHWPARAMS\n")); 478 513 pcm->ret = UniaudIoctlHWRefine(pcm->deviceid, pData1); 479 514 } … … 483 518 void *pData1 = (void *)linData; 484 519 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 520 521 dprintf(("OSS32_PCM_SETHWPARAMS\n")); 485 522 pcm->ret = UniaudIoctlHWParamSet(pcm->deviceid, pData1); 486 523 } … … 490 527 void *pData1 = (void *)linData; 491 528 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 529 530 dprintf(("OSS32_PCM_SETSWPARAMS\n")); 492 531 pcm->ret = UniaudIoctlSWParamSet(pcm->deviceid, pData1); 493 532 } … … 496 535 { 497 536 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 537 538 dprintf(("OSS32_PCM_PREPARE\n")); 498 539 pcm->ret = UniaudIoctlPCMPrepare(pcm->deviceid); 499 540 } … … 503 544 { 504 545 int unlock = (int)*linParm; 546 547 dprintf(("OSS32_PCM_CLOSE_ALL\n")); 505 548 if (unlock) 506 549 unlock_all = 1; … … 510 553 break; 511 554 case IOCTL_OSS32_PCM_CLOSE_16: 555 dprintf(("OSS32_PCM_CLOSE_16\n")); 512 556 OSS32_CloseUNI16(); 513 557 break; … … 515 559 { 516 560 ioctl_pcm *pcm = (ioctl_pcm *)linParm; 561 562 dprintf(("OSS32_PCM_WAIT_INT\n")); 517 563 pcm->ret = WaitForPCMInterrupt((void*)pcm->deviceid, pcm->streamtype); 518 564 } -
GPL/branches/uniaud32-2.1.x/drv32/parse.c
r593 r594 240 240 if(*pszOption == '2') { 241 241 MAGIC_COMM_PORT = 0x2f8; 242 } 243 if(*pszOption == '4') { 244 MAGIC_COMM_PORT = 0x4000; 242 245 } 243 246 break; -
GPL/branches/uniaud32-2.1.x/include/dbgos2.h
r550 r594 55 55 #define dprintf2(a) if(DebugLevel > 1) printk a 56 56 #define dprintf3(a) if(DebugLevel > 2) printk a 57 #define DebugInt3() ; //_asm int 357 #define DebugInt3() 58 58 //#define DebInt3() _asm int 3; 59 59 #else -
GPL/branches/uniaud32-2.1.x/include/linux/types.h
r588 r594 2 2 #define _LINUX_TYPES_H 3 3 4 #pragma off (unreferenced)4 //#pragma off (unreferenced) 5 5 6 6 #include <linux/posix_types.h> -
GPL/branches/uniaud32-2.1.x/lib32/fminstrload.c
r519 r594 103 103 104 104 if(pHandle == NULL || pHandle->magic != MAGIC_MIDI_ALSA32) { 105 DebugInt3();105 //DebugInt3(); 106 106 return OSSERR_INVALID_STREAMID; 107 107 } -
GPL/branches/uniaud32-2.1.x/lib32/ioctl.c
r550 r594 226 226 WAVE_CAPS *wc; 227 227 int i; 228 int sel_pcm = -1;228 //int sel_pcm = -1; 229 229 int max_ch = 0; 230 230 … … 439 439 { 440 440 mixerhandle *pHandle = NULL; 441 int ret, i, j; 441 int ret; 442 //int i, j; 442 443 443 444 if(alsa_fops == NULL) { … … 492 493 { 493 494 mixerhandle *pHandle = NULL; 494 int ret, i, j; 495 int ret; 496 //int i, j; 495 497 496 498 if(alsa_fops == NULL) { … … 545 547 { 546 548 mixerhandle *pHandle = NULL; 547 int ret, i, j; 549 int ret; 550 //int i, j; 548 551 549 552 //dprintf(("GetUniaudCardInfo")); … … 600 603 { 601 604 mixerhandle *pHandle = NULL; 602 int ret, i, j, sz; 605 int ret, sz; 606 //int i, j; 603 607 604 608 //dprintf(("GetUniaudControlNum")); … … 667 671 { 668 672 mixerhandle *pHandle = NULL; 669 int ret, i, j, sz; 673 int ret, sz; 674 //int i, j; 670 675 671 676 //dprintf(("GetUniaudControls")); … … 756 761 int GetUniaudControlInfo(ULONG deviceid, ULONG id, void *info) 757 762 { 758 struct snd_ctl_elem_value *pElem = NULL;763 //struct snd_ctl_elem_value *pElem = NULL; 759 764 struct snd_ctl_elem_info *pElemInfo = NULL; 760 765 mixerhandle *pHandle = NULL; 761 int ret, i, j, sz; 766 int ret, sz; 767 //int i, j; 762 768 763 769 //dprintf(("GetUniaudControlInfo")); … … 820 826 //struct snd_ctl_elem_info *pElemInfo = NULL; 821 827 mixerhandle *pHandle = NULL; 822 int ret, i, j, sz; 828 int ret, sz; 829 //int i, j; 823 830 824 831 if(alsa_fops == NULL) { … … 878 885 //struct snd_ctl_elem_info *pElemInfo = NULL; 879 886 mixerhandle *pHandle = NULL; 880 int ret, i, j, sz; 887 int ret, sz; 888 //int i, j; 881 889 882 890 if(alsa_fops == NULL) { -
GPL/branches/uniaud32-2.1.x/lib32/misc.c
r569 r594 205 205 } 206 206 //****************************************************************************** 207 static struct notifier_block *reboot_notify_list = NULL;207 //static struct notifier_block *reboot_notify_list = NULL; 208 208 // No need to implement this right now. The ESS Maestro 3 driver uses it 209 209 // to call pci_unregister_driver, which is always called from the shutdown -
GPL/branches/uniaud32-2.1.x/lib32/sound.c
r536 r594 329 329 ULONG format_mask; 330 330 struct snd_mask *mask; 331 int max_ch;331 //int max_ch; 332 332 333 333 dprintf(("OSS32_QueryDevCaps")); … … 773 773 ULONG periodbytes, minperiodbytes, maxperiodbytes; 774 774 BOOL fTryAgain = FALSE; 775 ULONG ulMinRate, ulMaxRate;775 //ULONG ulMinRate, ulMaxRate; 776 776 777 777 if(pHandle == NULL || pHandle->magic != MAGIC_WAVE_ALSA32) { … … 1063 1063 soundhandle *pHandle = (soundhandle *)streamid; 1064 1064 struct snd_pcm_status status; 1065 int iRet, align, iRet1; 1065 int iRet; 1066 //int align, iRet1; 1066 1067 LONG ulTransferred; 1067 ULONG ulPosition, ulI, ulJ, ulSize; 1068 char *buf; 1068 //ULONG ulPosition, ulI, ulJ; 1069 ULONG ulSize; 1070 //char *buf; 1069 1071 1070 1072 // return OSSERR_SUCCESS; … … 1109 1111 return OSSERR_BUFFER_FULL; 1110 1112 } 1113 1114 //dprintf(("WaveAddBuffer: ReqSize=%x Size=%x", ulReqSize, ulSize)); 1111 1115 1112 1116 //rprintf(("AddBuffer: state=%x avail=%x ReqSize=%x", status.state, status.avail, ulReqSize)); -
GPL/branches/uniaud32-2.1.x/lib32/soundmidi.c
r519 r594 287 287 { 288 288 midihandle *pHandle = (midihandle *)streamid; 289 int ret;289 //int ret; 290 290 LONG transferred; 291 291 struct snd_seq_event fmevent; -
GPL/branches/uniaud32-2.1.x/lib32/soundmixer.c
r531 r594 346 346 { 347 347 mixerhandle *pHandle = (mixerhandle *)streamid; 348 int ret;348 //int ret; 349 349 350 350 if(pHandle == NULL || pHandle->magic != MAGIC_MIXER_ALSA32) { … … 364 364 struct snd_ctl_elem_value *pElem = NULL; 365 365 struct snd_ctl_elem_info *pElemInfo; 366 int ret, idx, lVol, rVol = 0, idxMute, cnt; 366 int ret, idx, lVol, rVol = 0, idxMute; 367 //int cnt; 367 368 368 369 //dprintf(("OSS32_MixSetVolume line=%d\n", line)); … … 718 719 { 719 720 mixerhandle *pHandle = (mixerhandle *)streamid; 720 int ret;721 //int ret; 721 722 722 723 if(pHandle == NULL || pHandle->magic != MAGIC_MIXER_ALSA32) { … … 813 814 { 814 815 mixerhandle *pHandle = NULL; 815 int ret, i, j; 816 int ret; 817 //int i, j; 816 818 817 819 if(alsa_fops == NULL) … … 870 872 { 871 873 mixerhandle *pHandle = NULL; 872 int ret, i, j; 874 int ret; 875 //int i, j; 873 876 874 877 if(alsa_fops == NULL) { -
GPL/branches/uniaud32-2.1.x/tools/header.mif
r593 r594 45 45 46 46 !if "$(DEBUG)" == "1" 47 CFLAGS = -dDEBUG -bt=os2v2 - e60 -hc -5r -omlinear -s -w4-ze -zdp -zl -zq -nt=CODE32 -zff -zgf -ei47 CFLAGS = -dDEBUG -bt=os2v2 -hc -5r -omlinear -s -wx -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -ei 48 48 CPPFLAGS= -xd 49 49 ASFLAGS = -D:DEBUG -Mb -Li -Sv:M510 50 50 !else 51 CFLAGS = -bt=os2v2 - e60 -5r -omlinear -s -w4-ze -zdp -zl -zq -nt=CODE32 -zff -zgf -ei51 CFLAGS = -bt=os2v2 -5r -omlinear -s -wx -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -ei 52 52 CPPFLAGS= -xd 53 53 ASFLAGS = -Mb -Li -Sv:M510
Note:
See TracChangeset
for help on using the changeset viewer.