Changeset 607


Ignore:
Timestamp:
Nov 17, 2018, 4:23:38 AM (7 years ago)
Author:
David Azarewicz
Message:

Removed broken/unusable forcecard option.
Fixed Ensoniq driver selection.

Location:
GPL/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/pci/ens1370.c

    r598 r607  
    2323 * for ens1371 only ( FIXME )
    2424 * derived from cs4281.c, atiixp.c and via82xx.c
    25  * using http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ 
     25 * using http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/
    2626 * by Kurt J. Bosch
    2727 */
     
    468468        {5512, 11025, 22050, 44100};
    469469static struct snd_pcm_hw_constraint_list snd_es1370_hw_constraints_rates = {
    470         .count = 4, 
     470        .count = 4,
    471471        .list = snd_es1370_fixed_rates,
    472472        .mask = 0,
     
    474474static struct snd_ratnum es1370_clock = {
    475475        .num = ES_1370_SRCLOCK,
    476         .den_min = 29, 
     476        .den_min = 29,
    477477        .den_max = 353,
    478478        .den_step = 1,
     
    495495static struct snd_ratnum es1371_adc_clock = {
    496496        .num = 48000 << 15,
    497         .den_min = 32768, 
     497        .den_min = 32768,
    498498        .den_max = 393216,
    499499        .den_step = 1,
     
    10551055#else
    10561056                                (SNDRV_PCM_RATE_KNOT |  /* 5512Hz rate */
    1057                                  SNDRV_PCM_RATE_11025 | SNDRV_PCM_RATE_22050 | 
     1057                                 SNDRV_PCM_RATE_11025 | SNDRV_PCM_RATE_22050 |
    10581058                                 SNDRV_PCM_RATE_44100),
    10591059#endif
     
    10741074        .info =                 (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
    10751075                                 SNDRV_PCM_INFO_BLOCK_TRANSFER |
    1076                                  SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE | 
     1076                                 SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_PAUSE |
    10771077                                 SNDRV_PCM_INFO_SYNC_START),
    10781078        .formats =              SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,
     
    18661866 */
    18671867
    1868 static void snd_ensoniq_proc_read(struct snd_info_entry *entry, 
     1868static void snd_ensoniq_proc_read(struct snd_info_entry *entry,
    18691869                                  struct snd_info_buffer *buffer)
    18701870{
     
    24892489};
    24902490       
    2491 static int __init alsa_card_ens137x_init(void)
     2491#ifdef CHIP1370
     2492static int __init alsa_card_ens1370_init(void)
    24922493{
    24932494        return pci_register_driver(&driver);
    24942495}
    24952496
    2496 static void __exit alsa_card_ens137x_exit(void)
     2497static void __exit alsa_card_ens1370_exit(void)
    24972498{
    24982499        pci_unregister_driver(&driver);
    24992500}
    2500 
    2501 module_init(alsa_card_ens137x_init)
    2502 module_exit(alsa_card_ens137x_exit)
     2501module_init(alsa_card_ens1370_init)
     2502module_exit(alsa_card_ens1370_exit)
     2503#endif
     2504
     2505#ifdef CHIP1371
     2506static int __init alsa_card_ens1371_init(void)
     2507{
     2508        return pci_register_driver(&driver);
     2509}
     2510
     2511static void __exit alsa_card_ens1371_exit(void)
     2512{
     2513        pci_unregister_driver(&driver);
     2514}
     2515module_init(alsa_card_ens1371_init)
     2516module_exit(alsa_card_ens1371_exit)
     2517#endif
     2518
     2519
  • GPL/trunk/drv32/parse.c

    r602 r607  
    4343int fVerbose  = FALSE;
    4444int fDebug    = FALSE;
    45 int ForceCard = CARD_NONE;
     45//int ForceCard = CARD_NONE;
    4646int iAdapterNumber = -1;
    4747
     
    121121}
    122122//*****************************************************************************
     123
     124#if 0
    123125//*****************************************************************************
    124126void CheckCardName(char FAR48 *psz)
     
    206208}
    207209//*****************************************************************************
     210#endif
     211
    208212//*****************************************************************************
    209213int DoParm(char cParm, char FAR48 *pszOption)
     
    219223        fDebug = TRUE;
    220224        break;
    221     case 'C':
    222         CheckCardName(pszOption);
    223         break;
     225    //case 'C':
     226        //CheckCardName(pszOption);
     227        //break;
    224228#if 1
    225229    case 'M':
  • GPL/trunk/include/unicard.h

    r518 r607  
    3636#define CARD_VIA82XX    6
    3737#define CARD_ESS1938    7
    38 #define CARD_ENSONIQ    8
     38#define CARD_ENSONIQ0   8
    3939#define CARD_YAMAHA     9
    4040#define CARD_MAESTRO    10
     
    5050#define CARD_VORTEX     20 // unsupported
    5151#define CARD_CS5535     21
     52#define CARD_ENSONIQ1   22
    5253
    53 #define CARDS_NUM       22
     54#define CARDS_NUM       23
    5455
    5556#define CARD_STRING_SBLIVE      "SBLIVE"
     
    7879#define CARD_MAX_LEN            16
    7980
    80 extern int ForceCard;
     81//extern int ForceCard;
    8182
    8283#endif //__UNICARD_H__
  • GPL/trunk/lib32/initcall.h

    r598 r607  
    6868extern_module_init(alsa_card_emu10k1_init)
    6969extern_module_exit(alsa_card_emu10k1_exit)
    70 extern_module_init(alsa_card_ens137x_init)
    71 extern_module_exit(alsa_card_ens137x_exit)
     70extern_module_init(alsa_card_ens1370_init)
     71extern_module_exit(alsa_card_ens1370_exit)
     72extern_module_init(alsa_card_ens1371_init)
     73extern_module_exit(alsa_card_ens1371_exit)
    7274extern_module_init(alsa_card_es1938_init)
    7375extern_module_exit(alsa_card_es1938_exit)
  • GPL/trunk/lib32/ossidc.c

    r598 r607  
    7575        { CARD_CS5535,   &name_module_init(alsa_card_cs5535audio_init), &name_module_exit(alsa_card_cs5535audio_exit) },
    7676        { CARD_ESS1938,  &name_module_init(alsa_card_es1938_init),              &name_module_exit(alsa_card_es1938_exit)          },
    77         { CARD_ENSONIQ,  &name_module_init(alsa_card_ens137x_init),             &name_module_exit(alsa_card_ens137x_exit)         },
     77        { CARD_ENSONIQ0, &name_module_init(alsa_card_ens1370_init),             &name_module_exit(alsa_card_ens1370_exit)         },
     78        { CARD_ENSONIQ1, &name_module_init(alsa_card_ens1371_init),             &name_module_exit(alsa_card_ens1371_exit)         },
    7879        { CARD_YAMAHA,   &name_module_init(alsa_card_ymfpci_init),              &name_module_exit(alsa_card_ymfpci_exit)          },
    7980        { CARD_MAESTRO,  &name_module_init(alsa_card_es1968_init),              &name_module_exit(alsa_card_es1968_exit)          },
     
    136137        call_module_init(patch_via_init);
    137138
    138         dprintf(("OSS32_Initialize: ForceCard=%d", ForceCard));
     139        //dprintf(("OSS32_Initialize: ForceCard=%d", ForceCard));
    139140
    140141        for (sI=0; sI<CARDS_NUM; sI++) {
    141                 if ((ForceCard != CARD_NONE) && (ForceCard != cardcalls[sI].card_id)) continue;
     142                //if ((ForceCard != CARD_NONE) && (ForceCard != cardcalls[sI].card_id)) continue;
    142143                //dprintf(("calling: %x at %x", cardcalls[sI].card_id, cardcalls[sI].cinitcall));
    143144                if (cardcalls[sI].cinitcall == NULL) continue;
  • GPL/trunk/tools/AddToFile.cmd

    r602 r607  
    11/** AddToFile.cmd
    22 * Adds the specified line to the end of the specified file.
    3  * Written by and Copyright (c) 2010-2016 David Azarewicz http://88watts.net
     3 * Written by and Copyright (c) 2010-2018 David Azarewicz http://88watts.net
    44 *
    5  * @#D Azarewicz:1.01#@##1## 16 Sep 2016              DAZAR1    ::::::@@AddToFile.cmd (c) David Azarewicz 2016
     5 * @#D Azarewicz:1.02#@##1## 15 Nov 2018              DAZAR1    ::::::@@AddToFile.cmd (c) David Azarewicz 2018
    66 * V1.01 16-Sep-2016 First official release
     7 * V1.02 02-Jun-2017 Added Asd to bldlevel, added DATE1
    78 *
    89 * The following line is for the help sample code for the VAR function:
     
    1819  Say 'Functions:';
    1920  Say '  DATEL - Adds the date as a long number.';
    20   Say '  BLDLEVEL - Adds a formatted BLDLEVEL string.';
     21  Say '  DATE1 - Adds the date in 2017-Jul-01 format.';
     22  Say '  BLDLEVEL - Adds a standardized formatted BLDLEVEL string.';
    2123  Say '  DATEYEAR - Adds the current year.';
    2224  Say '  DATEMONTH - Adds the current month.';
     
    3335  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    3436  call 'AddToFile.cmd' MyCmd;
     37  MyCmd=MyFile||',#define DDATE,DATE1';
     38  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
     39  call 'AddToFile.cmd' MyCmd;
    3540  MyCmd=MyFile||',option description,BLDLEVEL,Vendor,1.2.3,Description,Fixpack,Asd';
    3641  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
     
    223228  do while (QUEUED() > 0)
    224229    PARSE PULL Line1':'Line2
     230    if (Line1 = "Revision") then leave;
    225231    if (Line1 = "Last Changed Rev") then leave;
    226232    Line2 = "";
  • GPL/trunk/uniaud.inc

    r604 r607  
    77# BUILDVERSION must be 3 parts, and only numbers like 5.44.108
    88# The second and third numbers must be 2 digits
    9 BUILDVERSION = 2.02.04
     9BUILDVERSION = 2.02.05
    1010
    1111# Fixpack version
Note: See TracChangeset for help on using the changeset viewer.