Changeset 206 for GPL/branches/alsa-resync1/alsa-kernel/pci
- Timestamp:
 - Jun 17, 2007, 1:16:58 AM (18 years ago)
 - Location:
 - GPL/branches/alsa-resync1/alsa-kernel/pci
 - Files:
 - 
      
- 16 edited
 
- 
          
  ac97/ac97_codec.c (modified) (4 diffs)
 - 
          
  ac97/ac97_patch.c (modified) (1 diff)
 - 
          
  ali5451/ali5451.c (modified) (3 diffs)
 - 
          
  cmipci.c (modified) (8 diffs)
 - 
          
  cs4281.c (modified) (3 diffs)
 - 
          
  emu10k1/emu10k1x.c (modified) (1 diff)
 - 
          
  emu10k1/emuproc.c (modified) (1 diff)
 - 
          
  emu10k1/irq.c (modified) (1 diff)
 - 
          
  es1968.c (modified) (1 diff)
 - 
          
  fm801.c (modified) (3 diffs)
 - 
          
  hda/hda_intel.c (modified) (1 diff)
 - 
          
  intel8x0.c (modified) (2 diffs)
 - 
          
  maestro3.c (modified) (1 diff)
 - 
          
  trident/trident.c (modified) (1 diff)
 - 
          
  trident/trident_main.c (modified) (5 diffs)
 - 
          
  via82xx.c (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/ac97/ac97_codec.c
r86 r206 1931 1931 } 1932 1932 1933 #if 0 // fixme to be gone? 1933 1934 /* stop no dev release warning */ 1934 1935 static void ac97_device_release(struct device * dev) 1935 1936 { 1936 1937 } 1938 #endif // fixme to be gone? 1937 1939 1938 1940 /* register ac97 codec to bus */ 1939 1941 static int snd_ac97_dev_register(struct snd_device *device) 1940 1942 { 1941 #if 0 1943 #if 0 // fixme to be gone? 1942 1944 struct snd_ac97 *ac97 = device->device_data; 1943 1945 int err; … … 1954 1956 return err; 1955 1957 } 1956 #endif 1958 #endif // fixme to be gone? 1957 1959 return 0; 1958 1960 } … … 2321 2323 power |= AC97_PD_PR2 | AC97_PD_PR3; /* Analog Mixer powerdown */ 2322 2324 snd_ac97_write(ac97, AC97_POWERDOWN, power); 2325 #ifdef CONFIG_SND_AC97_POWER_SAVE 2323 2326 if (ac97_is_power_save_mode(ac97)) { 2324 2327 udelay(100); … … 2328 2331 snd_ac97_write(ac97, AC97_POWERDOWN, power); 2329 2332 } 2333 #endif // CONFIG_SND_AC97_POWER_SAVE 2330 2334 } 2331 2335  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/ac97/ac97_patch.c
r86 r206 2081 2081 unsigned short val; 2082 2082 2083 if (ucontrol->value.enumerated.item[0] > 3 2084 || ucontrol->value.enumerated.item[0] < 0) 2083 // if (ucontrol->value.enumerated.item[0] > 3 // 12 Jun 07 SHL 2084 // || ucontrol->value.enumerated.item[0] < 0) // 12 Jun 07 SHL 2085 if (ucontrol->value.enumerated.item[0] > 3) 2085 2086 return -EINVAL; 2086 2087 val = ctrl2reg[ucontrol->value.enumerated.item[0]]  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/ali5451/ali5451.c
r92 r206 1805 1805 { SNDRV_CTL_ELEM_IFACE_MIXER, 0,0, xname, xindex,\ 1806 1806 0, 0, snd_ali5451_spdif_info, snd_ali5451_spdif_get, \ 1807 snd_ali5451_spdif_put, value}1807 snd_ali5451_spdif_put, 0, value} 1808 1808 #else 1809 1809 #define ALI5451_SPDIF(xname, xindex, value) \ … … 1930 1930 int err; 1931 1931 static ac97_bus_ops_t ops = { 1932 0,snd_ali_codec_write, 1932 0,0, 1933 snd_ali_codec_write, 1933 1934 snd_ali_codec_read,0,0 1934 1935 }; … … 2038 2039 if (codec->hw_initialized) 2039 2040 snd_ali_disable_address_interrupt(codec); 2040 if (codec->irq >= 0) {2041 // if (codec->irq >= 0) { // 12 Jun 07 SHL avoid warning 2041 2042 synchronize_irq(codec->irq); 2042 2043 free_irq(codec->irq, (void *)codec); 2043 }2044 // } // 12 Jun 07 SHL 2044 2045 if (codec->port) 2045 2046 pci_release_regions(codec->pci);  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/cmipci.c
r77 r206 1842 1842 0, 0, snd_cmipci_info_volume, \ 1843 1843 snd_cmipci_get_volume, snd_cmipci_put_volume, \ 1844 0,\ 1844 1845 COMPOSE_SB_REG(left_reg, right_reg, left_shift, right_shift, mask, invert, stereo), \ 1845 1846 } … … 1943 1944 0, 0, snd_cmipci_info_input_sw, \ 1944 1945 snd_cmipci_get_input_sw, snd_cmipci_put_input_sw, \ 1946 0, \ 1945 1947 COMPOSE_SB_REG(SB_DSP4_INPUT_LEFT, SB_DSP4_INPUT_RIGHT, left_shift, right_shift, 1, 0, 1), \ 1946 1948 } … … 2007 2009 0, 0, snd_cmipci_info_native_mixer, \ 2008 2010 snd_cmipci_get_native_mixer, snd_cmipci_put_native_mixer, \ 2011 0, \ 2009 2012 COMPOSE_SB_REG(reg, reg, lshift, rshift, 1, invert, 1), \ 2010 2013 } … … 2014 2017 0, 0, snd_cmipci_info_native_mixer, \ 2015 2018 snd_cmipci_get_native_mixer, snd_cmipci_put_native_mixer, \ 2019 0, \ 2016 2020 COMPOSE_SB_REG(reg, reg, shift, shift, 1, invert, 0), \ 2017 2021 } … … 2021 2025 0, 0, snd_cmipci_info_native_mixer, \ 2022 2026 snd_cmipci_get_native_mixer, snd_cmipci_put_native_mixer, \ 2027 0, \ 2023 2028 COMPOSE_SB_REG(reg, reg, lshift, rshift, mask, 0, 1), \ 2024 2029 } … … 2028 2033 0, 0, snd_cmipci_info_native_mixer, \ 2029 2034 snd_cmipci_get_native_mixer, snd_cmipci_put_native_mixer, \ 2035 0, \ 2030 2036 COMPOSE_SB_REG(reg, reg, shift, shift, mask, 0, 0), \ 2031 2037 } … … 2128 2134 snd_cmipci_get_native_mixer_sensitive, 2129 2135 snd_cmipci_put_native_mixer_sensitive, 2136 0, 2130 2137 COMPOSE_SB_REG(CM_REG_MIXER1, CM_REG_MIXER1, CM_WSMUTE_SHIFT, CM_WSMUTE_SHIFT, 1, 1, 0), 2131 2138 }, … … 2303 2310 snd_cmipci_uswitch_get, \ 2304 2311 snd_cmipci_uswitch_put, \ 2312 0, \ 2305 2313 (unsigned long)&cmipci_switch_arg_##sarg,\ 2306 2314 }  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/cs4281.c
r77 r206 1102 1102 static snd_kcontrol_new_t snd_cs4281_fm_vol = 1103 1103 { 1104 /* .iface = */SNDRV_CTL_ELEM_IFACE_MIXER,0,0,1105 /* .name = */"Synth Playback Volume",0,0,0,1106 /* .info = */snd_cs4281_info_volume,1107 /* .get = */snd_cs4281_get_volume,1108 /* .put = */snd_cs4281_put_volume,1109 /* .private_value = */((BA0_FMLVC << 16) | BA0_FMRVC),1104 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1105 .name = "Synth Playback Volume", 1106 .info = snd_cs4281_info_volume, 1107 .get = snd_cs4281_get_volume, 1108 .put = snd_cs4281_put_volume, 1109 .private_value = ((BA0_FMLVC << 16) | BA0_FMRVC) 1110 1110 }; 1111 1111 1112 1112 static snd_kcontrol_new_t snd_cs4281_pcm_vol = 1113 1113 { 1114 /* .iface = */SNDRV_CTL_ELEM_IFACE_MIXER,0,0,1115 /* .name = */"PCM Stream Playback Volume",0,0,0,1116 /* .info = */snd_cs4281_info_volume,1117 /* .get = */snd_cs4281_get_volume,1118 /* .put = */snd_cs4281_put_volume,1119 /* .private_value = */ ((BA0_PPLVC << 16) | BA0_PPRVC),1114 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1115 .name = "PCM Stream Playback Volume", 1116 .info = snd_cs4281_info_volume, 1117 .get = snd_cs4281_get_volume, 1118 .put = snd_cs4281_put_volume, 1119 .private_value = ((BA0_PPLVC << 16) | BA0_PPRVC) 1120 1120 }; 1121 1121 … … 1142 1142 int err; 1143 1143 static ac97_bus_ops_t ops = { 1144 0, 1144 0,0, 1145 1145 snd_cs4281_ac97_write, 1146 1146 snd_cs4281_ac97_read, … … 1935 1935 1936 1936 if (cmd & OPL3_RIGHT) 1937 port = ( unsigned long)chip->ba0 + BA0_B1AP; /* right port */1937 port = (void *)chip->ba0 + BA0_B1AP; /* right port */ 1938 1938 else 1939 port = ( unsigned long)chip->ba0 + BA0_B0AP; /* left port */1939 port = (void *)chip->ba0 + BA0_B0AP; /* left port */ 1940 1940 1941 1941 spin_lock_irqsave(&opl3->reg_lock, flags);  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/emu10k1/emu10k1x.c
r84 r206 780 780 } 781 781 782 static irqreturn_t snd_emu10k1x_interrupt(int irq, void *dev_id )782 static irqreturn_t snd_emu10k1x_interrupt(int irq, void *dev_id, struct pt_regs *unused) 783 783 { 784 784 unsigned int status;  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/emu10k1/emuproc.c
r34 r206 176 176 177 177 struct snd_emu10k1 *emu = entry->private_data; 178 unsigned int val ;178 unsigned int val = 0; // 11 Jun 07 SHL fixme to know why not used 179 179 int nefx = emu->audigy ? 64 : 32; 180 180 char **outputs = emu->audigy ? audigy_outs : creative_outs;  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/emu10k1/irq.c
r84 r206 32 32 #include <sound/emu10k1.h> 33 33 34 irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id )34 irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id, struct pt_regs *notused) 35 35 { 36 36 struct snd_emu10k1 *emu = dev_id;  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/es1968.c
r112 r206 2053 2053 int err; 2054 2054 static ac97_bus_ops_t ops = { 2055 0, snd_es1968_ac97_write,2055 0, 0, snd_es1968_ac97_write, 2056 2056 snd_es1968_ac97_read,0,0 2057 2057 };  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/fm801.c
r77 r206 1002 1002 { SNDRV_CTL_ELEM_IFACE_MIXER, 0,0, xname, 0,0,0, snd_fm801_info_single, \ 1003 1003 snd_fm801_get_single, snd_fm801_put_single, \ 1004 reg | (shift << 8) | (mask << 16) | (invert << 24) }1004 0, reg | (shift << 8) | (mask << 16) | (invert << 24) } 1005 1005 1006 1006 static int snd_fm801_info_single(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) … … 1047 1047 { SNDRV_CTL_ELEM_IFACE_MIXER, 0,0, xname, 0,0,0, snd_fm801_info_double, \ 1048 1048 snd_fm801_get_double, snd_fm801_put_double, \ 1049 reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) }1049 0, reg | (shift_left << 8) | (shift_right << 12) | (mask << 16) | (invert << 24) } 1050 1050 1051 1051 static int snd_fm801_info_double(snd_kcontrol_t *kcontrol, snd_ctl_elem_info_t * uinfo) … … 1189 1189 int err; 1190 1190 static ac97_bus_ops_t ops = { 1191 0, snd_fm801_codec_write,1191 0, 0, snd_fm801_codec_write, 1192 1192 snd_fm801_codec_read, 0,0 1193 1193 };  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/hda/hda_intel.c
r86 r206 398 398 * Compiler should optimize and eliminate the code if dma_addr_t is 32bit 399 399 */ 400 #define upper_32bit(addr) (sizeof(addr) > 4 ? (u32)(( addr) >> 32) : (u32)0)400 #define upper_32bit(addr) (sizeof(addr) > 4 ? (u32)(((unsigned long long)addr) >> 32) : (u32)0) 401 401 402 402 static int azx_acquire_irq(struct azx *chip, int do_disconnect);  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/intel8x0.c
r88 r206 3238 3238 } 3239 3239 3240 #if 0 // fixme to be gone? 3240 3241 static void __devexit snd_intel8x0_joystick_remove(struct pci_dev *pci) 3241 3242 { … … 3253 3254 pci_write_config_word(pci, 0xe6, val); 3254 3255 } 3256 #endif // fixme to be gone 3255 3257 3256 3258 static struct pci_device_id snd_intel8x0_joystick_ids[] = {  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/maestro3.c
r106 r206 2134 2134 int err; 2135 2135 static ac97_bus_ops_t ops = { 2136 0,snd_m3_ac97_write,2137 snd_m3_ac97_read,0,02136 .write = snd_m3_ac97_write, 2137 .read = snd_m3_ac97_read 2138 2138 }; 2139 2139  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/trident/trident.c
r92 r206 79 79 MODULE_DEVICE_TABLE(pci, snd_trident_ids); 80 80 81 // 12 Jun 07 SHL fixme to be in some .h 82 void __devinit snd_trident_gameport(struct snd_trident *chip); 83 81 84 static int __devinit snd_trident_probe(struct pci_dev *pci, 82 85 const struct pci_device_id *pci_id)  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/trident/trident_main.c
r106 r206 152 152 153 153 /*--------------------------------------------------------------------------- 154 void snd_trident_codec_write(ac97_t *ac97, unsigned short reg, unsigned short wdata )154 void snd_trident_codec_write(ac97_t *ac97, unsigned short reg, unsigned short wdata unsigned short unused) 155 155 156 156 Description: This routine will do all of the writing to the external … … 2362 2362 snd_trident_spdif_control_get, 2363 2363 snd_trident_spdif_control_put, 2364 0, 2364 2365 0x28, 2365 2366 }; … … 2574 2575 snd_trident_ac97_control_get, 2575 2576 snd_trident_ac97_control_put, 2577 0, 2576 2578 4, 2577 2579 }; … … 2630 2632 snd_trident_vol_control_get, 2631 2633 snd_trident_vol_control_put, 2632 16, 2634 0, // tlv 2635 16 // private 2633 2636 }; 2634 2637 … … 2947 2950 int idx, err, retries = 2; 2948 2951 static ac97_bus_ops_t ops = { 2949 0,snd_trident_codec_write, 2950 snd_trident_codec_read,0,0 2952 0, // reset 2953 0, // warm_reset 2954 snd_trident_codec_write, 2955 snd_trident_codec_read, 2956 0, // wait 2957 0 // init 2951 2958 }; 2952 2959 uctl = kcalloc(1, sizeof(*uctl), GFP_KERNEL);  - 
      
GPL/branches/alsa-resync1/alsa-kernel/pci/via82xx.c
r85 r206 618 618 * Used for 686 and 8233A 619 619 */ 620 static irqreturn_t snd_via686_interrupt(int irq, void *dev_id )620 static irqreturn_t snd_via686_interrupt(int irq, void *dev_id, struct pt_regs *unused) 621 621 { 622 622 struct via82xx *chip = dev_id; … … 664 664 * Interrupt handler 665 665 */ 666 static irqreturn_t snd_via8233_interrupt(int irq, void *dev_id )666 static irqreturn_t snd_via8233_interrupt(int irq, void *dev_id,struct pt_regs *unused) 667 667 { 668 668 struct via82xx *chip = dev_id; … … 2311 2311 if (request_irq(pci->irq, 2312 2312 chip_type == TYPE_VIA8233 ? 2313 snd_via8233_interrupt :snd_via686_interrupt,2313 snd_via8233_interrupt : snd_via686_interrupt, 2314 2314 SA_INTERRUPT|SA_SHIRQ, 2315 2315 card->driver, chip)) {  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  