diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:41:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:42:27 -0400 |
commit | cdbc653a04ee692a7105a96e8dd6055d9971d45c (patch) | |
tree | c1282680b3115edfd693a27bc6758208534ac557 /include/sound | |
parent | 009f8c90f571d87855914dbc20e6c0ea2a3b19ae (diff) | |
parent | ceec4684085a9e4dc60439d84ab47ce260444804 (diff) |
Merge branch 'for-next' into for-linus
4.18-rc1 merge material.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/core.h | 2 | ||||
-rw-r--r-- | include/sound/emu10k1.h | 4 | ||||
-rw-r--r-- | include/sound/hdaudio.h | 5 | ||||
-rw-r--r-- | include/sound/memalloc.h | 2 |
4 files changed, 8 insertions, 5 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 5f181b875c2f..36a5934cf4b1 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
@@ -51,7 +51,6 @@ struct completion; | |||
51 | */ | 51 | */ |
52 | enum snd_device_type { | 52 | enum snd_device_type { |
53 | SNDRV_DEV_LOWLEVEL, | 53 | SNDRV_DEV_LOWLEVEL, |
54 | SNDRV_DEV_CONTROL, | ||
55 | SNDRV_DEV_INFO, | 54 | SNDRV_DEV_INFO, |
56 | SNDRV_DEV_BUS, | 55 | SNDRV_DEV_BUS, |
57 | SNDRV_DEV_CODEC, | 56 | SNDRV_DEV_CODEC, |
@@ -62,6 +61,7 @@ enum snd_device_type { | |||
62 | SNDRV_DEV_SEQUENCER, | 61 | SNDRV_DEV_SEQUENCER, |
63 | SNDRV_DEV_HWDEP, | 62 | SNDRV_DEV_HWDEP, |
64 | SNDRV_DEV_JACK, | 63 | SNDRV_DEV_JACK, |
64 | SNDRV_DEV_CONTROL, /* NOTE: this must be the last one */ | ||
65 | }; | 65 | }; |
66 | 66 | ||
67 | enum snd_device_state { | 67 | enum snd_device_state { |
diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h index 5ebcc51c0a6a..8c1572de44c5 100644 --- a/include/sound/emu10k1.h +++ b/include/sound/emu10k1.h | |||
@@ -1610,7 +1610,7 @@ struct snd_emu10k1_fx8010_pcm { | |||
1610 | struct snd_pcm_indirect pcm_rec; | 1610 | struct snd_pcm_indirect pcm_rec; |
1611 | unsigned int tram_pos; | 1611 | unsigned int tram_pos; |
1612 | unsigned int tram_shift; | 1612 | unsigned int tram_shift; |
1613 | struct snd_emu10k1_fx8010_irq *irq; | 1613 | struct snd_emu10k1_fx8010_irq irq; |
1614 | }; | 1614 | }; |
1615 | 1615 | ||
1616 | struct snd_emu10k1_fx8010 { | 1616 | struct snd_emu10k1_fx8010 { |
@@ -1902,7 +1902,7 @@ int snd_emu10k1_fx8010_register_irq_handler(struct snd_emu10k1 *emu, | |||
1902 | snd_fx8010_irq_handler_t *handler, | 1902 | snd_fx8010_irq_handler_t *handler, |
1903 | unsigned char gpr_running, | 1903 | unsigned char gpr_running, |
1904 | void *private_data, | 1904 | void *private_data, |
1905 | struct snd_emu10k1_fx8010_irq **r_irq); | 1905 | struct snd_emu10k1_fx8010_irq *irq); |
1906 | int snd_emu10k1_fx8010_unregister_irq_handler(struct snd_emu10k1 *emu, | 1906 | int snd_emu10k1_fx8010_unregister_irq_handler(struct snd_emu10k1 *emu, |
1907 | struct snd_emu10k1_fx8010_irq *irq); | 1907 | struct snd_emu10k1_fx8010_irq *irq); |
1908 | 1908 | ||
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 06536e01ed94..c052afc27547 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h | |||
@@ -571,4 +571,9 @@ static inline unsigned int snd_array_index(struct snd_array *array, void *ptr) | |||
571 | return (unsigned long)(ptr - array->list) / array->elem_size; | 571 | return (unsigned long)(ptr - array->list) / array->elem_size; |
572 | } | 572 | } |
573 | 573 | ||
574 | /* a helper macro to iterate for each snd_array element */ | ||
575 | #define snd_array_for_each(array, idx, ptr) \ | ||
576 | for ((idx) = 0, (ptr) = (array)->list; (idx) < (array)->used; \ | ||
577 | (ptr) = snd_array_elem(array, ++(idx))) | ||
578 | |||
574 | #endif /* __SOUND_HDAUDIO_H */ | 579 | #endif /* __SOUND_HDAUDIO_H */ |
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h index 782d1df34208..9c3db3dce32b 100644 --- a/include/sound/memalloc.h +++ b/include/sound/memalloc.h | |||
@@ -34,11 +34,9 @@ struct snd_dma_device { | |||
34 | struct device *dev; /* generic device */ | 34 | struct device *dev; /* generic device */ |
35 | }; | 35 | }; |
36 | 36 | ||
37 | #ifndef snd_dma_pci_data | ||
38 | #define snd_dma_pci_data(pci) (&(pci)->dev) | 37 | #define snd_dma_pci_data(pci) (&(pci)->dev) |
39 | #define snd_dma_isa_data() NULL | 38 | #define snd_dma_isa_data() NULL |
40 | #define snd_dma_continuous_data(x) ((struct device *)(__force unsigned long)(x)) | 39 | #define snd_dma_continuous_data(x) ((struct device *)(__force unsigned long)(x)) |
41 | #endif | ||
42 | 40 | ||
43 | 41 | ||
44 | /* | 42 | /* |