diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-10-25 03:56:32 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-10-25 03:56:32 -0400 |
commit | 79fc84c7e0d2fe89c4e82f3a26fd8b0d13c31703 (patch) | |
tree | e32a4c267dc1b5950012e18c1e71d8057140f1f5 /include | |
parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) | |
parent | 97c44b2dbd0060e2e6bd56236eb638ab02ec7f30 (diff) |
Merge branch 'topic/misc' into for-linus
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/core.h | 2 | ||||
-rw-r--r-- | include/sound/emu10k1.h | 2 | ||||
-rw-r--r-- | include/sound/jack.h | 5 | ||||
-rw-r--r-- | include/sound/pcm.h | 1 |
4 files changed, 8 insertions, 2 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 89e0ac17f44a..c129f0813bae 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -179,7 +179,7 @@ int snd_power_wait(struct snd_card *card, unsigned int power_state); | |||
179 | #define snd_power_lock(card) do { (void)(card); } while (0) | 179 | #define snd_power_lock(card) do { (void)(card); } while (0) |
180 | #define snd_power_unlock(card) do { (void)(card); } while (0) | 180 | #define snd_power_unlock(card) do { (void)(card); } while (0) |
181 | static inline int snd_power_wait(struct snd_card *card, unsigned int state) { return 0; } | 181 | static inline int snd_power_wait(struct snd_card *card, unsigned int state) { return 0; } |
182 | #define snd_power_get_state(card) SNDRV_CTL_POWER_D0 | 182 | #define snd_power_get_state(card) ({ (void)(card); SNDRV_CTL_POWER_D0; }) |
183 | #define snd_power_change_state(card, state) do { (void)(card); } while (0) | 183 | #define snd_power_change_state(card, state) do { (void)(card); } while (0) |
184 | 184 | ||
185 | #endif /* CONFIG_PM */ | 185 | #endif /* CONFIG_PM */ |
diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h index 7dc97d12253c..4f865df42f0f 100644 --- a/include/sound/emu10k1.h +++ b/include/sound/emu10k1.h | |||
@@ -438,6 +438,8 @@ | |||
438 | #define CCCA_CURRADDR_MASK 0x00ffffff /* Current address of the selected channel */ | 438 | #define CCCA_CURRADDR_MASK 0x00ffffff /* Current address of the selected channel */ |
439 | #define CCCA_CURRADDR 0x18000008 | 439 | #define CCCA_CURRADDR 0x18000008 |
440 | 440 | ||
441 | /* undefine CCR to avoid conflict with the definition for SH */ | ||
442 | #undef CCR | ||
441 | #define CCR 0x09 /* Cache control register */ | 443 | #define CCR 0x09 /* Cache control register */ |
442 | #define CCR_CACHEINVALIDSIZE 0x07190009 | 444 | #define CCR_CACHEINVALIDSIZE 0x07190009 |
443 | #define CCR_CACHEINVALIDSIZE_MASK 0xfe000000 /* Number of invalid samples cache for this channel */ | 445 | #define CCR_CACHEINVALIDSIZE_MASK 0xfe000000 /* Number of invalid samples cache for this channel */ |
diff --git a/include/sound/jack.h b/include/sound/jack.h index d90b9fa32707..c140fc7cbd3f 100644 --- a/include/sound/jack.h +++ b/include/sound/jack.h | |||
@@ -47,6 +47,9 @@ enum snd_jack_types { | |||
47 | SND_JACK_BTN_0 = 0x4000, | 47 | SND_JACK_BTN_0 = 0x4000, |
48 | SND_JACK_BTN_1 = 0x2000, | 48 | SND_JACK_BTN_1 = 0x2000, |
49 | SND_JACK_BTN_2 = 0x1000, | 49 | SND_JACK_BTN_2 = 0x1000, |
50 | SND_JACK_BTN_3 = 0x0800, | ||
51 | SND_JACK_BTN_4 = 0x0400, | ||
52 | SND_JACK_BTN_5 = 0x0200, | ||
50 | }; | 53 | }; |
51 | 54 | ||
52 | struct snd_jack { | 55 | struct snd_jack { |
@@ -55,7 +58,7 @@ struct snd_jack { | |||
55 | int type; | 58 | int type; |
56 | const char *id; | 59 | const char *id; |
57 | char name[100]; | 60 | char name[100]; |
58 | unsigned int key[3]; /* Keep in sync with definitions above */ | 61 | unsigned int key[6]; /* Keep in sync with definitions above */ |
59 | void *private_data; | 62 | void *private_data; |
60 | void (*private_free)(struct snd_jack *); | 63 | void (*private_free)(struct snd_jack *); |
61 | }; | 64 | }; |
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 85f1c6bf8566..dfd9b76b1853 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -278,6 +278,7 @@ struct snd_pcm_runtime { | |||
278 | snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */ | 278 | snd_pcm_uframes_t hw_ptr_base; /* Position at buffer restart */ |
279 | snd_pcm_uframes_t hw_ptr_interrupt; /* Position at interrupt time */ | 279 | snd_pcm_uframes_t hw_ptr_interrupt; /* Position at interrupt time */ |
280 | unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */ | 280 | unsigned long hw_ptr_jiffies; /* Time when hw_ptr is updated */ |
281 | unsigned long hw_ptr_buffer_jiffies; /* buffer time in jiffies */ | ||
281 | snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */ | 282 | snd_pcm_sframes_t delay; /* extra delay; typically FIFO size */ |
282 | 283 | ||
283 | /* -- HW params -- */ | 284 | /* -- HW params -- */ |