diff options
| author | Takashi Iwai <tiwai@suse.de> | 2008-12-19 02:22:57 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2008-12-19 02:22:57 -0500 |
| commit | 0ff555192a8d20385d49d1c420e2e8d409b3c0da (patch) | |
| tree | b6e4b6cae1028a310a3488ebf745954c51694bfc /include/sound | |
| parent | 3218c178b41b420cb7e0d120c7a137a3969242e5 (diff) | |
| parent | 9e43f0de690211cf7153b5f3ec251bc315647ada (diff) | |
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'include/sound')
| -rw-r--r-- | include/sound/core.h | 13 | ||||
| -rw-r--r-- | include/sound/memalloc.h | 2 | ||||
| -rw-r--r-- | include/sound/soc-dapm.h | 1 | ||||
| -rw-r--r-- | include/sound/soc.h | 3 | ||||
| -rw-r--r-- | include/sound/tea575x-tuner.h | 1 |
5 files changed, 11 insertions, 9 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index e5eec5f7350..1508c4ec1ba 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
| @@ -43,9 +43,6 @@ | |||
| 43 | #ifdef CONFIG_PCI | 43 | #ifdef CONFIG_PCI |
| 44 | struct pci_dev; | 44 | struct pci_dev; |
| 45 | #endif | 45 | #endif |
| 46 | #ifdef CONFIG_SBUS | ||
| 47 | struct sbus_dev; | ||
| 48 | #endif | ||
| 49 | 46 | ||
| 50 | /* device allocation stuff */ | 47 | /* device allocation stuff */ |
| 51 | 48 | ||
| @@ -388,9 +385,13 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...) | |||
| 388 | 385 | ||
| 389 | #else /* !CONFIG_SND_DEBUG */ | 386 | #else /* !CONFIG_SND_DEBUG */ |
| 390 | 387 | ||
| 391 | #define snd_printd(fmt, args...) /* nothing */ | 388 | #define snd_printd(fmt, args...) do { } while (0) |
| 392 | #define snd_BUG() /* nothing */ | 389 | #define snd_BUG() do { } while (0) |
| 393 | #define snd_BUG_ON(cond) ({/*(void)(cond);*/ 0;}) /* always false */ | 390 | static inline int __snd_bug_on(void) |
| 391 | { | ||
| 392 | return 0; | ||
| 393 | } | ||
| 394 | #define snd_BUG_ON(cond) __snd_bug_on() /* always false */ | ||
| 394 | 395 | ||
| 395 | #endif /* CONFIG_SND_DEBUG */ | 396 | #endif /* CONFIG_SND_DEBUG */ |
| 396 | 397 | ||
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index d787a6b4a10..7ccce94a525 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h | |||
| @@ -37,7 +37,6 @@ struct snd_dma_device { | |||
| 37 | #ifndef snd_dma_pci_data | 37 | #ifndef snd_dma_pci_data |
| 38 | #define snd_dma_pci_data(pci) (&(pci)->dev) | 38 | #define snd_dma_pci_data(pci) (&(pci)->dev) |
| 39 | #define snd_dma_isa_data() NULL | 39 | #define snd_dma_isa_data() NULL |
| 40 | #define snd_dma_sbus_data(sbus) ((struct device *)(sbus)) | ||
| 41 | #define snd_dma_continuous_data(x) ((struct device *)(unsigned long)(x)) | 40 | #define snd_dma_continuous_data(x) ((struct device *)(unsigned long)(x)) |
| 42 | #endif | 41 | #endif |
| 43 | 42 | ||
| @@ -49,7 +48,6 @@ struct snd_dma_device { | |||
| 49 | #define SNDRV_DMA_TYPE_CONTINUOUS 1 /* continuous no-DMA memory */ | 48 | #define SNDRV_DMA_TYPE_CONTINUOUS 1 /* continuous no-DMA memory */ |
| 50 | #define SNDRV_DMA_TYPE_DEV 2 /* generic device continuous */ | 49 | #define SNDRV_DMA_TYPE_DEV 2 /* generic device continuous */ |
| 51 | #define SNDRV_DMA_TYPE_DEV_SG 3 /* generic device SG-buffer */ | 50 | #define SNDRV_DMA_TYPE_DEV_SG 3 /* generic device SG-buffer */ |
| 52 | #define SNDRV_DMA_TYPE_SBUS 4 /* SBUS continuous */ | ||
| 53 | 51 | ||
| 54 | /* | 52 | /* |
| 55 | * info for buffer allocation | 53 | * info for buffer allocation |
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index c1b26fcc0b5..ca699a3017f 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
| @@ -240,6 +240,7 @@ int snd_soc_dapm_sys_add(struct device *dev); | |||
| 240 | /* dapm audio pin control and status */ | 240 | /* dapm audio pin control and status */ |
| 241 | int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, char *pin); | 241 | int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, char *pin); |
| 242 | int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, char *pin); | 242 | int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, char *pin); |
| 243 | int snd_soc_dapm_nc_pin(struct snd_soc_codec *codec, char *pin); | ||
| 243 | int snd_soc_dapm_get_pin_status(struct snd_soc_codec *codec, char *pin); | 244 | int snd_soc_dapm_get_pin_status(struct snd_soc_codec *codec, char *pin); |
| 244 | int snd_soc_dapm_sync(struct snd_soc_codec *codec); | 245 | int snd_soc_dapm_sync(struct snd_soc_codec *codec); |
| 245 | 246 | ||
diff --git a/include/sound/soc.h b/include/sound/soc.h index a1e0357a84d..5e0189876af 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -28,7 +28,8 @@ | |||
| 28 | */ | 28 | */ |
| 29 | #define SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) \ | 29 | #define SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) \ |
| 30 | ((unsigned long)&(struct soc_mixer_control) \ | 30 | ((unsigned long)&(struct soc_mixer_control) \ |
| 31 | {.reg = xreg, .shift = xshift, .max = xmax, .invert = xinvert}) | 31 | {.reg = xreg, .shift = xshift, .rshift = xshift, .max = xmax, \ |
| 32 | .invert = xinvert}) | ||
| 32 | #define SOC_SINGLE_VALUE_EXT(xreg, xmax, xinvert) \ | 33 | #define SOC_SINGLE_VALUE_EXT(xreg, xmax, xinvert) \ |
| 33 | ((unsigned long)&(struct soc_mixer_control) \ | 34 | ((unsigned long)&(struct soc_mixer_control) \ |
| 34 | {.reg = xreg, .max = xmax, .invert = xinvert}) | 35 | {.reg = xreg, .max = xmax, .invert = xinvert}) |
diff --git a/include/sound/tea575x-tuner.h b/include/sound/tea575x-tuner.h index b62ce3e077f..b6870cbaf2b 100644 --- a/include/sound/tea575x-tuner.h +++ b/include/sound/tea575x-tuner.h | |||
| @@ -43,6 +43,7 @@ struct snd_tea575x { | |||
| 43 | unsigned int freq_fixup; /* crystal onboard */ | 43 | unsigned int freq_fixup; /* crystal onboard */ |
| 44 | unsigned int val; /* hw value */ | 44 | unsigned int val; /* hw value */ |
| 45 | unsigned long freq; /* frequency */ | 45 | unsigned long freq; /* frequency */ |
| 46 | unsigned long in_use; /* set if the device is in use */ | ||
| 46 | struct snd_tea575x_ops *ops; | 47 | struct snd_tea575x_ops *ops; |
| 47 | void *private_data; | 48 | void *private_data; |
| 48 | }; | 49 | }; |
