Auto-update from upstream
This commit is contained in:
@@ -2145,6 +2145,7 @@
|
||||
#define PCI_DEVICE_ID_ENE_1225 0x1225
|
||||
#define PCI_DEVICE_ID_ENE_1410 0x1410
|
||||
#define PCI_DEVICE_ID_ENE_1420 0x1420
|
||||
#define PCI_VENDOR_ID_CHELSIO 0x1425
|
||||
|
||||
#define PCI_VENDOR_ID_SYBA 0x1592
|
||||
#define PCI_DEVICE_ID_SYBA_2P_EPP 0x0782
|
||||
|
||||
@@ -29,7 +29,9 @@
|
||||
* Sound core interface functions
|
||||
*/
|
||||
|
||||
struct device;
|
||||
extern int register_sound_special(struct file_operations *fops, int unit);
|
||||
extern int register_sound_special_device(struct file_operations *fops, int unit, struct device *dev);
|
||||
extern int register_sound_mixer(struct file_operations *fops, int dev);
|
||||
extern int register_sound_midi(struct file_operations *fops, int dev);
|
||||
extern int register_sound_dsp(struct file_operations *fops, int dev);
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/device.h>
|
||||
#include "pcm.h"
|
||||
#include "control.h"
|
||||
#include "info.h"
|
||||
@@ -374,6 +375,9 @@
|
||||
#define AC97_HAS_NO_PC_BEEP (1<<12) /* no PC Beep volume */
|
||||
#define AC97_HAS_NO_VIDEO (1<<13) /* no Video volume */
|
||||
#define AC97_HAS_NO_CD (1<<14) /* no CD volume */
|
||||
#define AC97_HAS_NO_MIC (1<<15) /* no MIC volume */
|
||||
#define AC97_HAS_NO_TONE (1<<16) /* no Tone volume */
|
||||
#define AC97_HAS_NO_STD_PCM (1<<17) /* no standard AC97 PCM volume and mute */
|
||||
|
||||
/* rates indexes */
|
||||
#define AC97_RATES_FRONT_DAC 0
|
||||
@@ -520,6 +524,7 @@ struct _snd_ac97 {
|
||||
/* jack-sharing info */
|
||||
unsigned char indep_surround;
|
||||
unsigned char channel_mode;
|
||||
struct device dev;
|
||||
};
|
||||
|
||||
/* conditions */
|
||||
@@ -599,4 +604,8 @@ struct ac97_enum {
|
||||
unsigned short mask;
|
||||
const char **texts;
|
||||
};
|
||||
|
||||
/* ad hoc AC97 device driver access */
|
||||
extern struct bus_type ac97_bus_type;
|
||||
|
||||
#endif /* __SOUND_AC97_CODEC_H */
|
||||
|
||||
@@ -138,6 +138,7 @@ struct _snd_ad1816a {
|
||||
spinlock_t lock;
|
||||
|
||||
unsigned short mode;
|
||||
unsigned int clock_freq;
|
||||
|
||||
snd_card_t *card;
|
||||
snd_pcm_t *pcm;
|
||||
|
||||
@@ -560,7 +560,7 @@ enum {
|
||||
* Timer section - /dev/snd/timer
|
||||
*/
|
||||
|
||||
#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 4)
|
||||
#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 5)
|
||||
|
||||
enum sndrv_timer_class {
|
||||
SNDRV_TIMER_CLASS_NONE = -1,
|
||||
@@ -693,11 +693,15 @@ enum sndrv_timer_event {
|
||||
SNDRV_TIMER_EVENT_CONTINUE, /* val = resolution in ns */
|
||||
SNDRV_TIMER_EVENT_PAUSE, /* val = 0 */
|
||||
SNDRV_TIMER_EVENT_EARLY, /* val = 0, early event */
|
||||
SNDRV_TIMER_EVENT_SUSPEND, /* val = 0 */
|
||||
SNDRV_TIMER_EVENT_RESUME, /* val = resolution in ns */
|
||||
/* master timer events for slave timer instances */
|
||||
SNDRV_TIMER_EVENT_MSTART = SNDRV_TIMER_EVENT_START + 10,
|
||||
SNDRV_TIMER_EVENT_MSTOP = SNDRV_TIMER_EVENT_STOP + 10,
|
||||
SNDRV_TIMER_EVENT_MCONTINUE = SNDRV_TIMER_EVENT_CONTINUE + 10,
|
||||
SNDRV_TIMER_EVENT_MPAUSE = SNDRV_TIMER_EVENT_PAUSE + 10,
|
||||
SNDRV_TIMER_EVENT_MSUSPEND = SNDRV_TIMER_EVENT_SUSPEND + 10,
|
||||
SNDRV_TIMER_EVENT_MRESUME = SNDRV_TIMER_EVENT_RESUME + 10,
|
||||
};
|
||||
|
||||
struct sndrv_timer_tread {
|
||||
|
||||
@@ -1748,7 +1748,7 @@ int snd_cs46xx_pcm(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
|
||||
int snd_cs46xx_pcm_rear(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
|
||||
int snd_cs46xx_pcm_iec958(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
|
||||
int snd_cs46xx_pcm_center_lfe(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
|
||||
int snd_cs46xx_mixer(cs46xx_t *chip);
|
||||
int snd_cs46xx_mixer(cs46xx_t *chip, int spdif_device);
|
||||
int snd_cs46xx_midi(cs46xx_t *chip, int device, snd_rawmidi_t **rmidi);
|
||||
int snd_cs46xx_start_dsp(cs46xx_t *chip);
|
||||
int snd_cs46xx_gameport(cs46xx_t *chip);
|
||||
|
||||
@@ -1178,7 +1178,7 @@ int snd_p16v_free(emu10k1_t * emu);
|
||||
int snd_p16v_mixer(emu10k1_t * emu);
|
||||
int snd_emu10k1_pcm_multi(emu10k1_t * emu, int device, snd_pcm_t ** rpcm);
|
||||
int snd_emu10k1_fx8010_pcm(emu10k1_t * emu, int device, snd_pcm_t ** rpcm);
|
||||
int snd_emu10k1_mixer(emu10k1_t * emu);
|
||||
int snd_emu10k1_mixer(emu10k1_t * emu, int pcm_device, int multi_device);
|
||||
int snd_emu10k1_timer(emu10k1_t * emu, int device);
|
||||
int snd_emu10k1_fx8010_new(emu10k1_t *emu, int device, snd_hwdep_t ** rhwdep);
|
||||
|
||||
|
||||
@@ -512,13 +512,13 @@ extern void snd_gf1_ctrl_stop(snd_gus_card_t * gus, unsigned char reg);
|
||||
|
||||
extern void snd_gf1_write8(snd_gus_card_t * gus, unsigned char reg, unsigned char data);
|
||||
extern unsigned char snd_gf1_look8(snd_gus_card_t * gus, unsigned char reg);
|
||||
extern inline unsigned char snd_gf1_read8(snd_gus_card_t * gus, unsigned char reg)
|
||||
static inline unsigned char snd_gf1_read8(snd_gus_card_t * gus, unsigned char reg)
|
||||
{
|
||||
return snd_gf1_look8(gus, reg | 0x80);
|
||||
}
|
||||
extern void snd_gf1_write16(snd_gus_card_t * gus, unsigned char reg, unsigned int data);
|
||||
extern unsigned short snd_gf1_look16(snd_gus_card_t * gus, unsigned char reg);
|
||||
extern inline unsigned short snd_gf1_read16(snd_gus_card_t * gus, unsigned char reg)
|
||||
static inline unsigned short snd_gf1_read16(snd_gus_card_t * gus, unsigned char reg)
|
||||
{
|
||||
return snd_gf1_look16(gus, reg | 0x80);
|
||||
}
|
||||
@@ -532,12 +532,12 @@ extern void snd_gf1_i_ctrl_stop(snd_gus_card_t * gus, unsigned char reg);
|
||||
extern void snd_gf1_i_write8(snd_gus_card_t * gus, unsigned char reg, unsigned char data);
|
||||
extern unsigned char snd_gf1_i_look8(snd_gus_card_t * gus, unsigned char reg);
|
||||
extern void snd_gf1_i_write16(snd_gus_card_t * gus, unsigned char reg, unsigned int data);
|
||||
extern inline unsigned char snd_gf1_i_read8(snd_gus_card_t * gus, unsigned char reg)
|
||||
static inline unsigned char snd_gf1_i_read8(snd_gus_card_t * gus, unsigned char reg)
|
||||
{
|
||||
return snd_gf1_i_look8(gus, reg | 0x80);
|
||||
}
|
||||
extern unsigned short snd_gf1_i_look16(snd_gus_card_t * gus, unsigned char reg);
|
||||
extern inline unsigned short snd_gf1_i_read16(snd_gus_card_t * gus, unsigned char reg)
|
||||
static inline unsigned short snd_gf1_i_read16(snd_gus_card_t * gus, unsigned char reg)
|
||||
{
|
||||
return snd_gf1_i_look16(gus, reg | 0x80);
|
||||
}
|
||||
|
||||
@@ -379,7 +379,6 @@ struct _snd_pcm_substream {
|
||||
unsigned int dma_buf_id;
|
||||
size_t dma_max;
|
||||
/* -- hardware operations -- */
|
||||
unsigned int open_flag: 1; /* lowlevel device has been opened */
|
||||
snd_pcm_ops_t *ops;
|
||||
/* -- runtime information -- */
|
||||
snd_pcm_runtime_t *runtime;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
/* include/version.h. Generated by configure. */
|
||||
#define CONFIG_SND_VERSION "1.0.9b"
|
||||
#define CONFIG_SND_DATE " (Thu Jul 28 12:20:13 2005 UTC)"
|
||||
#define CONFIG_SND_VERSION "1.0.10rc1"
|
||||
#define CONFIG_SND_DATE " (Tue Aug 30 05:31:08 2005 UTC)"
|
||||
|
||||
@@ -295,6 +295,7 @@ struct _snd_ymfpci_pcm {
|
||||
unsigned int running: 1;
|
||||
unsigned int output_front: 1;
|
||||
unsigned int output_rear: 1;
|
||||
unsigned int update_pcm_vol;
|
||||
u32 period_size; /* cached from runtime->period_size */
|
||||
u32 buffer_size; /* cached from runtime->buffer_size */
|
||||
u32 period_pos;
|
||||
@@ -367,6 +368,11 @@ struct _snd_ymfpci {
|
||||
int mode_dup4ch;
|
||||
int rear_opened;
|
||||
int spdif_opened;
|
||||
struct {
|
||||
u16 left;
|
||||
u16 right;
|
||||
snd_kcontrol_t *ctl;
|
||||
} pcm_mixer[32];
|
||||
|
||||
spinlock_t reg_lock;
|
||||
spinlock_t voice_lock;
|
||||
|
||||
Reference in New Issue
Block a user