Changeset 637


Ignore:
Timestamp:
Jan 7, 2021, 8:54:42 PM (5 years ago)
Author:
David Azarewicz
Message:

Fix some easy warnings.

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

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/alsa-kernel/core/control.c

    r629 r637  
    2222#define MAX_USER_CONTROLS       32
    2323#define MAX_CONTROL_COUNT       1028
     24
     25#pragma disable_message (201)
    2426
    2527struct snd_kctl_ioctl {
     
    13831385        size_t buf_len, name_len;
    13841386        unsigned int i;
    1385 //      const 
     1387//      const
    13861388uintptr_t user_ptrval = ue->info.value.enumerated.names_ptr;
    13871389
  • GPL/branches/uniaud32-next/alsa-kernel/core/info.c

    r629 r637  
    7272#endif
    7373
     74#ifdef NOT_USED
    7475static int alloc_info_private(struct snd_info_entry *entry,
    7576                              struct snd_info_private_data **ret)
     
    103104 * file ops for binary proc files
    104105 */
    105 #ifdef NOT_USED
    106106static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
    107107{
     
    295295        .proc_release   = snd_info_entry_release,
    296296};
    297 #endif // NOT_USED
    298297
    299298/*
     
    431430        .proc_read      = seq_read,
    432431};
     432#endif /* NOT_USED */
    433433
    434434static struct snd_info_entry *create_subdir(struct module *mod,
  • GPL/branches/uniaud32-next/alsa-kernel/core/pcm_native.c

    r629 r637  
    77#ifdef TARGET_OS2
    88#include <sound/core.h>
     9#pragma disable_message (201)
    910#endif
    1011#include <linux/compat.h>
     
    3536#include "pcm_param_trace.h"
    3637#else
    37 #define trace_hw_mask_param_enabled()           0
     38#define trace_hw_mask_param_enabled() 0
    3839#define trace_hw_interval_param_enabled()       0
    3940#define trace_hw_mask_param(substream, type, index, prev, curr)
     
    13881389        snd_pcm_trigger_tstamp(substream);
    13891390        runtime->hw_ptr_jiffies = jiffies;
    1390         runtime->hw_ptr_buffer_jiffies = (runtime->buffer_size * HZ) / 
     1391        runtime->hw_ptr_buffer_jiffies = (runtime->buffer_size * HZ) /
    13911392                                                            runtime->rate;
    13921393        runtime->status->state = state;
     
    24502451        if (err < 0)
    24512452                return err;
    2452         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 
     2453        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS,
    24532454                                  snd_pcm_hw_rule_sample_bits, NULL,
    24542455                                  SNDRV_PCM_HW_PARAM_FORMAT,
     
    24562457        if (err < 0)
    24572458                return err;
    2458         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 
     2459        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS,
    24592460                                  snd_pcm_hw_rule_div, NULL,
    24602461                                  SNDRV_PCM_HW_PARAM_FRAME_BITS, SNDRV_PCM_HW_PARAM_CHANNELS, -1);
    24612462        if (err < 0)
    24622463                return err;
    2463         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 
     2464        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS,
    24642465                                  snd_pcm_hw_rule_mul, NULL,
    24652466                                  SNDRV_PCM_HW_PARAM_SAMPLE_BITS, SNDRV_PCM_HW_PARAM_CHANNELS, -1);
    24662467        if (err < 0)
    24672468                return err;
    2468         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 
     2469        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS,
    24692470                                  snd_pcm_hw_rule_mulkdiv, (void*) 8,
    24702471                                  SNDRV_PCM_HW_PARAM_PERIOD_BYTES, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, -1);
    24712472        if (err < 0)
    24722473                return err;
    2473         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 
     2474        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS,
    24742475                                  snd_pcm_hw_rule_mulkdiv, (void*) 8,
    24752476                                  SNDRV_PCM_HW_PARAM_BUFFER_BYTES, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, -1);
    24762477        if (err < 0)
    24772478                return err;
    2478         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 
     2479        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
    24792480                                  snd_pcm_hw_rule_div, NULL,
    24802481                                  SNDRV_PCM_HW_PARAM_FRAME_BITS, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, -1);
    24812482        if (err < 0)
    24822483                return err;
    2483         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 
     2484        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
    24842485                                  snd_pcm_hw_rule_mulkdiv, (void*) 1000000,
    24852486                                  SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_PERIOD_TIME, -1);
    24862487        if (err < 0)
    24872488                return err;
    2488         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 
     2489        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
    24892490                                  snd_pcm_hw_rule_mulkdiv, (void*) 1000000,
    24902491                                  SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_BUFFER_TIME, -1);
    24912492        if (err < 0)
    24922493                return err;
    2493         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIODS, 
     2494        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIODS,
    24942495                                  snd_pcm_hw_rule_div, NULL,
    24952496                                  SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, -1);
    24962497        if (err < 0)
    24972498                return err;
    2498         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 
     2499        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
    24992500                                  snd_pcm_hw_rule_div, NULL,
    25002501                                  SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_PERIODS, -1);
    25012502        if (err < 0)
    25022503                return err;
    2503         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 
     2504        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
    25042505                                  snd_pcm_hw_rule_mulkdiv, (void*) 8,
    25052506                                  SNDRV_PCM_HW_PARAM_PERIOD_BYTES, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1);
    25062507        if (err < 0)
    25072508                return err;
    2508         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 
     2509        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
    25092510                                  snd_pcm_hw_rule_muldivk, (void*) 1000000,
    25102511                                  SNDRV_PCM_HW_PARAM_PERIOD_TIME, SNDRV_PCM_HW_PARAM_RATE, -1);
    25112512        if (err < 0)
    25122513                return err;
    2513         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 
     2514        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
    25142515                                  snd_pcm_hw_rule_mul, NULL,
    25152516                                  SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_PERIODS, -1);
    25162517        if (err < 0)
    25172518                return err;
    2518         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 
     2519        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
    25192520                                  snd_pcm_hw_rule_mulkdiv, (void*) 8,
    25202521                                  SNDRV_PCM_HW_PARAM_BUFFER_BYTES, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1);
    25212522        if (err < 0)
    25222523                return err;
    2523         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 
     2524        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE,
    25242525                                  snd_pcm_hw_rule_muldivk, (void*) 1000000,
    25252526                                  SNDRV_PCM_HW_PARAM_BUFFER_TIME, SNDRV_PCM_HW_PARAM_RATE, -1);
    25262527        if (err < 0)
    25272528                return err;
    2528         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 
     2529        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
    25292530                                  snd_pcm_hw_rule_muldivk, (void*) 8,
    25302531                                  SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1);
    25312532        if (err < 0)
    25322533                return err;
    2533         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 
     2534        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
    25342535                                  snd_pcm_hw_rule_muldivk, (void*) 8,
    25352536                                  SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1);
    25362537        if (err < 0)
    25372538                return err;
    2538         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 
     2539        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_TIME,
    25392540                                  snd_pcm_hw_rule_mulkdiv, (void*) 1000000,
    25402541                                  SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_RATE, -1);
    25412542        if (err < 0)
    25422543                return err;
    2543         err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_TIME, 
     2544        err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_TIME,
    25442545                                  snd_pcm_hw_rule_mulkdiv, (void*) 1000000,
    25452546                                  SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_RATE, -1);
     
    33773378                return snd_pcm_drop(substream);
    33783379        case SNDRV_PCM_IOCTL_DELAY:
    3379                 return snd_pcm_delay(substream, frames);
     3380                return snd_pcm_delay(substream, (snd_pcm_sframes_t*)frames);
    33803381        default:
    33813382                return -EINVAL;
  • GPL/branches/uniaud32-next/alsa-kernel/core/rawmidi.c

    r629 r637  
    5656        dev_dbg(&(rmidi)->dev, fmt, ##args)
    5757#else
    58 #define rmidi_err(rmidi, fmt) \
    59         dev_err((rmidi)->card->dev, fmt)
    60 #define rmidi_warn(rmidi, fmt) \
    61         dev_warn((rmidi)->card->dev, fmt)
    62 #define rmidi_dbg(rmidi, fmt) \
    63         dev_dbg((rmidi)->card->dev, fmt)
     58#define rmidi_err(rmidi, fmt, ...) \
     59        dev_err((rmidi)->card->dev, fmt, ##__VA_ARGS__)
     60#define rmidi_warn(rmidi, fmt, ...) \
     61        dev_warn((rmidi)->card->dev, fmt, ##__VA_ARGS__)
     62#define rmidi_dbg(rmidi, fmt, ...) \
     63        dev_dbg((rmidi)->card->dev, fmt, ##__VA_ARGS__)
    6464#endif
    6565
  • GPL/branches/uniaud32-next/alsa-kernel/core/seq/seq_memory.c

    r615 r637  
    355355        return err;
    356356}
    357  
     357
    358358
    359359/* poll wait */
     
    435435
    436436        while (atomic_read(&pool->counter) > 0)
     437        {
    437438                schedule_timeout_uninterruptible(1);
     439  }
    438440       
    439441        /* release all resources */
  • GPL/branches/uniaud32-next/alsa-kernel/core/timer.c

    r629 r637  
    3333#endif
    3434
    35 static int timer_limit = DEFAULT_TIMER_LIMIT;
     35//NOT_USED static int timer_limit = DEFAULT_TIMER_LIMIT;
    3636static int timer_tstamp_monotonic = 1;
    3737MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>");
     
    12451245#else
    12461246        init_timer(&priv->tlist);
    1247         priv->tlist.function = snd_timer_s_function;
     1247        priv->tlist.function = (void(*)(unsigned long))snd_timer_s_function;
    12481248        priv->tlist.data = (unsigned long) timer;
    12491249#endif
  • GPL/branches/uniaud32-next/alsa-kernel/drivers/mpu401/mpu401_uart.c

    r615 r637  
    186186                init_timer(&mpu->timer);
    187187                mpu->timer.data = (unsigned long)mpu;
    188                 mpu->timer.function = snd_mpu401_uart_timer;
     188                mpu->timer.function = (void(*)(unsigned long))snd_mpu401_uart_timer;
    189189                mpu->timer.expires = 1 + jiffies;
    190190                add_timer(&mpu->timer);
    191191#endif
    192         } 
     192        }
    193193        mpu->timer_invoked |= input ? MPU401_MODE_INPUT_TIMER :
    194194                MPU401_MODE_OUTPUT_TIMER;
  • GPL/branches/uniaud32-next/alsa-kernel/drivers/opl3/opl3_seq.c

    r629 r637  
    101101        if (use_internal_drums) {
    102102                /* Percussion mode */
    103                 opl3->voices[6].state = opl3->voices[7].state = 
     103                opl3->voices[6].state = opl3->voices[7].state =
    104104                        opl3->voices[8].state = SNDRV_OPL3_ST_NOT_AVAIL;
    105105                snd_opl3_load_drums(opl3);
     
    242242#else
    243243        init_timer(&opl3->tlist);
    244         opl3->tlist.function = snd_opl3_timer_func;
     244        opl3->tlist.function = (void(*)(unsigned long))snd_opl3_timer_func;
    245245        opl3->tlist.data = (unsigned long) opl3;
    246246#endif
  • GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_bus.c

    r629 r637  
    1414#include "trace.h"
    1515#else
    16 #define trace_hda_send_cmd {}
    17 #define trace_hda_unsol_event {}
    18 #define trace_hda_bus_reset {}
    19 #define trace_hda_get_response {}
     16#define trace_hda_send_cmd(...)
     17#define trace_hda_unsol_event(...)
     18#define trace_hda_bus_reset(...)
     19#define trace_hda_get_response(...)
    2020#endif
    2121
     
    172172}
    173173
     174#ifdef NOT_USED
    174175/*
    175176 * process queued unsolicited events
     
    202203        spin_unlock_irq(&bus->reg_lock);
    203204}
     205#endif /* NOT_USED */
    204206
    205207/**
  • GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_controller.c

    r636 r637  
    244244        unsigned long timeout;
    245245        unsigned long loopcounter;
    246         wait_queue_entry_t wait;
     246        //NOT_USED wait_queue_entry_t wait;
    247247        bool warned = false;
    248248
  • GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_stream.c

    r629 r637  
    1515#include "trace.h"
    1616#else
    17 #define trace_snd_hdac_stream_start
    18 #define trace_snd_hdac_stream_stop
     17#define trace_snd_hdac_stream_start(...)
     18#define trace_snd_hdac_stream_stop(...)
    1919#endif
    2020
  • GPL/branches/uniaud32-next/alsa-kernel/pci/ac97/ac97_codec.c

    r629 r637  
    146146{ 0x49434511, 0xffffffff, "ICE1232",            NULL,           NULL }, // alias VIA VT1611A?
    147147{ 0x49434514, 0xffffffff, "ICE1232A",           NULL,           NULL },
    148 { 0x49434551, 0xffffffff, "VT1616",             patch_vt1616,   NULL }, 
     148{ 0x49434551, 0xffffffff, "VT1616",             patch_vt1616,   NULL },
    149149{ 0x49434552, 0xffffffff, "VT1616i",            patch_vt1616,   NULL }, // VT1616 compatible (chipset integrated)
    150150{ 0x49544520, 0xffffffff, "IT2226E",            NULL,           NULL },
     
    152152{ 0x4e534300, 0xffffffff, "LM4540,43,45,46,48", NULL,           NULL }, // only guess --jk
    153153{ 0x4e534331, 0xffffffff, "LM4549",             NULL,           NULL },
    154 { 0x4e534350, 0xffffffff, "LM4550",             patch_lm4550,   NULL }, // volume wrap fix 
     154{ 0x4e534350, 0xffffffff, "LM4550",             patch_lm4550,   NULL }, // volume wrap fix
    155155{ 0x50534304, 0xffffffff, "UCB1400",            patch_ucb1400,  NULL },
    156156{ 0x53494c20, 0xffffffe0, "Si3036,8",           mpatch_si3036,  mpatch_si3036, AC97_MODEM_PATCH },
     
    209209        dev_dbg((ac97)->bus->card->dev, fmt, ##args)
    210210#else
    211 #define ac97_err(ac97, fmt)     \
    212         dev_err((ac97)->bus->card->dev, fmt)
    213 #define ac97_warn(ac97, fmt)    \
    214         dev_warn((ac97)->bus->card->dev, fmt)
    215 #define ac97_dbg(ac97, fmt)     \
    216         dev_dbg((ac97)->bus->card->dev, fmt)
     211#define ac97_err(ac97, fmt, ...)        \
     212        dev_err((ac97)->bus->card->dev, fmt, ##__VA_ARGS__)
     213#define ac97_warn(ac97, fmt, ...)       \
     214        dev_warn((ac97)->bus->card->dev, fmt, ##__VA_ARGS__)
     215#define ac97_dbg(ac97, fmt, ...)        \
     216        dev_dbg((ac97)->bus->card->dev, fmt, ##__VA_ARGS__)
    217217#endif
    218218/*
     
    294294/**
    295295 * snd_ac97_read - read a value from the given register
    296  * 
     296 *
    297297 * @ac97: the ac97 instance
    298298 * @reg: the register to read
     
    631631};
    632632
    633 static const struct snd_kcontrol_new snd_ac97_control_capture_src = 
    634 AC97_ENUM("Capture Source", std_enum[0]); 
     633static const struct snd_kcontrol_new snd_ac97_control_capture_src =
     634AC97_ENUM("Capture Source", std_enum[0]);
    635635
    636636static const struct snd_kcontrol_new snd_ac97_control_capture_vol =
     
    699699        return 0;
    700700}
    701                        
     701
    702702static int snd_ac97_spdif_cmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
    703703{
     
    711711        return 0;
    712712}
    713                        
     713
    714714static int snd_ac97_spdif_pmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
    715715{
     
    734734        return 0;
    735735}
    736                        
     736
    737737static int snd_ac97_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
    738738{
     
    786786                v = new & (IEC958_AES0_CON_EMPHASIS_5015|IEC958_AES0_CON_NOT_COPYRIGHT) ? 0 : AC97_CXR_COPYRGT;
    787787                v |= new & IEC958_AES0_NONAUDIO ? AC97_CXR_SPDIF_AC3 : AC97_CXR_SPDIF_PCM;
    788                 change |= snd_ac97_update_bits_nolock(ac97, AC97_CXR_AUDIO_MISC, 
     788                change |= snd_ac97_update_bits_nolock(ac97, AC97_CXR_AUDIO_MISC,
    789789                                                      AC97_CXR_SPDIF_MASK | AC97_CXR_COPYRGT,
    790790                                                      v);
     
    13781378
    13791379        /* build center controls */
    1380         if ((snd_ac97_try_volume_mix(ac97, AC97_CENTER_LFE_MASTER)) 
     1380        if ((snd_ac97_try_volume_mix(ac97, AC97_CENTER_LFE_MASTER))
    13811381                && !(ac97->flags & AC97_AD_MULTI)) {
    13821382                if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_center[0], ac97))) < 0)
     
    14061406
    14071407        /* build surround controls */
    1408         if ((snd_ac97_try_volume_mix(ac97, AC97_SURROUND_MASTER)) 
     1408        if ((snd_ac97_try_volume_mix(ac97, AC97_SURROUND_MASTER))
    14091409                && !(ac97->flags & AC97_AD_MULTI)) {
    14101410                /* Surround Master (0x38) is with stereo mutes */
     
    14461446       
    14471447        /* build Beep controls */
    1448         if (!(ac97->flags & AC97_HAS_NO_PC_BEEP) && 
     1448        if (!(ac97->flags & AC97_HAS_NO_PC_BEEP) &&
    14491449                ((ac97->flags & AC97_HAS_PC_BEEP) ||
    14501450            snd_ac97_try_volume_mix(ac97, AC97_PC_BEEP))) {
     
    18441844                    (! modem && ! (pid->flags & AC97_MODEM_PATCH)))
    18451845                        pid->patch(ac97);
    1846         } 
     1846        }
    18471847
    18481848        pid = look_for_codec_id(snd_ac97_codec_ids, id);
     
    19321932 * The ops table must include valid callbacks (at least read and
    19331933 * write).  The other callbacks, wait and reset, are not mandatory.
    1934  * 
     1934 *
    19351935 * The clock is set to 48000.  If another clock is needed, set
    19361936 * ``(*rbus)->clock`` manually.
     
    20372037 * The template must include the codec number (num) and address (addr),
    20382038 * and the private data (private_data).
    2039  * 
     2039 *
    20402040 * The ac97 instance is registered as a low-level device, so you don't
    20412041 * have to release it manually.
     
    27772777}
    27782778
    2779 static const struct snd_kcontrol_new snd_ac97_alc_jack_detect = 
     2779static const struct snd_kcontrol_new snd_ac97_alc_jack_detect =
    27802780AC97_SINGLE("Jack Detect", AC97_ALC650_CLOCK, 5, 1, 0);
    27812781
  • GPL/branches/uniaud32-next/alsa-kernel/pci/hda/hda_generic.c

    r629 r637  
    18871887#else
    18881888#ifdef DEBUG_BADNESS
    1889 #define debug_badness(fmt)      codec_dbg(codec, fmt)
     1889#define debug_badness(fmt, ...) codec_dbg(codec, fmt, ##__VA_ARGS__)
    18901890#else
    18911891#define debug_badness(...)
  • GPL/branches/uniaud32-next/include/dbgos2.h

    r615 r637  
    6767#endif
    6868
     69void DevInt3(void);
     70#pragma aux DevInt3 = "int 3";
     71
    6972#endif //__COMMDBG_H__
    7073
  • GPL/branches/uniaud32-next/include/linux/bitops.h

    r615 r637  
    4141 * Undefined if no bit exists, so code should check against 0 first.
    4242 */
    43 static unsigned long __ffs(unsigned long word)
     43static inline unsigned long __ffs(unsigned long word)
    4444{
    4545        int num = 0;
     
    7878 * Undefined if no set bit exists, so code should check against 0 first.
    7979 */
    80 static unsigned long __fls(unsigned long word)
     80static inline unsigned long __fls(unsigned long word)
    8181{
    8282        int num = BITS_PER_LONG - 1;
  • GPL/branches/uniaud32-next/include/linux/kernel.h

    r615 r637  
    9797int strict_strtoul(const char *, unsigned int, unsigned long *);
    9898
    99 #define BUG_ON(condition) 
    100 #define WARN_ON(condition) 0
    101 #define WARN_ON_ONCE(condition) 0
     99#define BUG_ON(condition)
     100#define WARN_ON(condition) (void)0
     101#define WARN_ON_ONCE(condition) (void)0
    102102#define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d))
    103103#define SIZE_MAX        (~(size_t)0)
  • GPL/branches/uniaud32-next/include/linux/platform_device.h

    r305 r637  
    9494                drv->driver.remove = snd_platform_driver_remove;
    9595        if (drv->suspend)
    96                 drv->driver.suspend = snd_platform_driver_suspend;
     96                drv->driver.suspend = (int(*)(struct device *,unsigned int))snd_platform_driver_suspend;
    9797        if (drv->resume)
    9898                drv->driver.resume = snd_platform_driver_resume;
  • GPL/branches/uniaud32-next/include/linux/printk.h

    r615 r637  
    88#define pr_warn pr_warning
    99#else
    10 #define pr_debug
    11 #define pr_err 
     10#define pr_debug(...)
     11#define pr_err(...)
    1212#define pr_info printk
    1313#define pr_warning printk
  • GPL/branches/uniaud32-next/lib32/pci.c

    r635 r637  
    506506    int iTableIx;
    507507
    508     rprintf(("pci_register_driver: query_device found %x %x:%x class=%x checking %s",
     508    rprintf((__func__": query_device found %x %x:%x class=%x checking %s",
    509509      ulLast, pcidev->vendor, pcidev->device, pcidev->class, driver->name));
    510510
     
    525525      usDevice = pcidev->device;
    526526
    527       rprintf(("pci_register_driver: matched %d %x:%x/%x with %x:%x/%x %x (%s)", iTableIx,
     527      rprintf((__func__": matched %d %x:%x/%x with %x:%x/%x %x (%s)", iTableIx,
    528528        pcidev->vendor, pcidev->device, pcidev->class,
    529529        pDriverId->vendor, pDriverId->device, pDriverId->class, pDriverId->class_mask, driver->name));
     
    531531      if ((iAdapterNumber >= 0) && (iAdapter < iAdapterNumber))
    532532      {
    533         rprintf(("iAdapterNumber=%x skipping iAdapter=%x", iAdapterNumber, iAdapter));
     533        rprintf((__func__": AdapterNumber=%x skipping Adapter=%x", iAdapterNumber, iAdapter));
    534534        iAdapter++;
    535535        continue;
  • GPL/branches/uniaud32-next/tools/AddToFile.cmd

    r615 r637  
    33 * Written by and Copyright (c) 2010-2018 David Azarewicz http://88watts.net
    44 *
    5  * @#D Azarewicz:1.02#@##1## 15 Nov 2018              DAZAR1    ::::::@@AddToFile.cmd (c) David Azarewicz 2018
     5 * @#D Azarewicz:1.04#@##1## 02 Jan 2021              DAZAR1    ::::::@@AddToFile.cmd (c) David Azarewicz 2021
    66 * V1.01 16-Sep-2016 First official release
    77 * V1.02 02-Jun-2017 Added Asd to bldlevel, added DATE1
     8 * V1.03 02-Mar-2020 Added STRING function
     9 * V1.04 02-Jan-2021 Added FILESIZE function
    810 *
    911 * The following line is for the help sample code for the VAR function:
     
    2729  Say '  VERSIONMINOR - Adds the minor portion of the provided version number.';
    2830  Say '  VERSIONREVISION - Adds the revision portion of the provided version number.';
     31  Say '  STRING - Adds the string with %Y substitution.';
    2932  Say '  VAR - Adds the value of the specified variable from a specified file.';
     33  Say '  FILESIZE - Adds the file size.';
    3034  Say '  FILE - Adds the contents of a file.';
    3135  Say 'Examples:';
     
    5357  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    5458  call 'AddToFile.cmd' MyCmd;
    55   MyCmd=MyFile||',#define DVMAJ,VERSIONMAJOR,1.2.3';
    56   rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    57   call 'AddToFile.cmd' MyCmd;
    58   MyCmd=MyFile||',#define DVMIN,VERSIONMINOR,1.2.3';
    59   rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    60   call 'AddToFile.cmd' MyCmd;
    61   MyCmd=MyFile||',#define DVREV,VERSIONREVISION,1.2.3';
     59  MyCmd=MyFile||',#define DVMAJ,VERSIONMAJOR,1.02.03';
     60  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
     61  call 'AddToFile.cmd' MyCmd;
     62  MyCmd=MyFile||',#define DVMIN,VERSIONMINOR,1.02.03';
     63  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
     64  call 'AddToFile.cmd' MyCmd;
     65  MyCmd=MyFile||',#define DVREV,VERSIONREVISION,1.02.03';
     66  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
     67  call 'AddToFile.cmd' MyCmd;
     68  MyCmd=MyFile||',#define DSTRING,STRING,The year is %Y';
    6269  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    6370  call 'AddToFile.cmd' MyCmd;
    6471  MyCmd=MyFile||',#define XYZ "%A",VAR,EXAMPLEVAR=,AddToFile.cmd';
     72  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
     73  call 'AddToFile.cmd' MyCmd;
     74  MyCmd=MyFile||',#define FSIZE,FILESIZE,addtofile.cmd';
    6575  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    6676  call 'AddToFile.cmd' MyCmd;
     
    8797
    8898  when (LEFT(Function,8)='BLDLEVEL') then do
     99    /*  option description,BLDLEVEL,Vendor,1.2.3,Description,Fixpack,Asd';
     100     *  String            ,Function,Parm1 ,Parm2,Parm3      ,Parm4  ,Parm5
     101     */
    89102    Type=SUBSTR(Function,9,1);
    90103
     
    106119    end
    107120
     121    /*           Vendor     TextVersion        Date/Time/Host    ASD            Revision         Fixpack      Desc */
    108122    NewStr='@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||':'||Parm5||':::'||ProjVersion||'::'||Parm4||'@@'||Parm3;
    109123    if (Type='2') then do
     
    183197    if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2);
    184198    else OutStr=String||' '||NewStr;
     199    rc=lineout(OutFile, OutStr);
     200    rc=lineout(OutFile);
     201  end
     202
     203  when (Function="STRING") then do
     204    RepLoc=Pos('%Y', Parm1);
     205    if (RepLoc>0) then do
     206      Parm1=Substr(Parm1,1,RepLoc-1)||FORMAT(SUBSTR(DATE('S'), 1, 4))||Substr(Parm1,RepLoc+2);
     207    end
     208    RepLoc=Pos('%A', String);
     209    if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||Parm1||Substr(String,RepLoc+2);
     210    else OutStr=String||' '||Parm1;
    185211    rc=lineout(OutFile, OutStr);
    186212    rc=lineout(OutFile);
     
    192218    end;
    193219    rc=stream(String,'c','close');
     220    rc=lineout(OutFile);
     221  end
     222
     223  when (Function="FILESIZE") then do
     224    NewStr=stream(Parm1,'c','query size');
     225    RepLoc=Pos('%A', String);
     226    if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2);
     227    else OutStr=String||' '||NewStr;
     228    rc=lineout(OutFile, OutStr);
    194229    rc=lineout(OutFile);
    195230  end
  • GPL/branches/uniaud32-next/tools/mkversion.cmd

    r587 r637  
    6969parse value versionIn with major'.'minor'.'projVersion
    7070
    71 if fixpack="" then
    72   projVers = versionIn;
    73 else
    74   projVers = versionIn||'-'||fixpack;
    75 
    7671projVers2 = major||minor||projVersion;
    7772
     
    9388  say 'alsalevel='||alsalevel;
    9489  say 'ProjVersion='||ProjVersion;
    95   say 'projVers='||projVers;
    9690  say 'projVers2='||projVers2;
    9791  say 'Fixpack='||Fixpack;
     
    140134    call lineout versHdr, '#define VENDOR_NAME             "'||projVendor||'"';
    141135    call lineout versHdr, '#define PRODUCT_TIMESTAMP       '||projDate2||'       // YYYYMMDD';
    142     call lineout versHdr, '#define UNIAUD_VERSION          "'||projVers||'"';
     136    call lineout versHdr, '#define UNIAUD_VERSION          "'||versionIn||'"';
    143137    call lineout versHdr, '#define ALSA_VERSION            "'||alsalevel||'"';
    144138    call lineout versHdr, ' '
  • GPL/branches/uniaud32-next/uniaud.inc

    r615 r637  
    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.05
     9BUILDVERSION = 3.01.01
    1010
    1111# Fixpack version
Note: See TracChangeset for help on using the changeset viewer.