Changeset 77 for GPL/trunk/alsa-kernel/include/sound
- Timestamp:
- Jul 23, 2006, 11:54:27 AM (19 years ago)
- Location:
- GPL/trunk/alsa-kernel/include/sound
- Files:
-
- 5 edited
-
ac97_codec.h (modified) (8 diffs)
-
asound.h (modified) (3 diffs)
-
compat_22.h (modified) (1 diff)
-
control.h (modified) (2 diffs)
-
mpu401.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/ac97_codec.h
r76 r77 32 32 #include "info.h" 33 33 34 #define CONFIG_SND_AC97_POWER_SAVE /* experimental !!! */ 34 35 /* 35 36 * AC'97 codec registers … … 141 142 #define AC97_GP_DRSS_78 0x0400 /* LR 7+8 */ 142 143 144 /* powerdown bits */ 145 #define AC97_PD_ADC_STATUS 0x0001 /* ADC status (RO) */ 146 #define AC97_PD_DAC_STATUS 0x0002 /* DAC status (RO) */ 147 #define AC97_PD_MIXER_STATUS 0x0004 /* Analog mixer status (RO) */ 148 #define AC97_PD_VREF_STATUS 0x0008 /* Vref status (RO) */ 149 #define AC97_PD_PR0 0x0100 /* Power down PCM ADCs and input MUX */ 150 #define AC97_PD_PR1 0x0200 /* Power down PCM front DAC */ 151 #define AC97_PD_PR2 0x0400 /* Power down Mixer (Vref still on) */ 152 #define AC97_PD_PR3 0x0800 /* Power down Mixer (Vref off) */ 153 #define AC97_PD_PR4 0x1000 /* Power down AC-Link */ 154 #define AC97_PD_PR5 0x2000 /* Disable internal clock usage */ 155 #define AC97_PD_PR6 0x4000 /* Headphone amplifier */ 156 #define AC97_PD_EAPD 0x8000 /* External Amplifer Power Down (EAPD) */ 157 143 158 /* extended audio ID bit defines */ 144 159 #define AC97_EI_VRA 0x0001 /* Variable bit rate supported */ … … 266 281 /* specific - Analog Devices */ 267 282 #define AC97_AD_TEST 0x5a /* test register */ 283 #define AC97_AD_TEST2 0x5c /* undocumented test register 2 */ 268 284 #define AC97_AD_CODEC_CFG 0x70 /* codec configuration */ 269 285 #define AC97_AD_JACK_SPDIF 0x72 /* Jack Sense & S/PDIF */ … … 359 375 #define AC97_SCAP_DETECT_BY_VENDOR (1<<8) /* use vendor registers for read tests */ 360 376 #define AC97_SCAP_NO_SPDIF (1<<9) /* don't build SPDIF controls */ 377 #define AC97_SCAP_EAPD_LED (1<<10) /* EAPD as mute LED */ 361 378 362 379 /* ac97->flags */ … … 379 396 #define AC97_HAS_NO_TONE (1<<16) /* no Tone volume */ 380 397 #define AC97_HAS_NO_STD_PCM (1<<17) /* no standard AC97 PCM volume and mute */ 398 #define AC97_HAS_NO_AUX (1<<18) /* no standard AC97 AUX volume and mute */ 381 399 382 400 /* rates indexes */ … … 489 507 /* jack-sharing info */ 490 508 unsigned char indep_surround; 491 unsigned char channel_mode; 509 unsigned char channel_mode; 510 511 #ifdef CONFIG_SND_AC97_POWER_SAVE 512 unsigned int power_up; /* power states */ 513 struct workqueue_struct *power_workq; 514 struct work_struct power_work; 515 #endif 492 516 struct device dev; 493 517 }; … … 531 555 int snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short value); 532 556 int snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value); 557 #ifdef CONFIG_SND_AC97_POWER_SAVE 558 int snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup); 559 #else 560 static inline int snd_ac97_update_power(struct snd_ac97 *ac97, int reg, 561 int powerup) 562 { 563 return 0; 564 } 565 #endif 533 566 #ifdef CONFIG_PM 534 567 void snd_ac97_suspend(struct snd_ac97 *ac97); … … 588 621 unsigned int spdif; /* spdif pcm */ 589 622 #endif 590 unsigned short aslots; /* active slots */ 591 unsigned int rates; /* available rates */ 623 unsigned short aslots; /* active slots */ 624 unsigned short cur_dbl; /* current double-rate state */ 625 unsigned int rates; /* available rates */ 592 626 struct { 593 627 unsigned short slots; /* driver input: requested AC97 slot numbers */ -
GPL/trunk/alsa-kernel/include/sound/asound.h
r36 r77 714 714 ****************************************************************************/ 715 715 716 #define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 3)716 #define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 4) 717 717 718 718 struct snd_ctl_card_info { … … 844 844 }; 845 845 846 struct snd_ctl_tlv { 847 unsigned int numid; /* control element numeric identification */ 848 unsigned int length; /* in bytes aligned to 4 */ 849 unsigned int tlv[1]; /* first TLV */ 850 }; 851 846 852 enum { 847 853 SNDRV_CTL_IOCTL_PVERSION = _IOR('U', 0x00, int), … … 856 862 SNDRV_CTL_IOCTL_ELEM_ADD = _IOWR('U', 0x17, struct snd_ctl_elem_info), 857 863 SNDRV_CTL_IOCTL_ELEM_REPLACE = _IOWR('U', 0x18, struct snd_ctl_elem_info), 858 SNDRV_CTL_IOCTL_ELEM_REMOVE = _IOWR('U', 0x19, struct snd_ctl_elem_id), 864 SNDRV_CTL_IOCTL_ELEM_REMOVE = _IOWR('U', 0x19, struct snd_ctl_elem_id), 865 SNDRV_CTL_IOCTL_TLV_READ = _IOWR('U', 0x1a, struct snd_ctl_tlv), 859 866 SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE = _IOWR('U', 0x20, int), 860 867 SNDRV_CTL_IOCTL_HWDEP_INFO = _IOR('U', 0x21, struct snd_hwdep_info), -
GPL/trunk/alsa-kernel/include/sound/compat_22.h
r32 r77 122 122 #define list_for_each_safe(pos, npos, head) \ 123 123 for (pos = (head)->next, npos = pos->next ; pos != (head); pos = npos, npos = pos->next) 124 125 /** 126 * list_for_each_entry - iterate over list of given type 127 * @pos: the type * to use as a loop counter. 128 * @head: the head for your list. 129 * @member: the name of the list_struct within the struct. 130 */ 131 #define list_for_each_entry(pos, head, member) \ 132 for (pos = list_entry((head)->next, typeof(*pos), member); \ 133 pos->member.next, &pos->member != (head); \ 134 pos = list_entry(pos->member.next, typeof(*pos), member)) 124 135 125 136 #ifndef IORESOURCE_IO -
GPL/trunk/alsa-kernel/include/sound/control.h
r32 r77 40 40 snd_kcontrol_get_t *get; 41 41 snd_kcontrol_put_t *put; 42 unsigned int *tlv; 42 43 unsigned long private_value; 43 44 }; … … 55 56 snd_kcontrol_info_t *info; 56 57 snd_kcontrol_get_t *get; 57 snd_kcontrol_put_t *put; 58 snd_kcontrol_put_t *put; 59 unsigned int *tlv; 58 60 unsigned long private_value; 59 61 #ifdef TARGET_OS2 -
GPL/trunk/alsa-kernel/include/sound/mpu401.h
r32 r77 46 46 #define MPU401_HW_AUREAL 19 /* Aureal Vortex */ 47 47 48 #define MPU401_INFO_INPUT (1 << 0) /* input stream */ 49 #define MPU401_INFO_OUTPUT (1 << 1) /* output stream */ 50 #define MPU401_INFO_INTEGRATED (1 << 2) /* integrated h/w port */ 51 #define MPU401_INFO_MMIO (1 << 3) /* MMIO access */ 52 #define MPU401_INFO_TX_IRQ (1 << 4) /* independent TX irq */ 53 48 54 #define MPU401_MODE_BIT_INPUT 0 49 55 #define MPU401_MODE_BIT_OUTPUT 1 … … 62 68 struct snd_rawmidi *rmidi; 63 69 64 unsigned short hardware; /* MPU401_HW_XXXX */ 70 unsigned short hardware; /* MPU401_HW_XXXX */ 71 unsigned int info_flags; /* MPU401_INFO_XXX */ 65 72 unsigned long port; /* base port of MPU-401 chip */ 66 73 unsigned long cport; /* port + 1 (usually) */ … … 100 107 */ 101 108 102 irqreturn_t snd_mpu401_uart_interrupt(int irq, void *dev_id, struct pt_regs *regs); 109 irqreturn_t snd_mpu401_uart_interrupt(int irq, void *dev_id, 110 struct pt_regs *regs); 111 irqreturn_t snd_mpu401_uart_interrupt_tx(int irq, void *dev_id, 112 struct pt_regs *regs); 103 113 104 114 int snd_mpu401_uart_new(struct snd_card *card, 105 115 int device, 106 116 unsigned short hardware, 107 unsigned long port,108 int integrated,117 unsigned long port, 118 unsigned int info_flags, 109 119 int irq, 110 120 int irq_flags,
Note:
See TracChangeset
for help on using the changeset viewer.
