Changeset 638 for GPL/branches


Ignore:
Timestamp:
Jan 7, 2021, 9:45:22 PM (5 years ago)
Author:
David Azarewicz
Message:

Fixed more warnings.

Location:
GPL/branches/uniaud32-next
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/hda_bind.c

    r621 r638  
    1818// 2020-11-17 SHL
    1919#include <../../../lib32/internal.h>
     20#pragma disable_message (201)
    2021
    2122/*
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/hda_controller.c

    r629 r638  
    3131#include "hda_controller_trace.h"
    3232#else
    33 #define trace_azx_pcm_close {}
    34 #define trace_azx_pcm_open {}
    35 #define trace_azx_pcm_prepare {}
    36 #define trace_azx_pcm_hw_params {}
    37 #define trace_azx_resume {}
     33#pragma disable_message (201)
     34#define trace_azx_pcm_close(...)
     35#define trace_azx_pcm_open(...)
     36#define trace_azx_pcm_prepare(...)
     37#define trace_azx_pcm_hw_params(...)
     38#define trace_azx_resume(...)
    3839#endif
    3940/* DSP lock helpers */
     
    112113                             struct snd_pcm_hw_params *hw_params)
    113114{
    114         struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
    115         struct azx *chip = apcm->chip;
     115        //NOT_USED struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
     116        //NOT_USED struct azx *chip = apcm->chip;
    116117        struct azx_dev *azx_dev = get_azx_dev(substream);
    117118        int ret = 0;
     
    474475
    475476#else
     477#ifdef NOT_USED
    476478static int azx_get_sync_time(ktime_t *device,
    477479                struct system_counterval_t *system, void *ctx)
     
    479481        return -ENXIO;
    480482}
     483#endif /* NOT_USED */
    481484#endif
    482485
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/hda_intel.c

    r629 r638  
    4141#ifdef TARGET_OS2
    4242#define KBUILD_MODNAME "hda_intel"
     43#pragma disable_message (201)
    4344#endif
    4445
     
    182183
    183184#ifdef CONFIG_PM
     185#ifdef NOT_USED
    184186static int param_set_xint(const char *val, const struct kernel_param *kp);
    185187static const struct kernel_param_ops param_ops_xint = {
     
    188190};
    189191#define param_check_xint param_check_int
     192#endif /* NOT_USED */
    190193
    191194static int power_save = CONFIG_SND_HDA_POWER_SAVE_DEFAULT;
     
    202205 * wake up.
    203206 */
    204 static bool power_save_controller = 1;
     207//NOT_USED static bool power_save_controller = 1;
    205208module_param(power_save_controller, bool, 0644);
    206209MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode.");
     
    401404        [AZX_DRIVER_ULI] = "HDA ULI M5461",
    402405        [AZX_DRIVER_NVIDIA] = "HDA NVidia",
    403         [AZX_DRIVER_TERA] = "HDA Teradici", 
    404         [AZX_DRIVER_CTX] = "HDA Creative", 
     406        [AZX_DRIVER_TERA] = "HDA Teradici",
     407        [AZX_DRIVER_CTX] = "HDA Creative",
    405408        [AZX_DRIVER_CTHDA] = "HDA Creative",
    406409        [AZX_DRIVER_CMEDIA] = "HDA C-Media",
     
    955958}
    956959
     960#ifdef NOT_USED
    957961/* trigger power-save check at writing parameter */
    958962static int param_set_xint(const char *val, const struct kernel_param *kp)
     
    976980        return 0;
    977981}
     982#endif /* NOT_USED */
    978983
    979984/*
     
    11371142#endif /* CONFIG_PM_SLEEP */
    11381143
     1144#ifdef NOT_USED
    11391145static int azx_runtime_suspend(struct device *dev)
    11401146{
     
    11951201        return 0;
    11961202}
     1203#endif /* NOT_USED */
    11971204
    11981205static const struct dev_pm_ops azx_pm = {
     
    14431450{
    14441451        struct azx *chip = device->device_data;
    1445         struct hdac_bus *bus = azx_bus(chip);
     1452        //NOT_USED struct hdac_bus *bus = azx_bus(chip);
    14461453
    14471454        chip->bus.shutdown = 1;
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_conexant.c

    r629 r638  
    141141}
    142142
     143#ifdef NOT_USED
    143144/* turn on/off EAPD according to Master switch (inversely!) for mute LED */
    144145static int cx_auto_vmaster_mute_led(struct led_classdev *led_cdev,
     
    153154        return 0;
    154155}
     156#endif /* NOT_USED */
    155157
    156158static int cx_auto_init(struct hda_codec *codec)
     
    618620}
    619621
     622#ifdef NOT_USED
    620623/* update LED status via GPIO */
    621624static void cxt_update_gpio_led(struct hda_codec *codec, unsigned int mask,
     
    660663        return 0;
    661664}
    662 
     665#endif /* NOT_USED */
    663666
    664667static void cxt_fixup_mute_led_gpio(struct hda_codec *codec,
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_realtek.c

    r629 r638  
    2929#ifdef TARGET_OS2
    3030#define KBUILD_MODNAME "patch_realtek"
     31#pragma disable_message (201)
    3132#endif
    3233
     
    44454446static int alc269_suspend(struct hda_codec *codec)
    44464447{
    4447         struct alc_spec *spec = codec->spec;
     4448        //NOT_USED struct alc_spec *spec = codec->spec;
    44484449
    44494450#ifndef TARGET_OS2
     
    46854686}
    46864687
     4688#ifdef NOT_USED
    46874689static void alc_update_vref_led(struct hda_codec *codec, hda_nid_t pin,
    46884690                                bool polarity, bool on)
     
    47144716        return 0;
    47154717}
     4718#endif /* NOT_USED */
    47164719
    47174720/* Make sure the led works even in runtime suspend */
     
    47424745                return;
    47434746
    4744         while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING, NULL, dev))) {
     4747        while ((dev = dmi_find_device(DMI_DEV_TYPE_OEM_STRING, NULL, dev))!=0) {
    47454748                int pol, pin;
    47464749                if (sscanf(dev->name, "HP_Mute_LED_%d_%x", &pol, &pin) != 2)
     
    48044807}
    48054808
     4809#ifdef NOT_USED
    48064810/* turn on/off mute LED via GPIO per vmaster hook */
    48074811static int gpio_mute_led_set(struct led_classdev *led_cdev,
     
    48274831        return 0;
    48284832}
     4833#endif /* NOT_USED */
    48294834
    48304835/* setup mute and mic-mute GPIO bits, add hooks appropriately */
     
    48724877}
    48734878
     4879#ifdef NOT_USED
    48744880static void alc287_fixup_hp_gpio_led(struct hda_codec *codec,
    48754881                                const struct hda_fixup *fix, int action)
     
    48894895        return 0;
    48904896}
     4897#endif
    48914898
    48924899static void alc269_fixup_hp_gpio_mic1_led(struct hda_codec *codec,
     
    49254932}
    49264933
     4934#ifdef NOT_USED
    49274935static void alc_update_coef_led(struct hda_codec *codec,
    49284936                                struct alc_coef_led *led,
     
    49474955        return 0;
    49484956}
     4957#endif /* NOT_USED */
    49494958
    49504959static void alc285_fixup_hp_mute_led_coefbit(struct hda_codec *codec,
     
    49844993}
    49854994
     4995#ifdef NOT_USED
    49864996/* turn on/off mic-mute LED per capture hook by coef bit */
    49874997static int coef_micmute_led_set(struct led_classdev *led_cdev,
     
    49955005        return 0;
    49965006}
     5007#endif /* NOT_USED */
    49975008
    49985009static void alc285_fixup_hp_coef_micmute_led(struct hda_codec *codec,
     
    61646175                spec->parse_flags |= HDA_PINCFG_HEADSET_MIC;
    61656176                alc255_set_default_jack_type(codec);
    6166         } 
     6177        }
    61676178        else
    61686179                alc_fixup_headset_mode(codec, fix, action);
     
    66916702}
    66926703
     6704#ifdef NOT_USED
    66936705/* avoid DAC 0x06 for bass speaker 0x17; it has no volume control */
    66946706static void alc289_fixup_asus_ga401(struct hda_codec *codec,
     
    67056717        }
    67066718}
     6719#endif /* NOT_USED */
    67076720
    67086721/* The DAC of NID 0x3 will introduce click/pop noise on headphones, so invalidate it */
     
    67606773
    67616774
     6775#ifdef NOT_USED
    67626776static void alc294_gx502_toggle_output(struct hda_codec *codec,
    67636777                                        struct hda_jack_callback *cb)
     
    68296843        }
    68306844}
     6845#endif /* NOT_USED */
    68316846
    68326847/* for hda_fixup_thinkpad_acpi() */
     
    70607075                        { 0x1b, 0x23a11040 }, /* dock mic-in */
    70617076                        {0}
    7062 }; 
     7077};
    70637078
    70647079static const struct hda_pintbl ALC269_FIXUP_LIFEBOOK_EXTMIC_PINS[] = {
    70657080                        { 0x19, 0x01a1903c }, /* headset mic, with jack detect */
    70667081                        {0}
    7067 }; 
     7082};
    70687083
    70697084static const struct hda_pintbl ALC269_FIXUP_LIFEBOOK_HP_PIN_PINS[] = {
    70707085                        { 0x21, 0x0221102f }, /* HP out */
    70717086                        {0}
    7072 }; 
     7087};
    70737088
    70747089static const struct hda_pintbl ALC269_FIXUP_AMIC_pins[] = {
     
    70787093                        { 0x19, 0x99a3092f }, /* int-mic */
    70797094                        {0}
    7080 }; 
     7095};
    70817096
    70827097
     
    70877102                        { 0x18, 0x01a19c20 }, /* mic */
    70887103                        {0}
    7089 }; 
    7090  
     7104};
     7105
    70917106
    70927107static const struct hda_pintbl ALC269VB_FIXUP_AMIC_pins[] = {
     
    70967111                        { 0x21, 0x0121401f }, /* HP out */
    70977112                        {0}
    7098 }; 
     7113};
    70997114
    71007115static const struct hda_pintbl ALC269VB_FIXUP_DMIC_pins[] = {
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/patch_sigmatel.c

    r629 r638  
    324324}
    325325
     326#ifdef NOT_USED
    326327/* hook for controlling mic-mute LED GPIO */
    327328static int stac_capture_led_update(struct led_classdev *led_cdev,
     
    361362        return 1;
    362363}
     364#endif /* NOT_USED */
    363365
    364366/* prevent codec AFG to D3 state when vref-out pin is used for mute LED */
     
    373375}
    374376
     377#ifdef NOT_USED
    375378/* update mute-LED accoring to the master switch */
    376379static void stac_update_led_status(struct hda_codec *codec, bool muted)
     
    408411        return 0;
    409412}
     413#endif /* NOT_USED */
    410414
    411415/* automute hook to handle GPIO mute and EAPD updates */
     
    11991203
    12001204
    1201 /* 
     1205/*
    12021206    STAC 9200-32 pin configs for
    12031207    102801B5 (Dell Inspiron 630m)
     
    12161220};
    12171221
    1218 /* 
     1222/*
    12191223    STAC 9200-32 pin configs for
    12201224    102801C2 (Dell Latitude D620)
    1221     102801C8 
     1225    102801C8
    12221226    102801CC (Dell Latitude D820)
    1223     102801D4 
    1224     102801D6 
     1227    102801D4
     1228    102801D6
    12251229*/
    12261230static const struct hda_pintbl dell9200_m22_pin_configs[] = {
     
    12361240};
    12371241
    1238 /* 
     1242/*
    12391243    STAC 9200-32 pin configs for
    12401244    102801CE (Dell XPS M1710)
     
    12541258
    12551259/*
    1256     STAC 9200-32 pin configs for 
     1260    STAC 9200-32 pin configs for
    12571261    102801C9
    12581262    102801CA
     
    44974501{
    44984502        if (nid == codec->core.afg)
    4499                 snd_iprintf(buffer, "Power-Map: 0x%02x\n", 
     4503                snd_iprintf(buffer, "Power-Map: 0x%02x\n",
    45004504                            snd_hda_codec_read(codec, nid, 0,
    45014505                                               AC_VERB_IDT_GET_POWER_MAP, 0));
  • GPL/branches/uniaud32-next/lib32/misc.c

    r625 r638  
    276276    proc->name   = name;
    277277    proc->parent = parent;
    278     proc->data = dest;
     278    proc->data = (void*)dest;
    279279
    280280    return proc;
  • GPL/branches/uniaud32-next/lib32/regcache-rbtree.c

    r625 r638  
    328328                       * sizeof(*present));
    329329        } else {
    330                 present = rbnode->cache_present;
     330                present = (unsigned long *)rbnode->cache_present;
    331331        }
    332332
     
    342342        rbnode->blklen = blklen;
    343343        rbnode->base_reg = base_reg;
    344         rbnode->cache_present = present;
     344        rbnode->cache_present = (long*)present;
    345345
    346346        regcache_rbtree_set_register(map, rbnode, pos, value);
     
    528528
    529529                ret = regcache_sync_block(map, rbnode->block,
    530                                           rbnode->cache_present,
     530                                          (unsigned long *)rbnode->cache_present,
    531531                                          rbnode->base_reg, start, end);
    532532                if (ret != 0)
     
    567567                        end = rbnode->blklen;
    568568
    569                 bitmap_clear(rbnode->cache_present, start, end - start);
     569                bitmap_clear((unsigned long *)rbnode->cache_present, start, end - start);
    570570        }
    571571
  • GPL/branches/uniaud32-next/lib32/regmap.c

    r625 r638  
    430430/*static inline*/ void regmap_lock_hwlock(void *__map)
    431431{
    432         struct regmap *map = __map;
     432        //NOT_USED struct regmap *map = __map;
    433433
    434434//      hwspin_lock_timeout(map->hwlock, UINT_MAX);
     
    437437/*static inline*/ void regmap_lock_hwlock_irq(void *__map)
    438438{
    439         struct regmap *map = __map;
     439        //NOT_USED struct regmap *map = __map;
    440440
    441441//      hwspin_lock_timeout_irq(map->hwlock, UINT_MAX);
     
    444444/*static inline*/ void regmap_lock_hwlock_irqsave(void *__map)
    445445{
    446         struct regmap *map = __map;
     446        //NOT_USED struct regmap *map = __map;
    447447
    448448//      hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX,
     
    452452/*static inline*/ void regmap_unlock_hwlock(void *__map)
    453453{
    454         struct regmap *map = __map;
     454        //NOT_USED struct regmap *map = __map;
    455455
    456456//      hwspin_unlock(map->hwlock);
     
    459459/*static inline*/ void regmap_unlock_hwlock_irq(void *__map)
    460460{
    461         struct regmap *map = __map;
     461        //NOT_USED struct regmap *map = __map;
    462462
    463463//      hwspin_unlock_irq(map->hwlock);
     
    466466/*static inline*/ void regmap_unlock_hwlock_irqrestore(void *__map)
    467467{
    468         struct regmap *map = __map;
     468        //NOT_USED struct regmap *map = __map;
    469469
    470470//      hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags);
     
    11611161//      if (map->hwlock)
    11621162//              hwspin_lock_free(map->hwlock);
    1163 err_name:
     1163//err_name:
    11641164//      kfree_const(map->name);
    11651165err_map:
     
    20982098
    20992099        for (i = 0; i < num_regs; i++) {
    2100                 int reg = regs[i].reg;
     2100                int reg;
     2101                reg = regs[i].reg;
    21012102        }
    21022103        return ret;
Note: See TracChangeset for help on using the changeset viewer.