Ignore:
Timestamp:
May 1, 2010, 9:49:10 PM (15 years ago)
Author:
David Azarewicz
Message:

Cleanup compiler warnings

Location:
GPL/trunk/alsa-kernel/pci
Files:
4 edited

Legend:

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

    r464 r479  
    1717 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    1818 */
    19  
     19
    2020/* Does not work. Warning may block system in capture mode */
    2121/* #define USE_VAR48KRATE */
     
    13001300                    substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE &&
    13011301                    substream->runtime->channels == 2);
    1302         if (do_spdif && cm->can_ac3_hw) 
     1302        if (do_spdif && cm->can_ac3_hw)
    13031303                do_ac3 = cm->dig_pcm_status & IEC958_AES0_NONAUDIO;
    13041304        if ((err = setup_spdif_playback(cm, substream, do_spdif, do_ac3)) < 0)
     
    13131313        int err, do_ac3;
    13141314
    1315         if (cm->can_ac3_hw) 
     1315        if (cm->can_ac3_hw)
    13161316                do_ac3 = cm->dig_pcm_status & IEC958_AES0_NONAUDIO;
    13171317        else
     
    20362036        return 0;
    20372037}
    2038  
     2038
    20392039static int snd_cmipci_get_volume(struct snd_kcontrol *kcontrol,
    20402040                                 struct snd_ctl_elem_value *ucontrol)
     
    21182118        return 0;
    21192119}
    2120  
     2120
    21212121static int snd_cmipci_get_input_sw(struct snd_kcontrol *kcontrol,
    21222122                                   struct snd_ctl_elem_value *ucontrol)
     
    23862386        else
    23872387                val = snd_cmipci_read(cm, args->reg);
    2388         change = (val & args->mask) != (ucontrol->value.integer.value[0] ? 
     2388        change = (val & args->mask) != (ucontrol->value.integer.value[0] ?
    23892389                        args->mask_on : (args->mask & ~args->mask_on));
    23902390        if (change) {
     
    25892589        /* same bit as spdi_phase */
    25902590        spin_lock_irq(&cm->reg_lock);
    2591         ucontrol->value.enumerated.item[0] = 
     2591        ucontrol->value.enumerated.item[0] =
    25922592                (snd_cmipci_read_b(cm, CM_REG_MISC) & CM_SPDIF_INVERSE) ? 1 : 0;
    25932593        spin_unlock_irq(&cm->reg_lock);
     
    27832783
    27842784#ifdef CONFIG_PROC_FS
    2785 static void snd_cmipci_proc_read(struct snd_info_entry *entry, 
     2785static void snd_cmipci_proc_read(struct snd_info_entry *entry,
    27862786                                 struct snd_info_buffer *buffer)
    27872787{
     
    31323132        case PCI_DEVICE_ID_CMEDIA_CM8738:
    31333133        case PCI_DEVICE_ID_CMEDIA_CM8738B:
    3134                 if (!pci_dev_present(intel_82437vx)) 
     3134                if (!pci_dev_present(intel_82437vx))
    31353135                        snd_cmipci_set_bit(cm, CM_REG_MISC_CTRL, CM_TXVX);
    31363136                break;
  • GPL/trunk/alsa-kernel/pci/emu10k1/emufx.c

    r426 r479  
    4040#include <sound/tlv.h>
    4141#include <sound/emu10k1.h>
     42#include <proto.h>
    4243
    4344#if 0           /* for testing purposes - digital out -> capture */
     
    5354/*
    5455 *  Tables
    55  */ 
     56 */
    5657
    5758static char *fxbuses[16] = {
     
    304305/*
    305306 */
    306  
     307
    307308static inline mm_segment_t snd_enter_user(void)
    308309{
     
    12561257        snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Capture Volume", gpr, 0);
    12571258        gpr += 2;
    1258      
     1259
    12591260        /*
    12601261         * inputs
     
    13321333                                        gpr, 0);
    13331334        gpr += 2;
    1334        
     1335
    13351336        /* Philips ADC Playback Volume */
    13361337        A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_ADC_L);
     
    15301531        }
    15311532
    1532         /* IEC958 Optical Raw Playback Switch */ 
     1533        /* IEC958 Optical Raw Playback Switch */
    15331534        gpr_map[gpr++] = 0;
    15341535        gpr_map[gpr++] = 0x1008;
     
    15701571                        snd_printk(KERN_INFO "EMU2 inputs on\n");
    15711572                        for (z = 0; z < 0x10; z++) {
    1572                                 snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, 
     1573                                snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp,
    15731574                                                                        bit_shifter16,
    15741575                                                                        A3_EMU32IN(z),
     
    22952296                 * and EXTOUT_ALFE, so we can't connect inputs to them for multitrack recording.
    22962297                 *
    2297                  * Since only 14 of the 16 EXTINs are used, this is not a big problem. 
    2298                  * We route AC97L and R to FX capture 14 and 15, SPDIF CD in to FX capture 
    2299                  * 0 and 3, then the rest of the EXTINs to the corresponding FX capture 
    2300                  * channel.  Multitrack recorders will still see the center/lfe output signal 
     2298                 * Since only 14 of the 16 EXTINs are used, this is not a big problem.
     2299                 * We route AC97L and R to FX capture 14 and 15, SPDIF CD in to FX capture
     2300                 * 0 and 3, then the rest of the EXTINs to the corresponding FX capture
     2301                 * channel.  Multitrack recorders will still see the center/lfe output signal
    23012302                 * on the second and third channels.
    23022303                 */
     
    23112312                        OP(icode, &ptr, iACC3, FXBUS2(z), C_00000000, C_00000000, EXTIN(z));
    23122313        }
    2313            
     2314       
    23142315
    23152316        if (gpr > tmp) {
  • GPL/trunk/alsa-kernel/pci/emu10k1/io.c

    r426 r479  
    102102EXPORT_SYMBOL(snd_emu10k1_ptr_write);
    103103
    104 unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu, 
    105                                           unsigned int reg, 
     104unsigned int snd_emu10k1_ptr20_read(struct snd_emu10k1 * emu,
     105                                          unsigned int reg,
    106106                                          unsigned int chn)
    107107{
    108108        unsigned long flags;
    109109        unsigned int regptr, val;
    110  
     110
    111111        regptr = (reg << 16) | chn;
    112112
     
    118118}
    119119
    120 void snd_emu10k1_ptr20_write(struct snd_emu10k1 *emu, 
    121                                    unsigned int reg, 
    122                                    unsigned int chn, 
     120void snd_emu10k1_ptr20_write(struct snd_emu10k1 *emu,
     121                                   unsigned int reg,
     122                                   unsigned int chn,
    123123                                   unsigned int data)
    124124{
     
    245245                err = -EINVAL;
    246246        }
    247    
     247
    248248        spin_unlock(&emu->i2c_lock);
    249249        return err;
     
    257257                return 1;
    258258        reg += 0x40; /* 0x40 upwards are registers. */
    259         if (value < 0 || value > 0x3f) /* 0 to 0x3f are values */
     259        if (value > 0x3f) /* 0 to 0x3f are values */
    260260                return 1;
    261261        spin_lock_irqsave(&emu->emu_lock, flags);
  • GPL/trunk/alsa-kernel/pci/hda/hda_codec.c

    r464 r479  
    432432 * process queued unsolicited events
    433433 */
     434#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
    434435static void process_unsol_events(struct work_struct *work)
    435436{
     
    453454        }
    454455}
     456#endif
    455457
    456458/*
     
    615617                return NULL; /* use the generic parser */
    616618
     619#ifndef TARGET_OS2
    617620 again:
     621#endif
    618622        mutex_lock(&preset_mutex);
    619623        list_for_each_entry(tbl, &hda_preset_tables, list, struct hda_codec_preset_list) {
     
    25012505                if (err < 0) {
    25022506                        printk(KERN_ERR "hda_codec: cannot build controls"
    2503                                "for #%d (error %d)\n", codec->addr, err); 
     2507                               "for #%d (error %d)\n", codec->addr, err);
    25042508                        err = snd_hda_codec_reset(codec);
    25052509                        if (err < 0) {
     
    29632967                if (err < 0) {
    29642968                        printk(KERN_ERR "hda_codec: cannot build PCMs"
    2965                                "for #%d (error %d)\n", codec->addr, err); 
     2969                               "for #%d (error %d)\n", codec->addr, err);
    29662970                        err = snd_hda_codec_reset(codec);
    29672971                        if (err < 0) {
     
    34003404        /* turn off SPDIF once; otherwise the IEC958 bits won't be updated */
    34013405        if (codec->spdif_status_reset && (codec->spdif_ctls & AC_DIG1_ENABLE))
    3402                 set_dig_out_convert(codec, nid, 
     3406                set_dig_out_convert(codec, nid,
    34033407                                    codec->spdif_ctls & ~AC_DIG1_ENABLE & 0xff,
    34043408                                    -1);
     
    36603664 * output, i.e. to line_out_pins[0].  So, line_outs is always positive
    36613665 * if any analog output exists.
    3662  * 
     3666 *
    36633667 * The analog input pins are assigned to input_pins array.
    36643668 * The digital input/output pins are assigned to dig_in_pin and dig_out_pin,
Note: See TracChangeset for help on using the changeset viewer.