Changeset 717 for GPL/trunk/alsa-kernel/include/sound
- Timestamp:
- Aug 7, 2022, 6:11:12 PM (3 years ago)
- Location:
- GPL/trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 710-716
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/sound/compress_driver.h
r695 r717 166 166 167 167 /* compress device register APIs */ 168 int snd_compress_register(struct snd_compr *device);169 int snd_compress_deregister(struct snd_compr *device);170 168 int snd_compress_new(struct snd_card *card, int device, 171 169 int type, const char *id, struct snd_compr *compr); -
GPL/trunk/alsa-kernel/include/sound/core.h
r703 r717 121 121 const struct attribute_group *dev_groups[4]; /* assigned sysfs attr */ 122 122 bool registered; /* card_dev is registered? */ 123 bool managed; /* managed via devres */ 124 bool releasing; /* during card free process */ 123 125 int sync_irq; /* assigned irq, used for PCM sync */ 124 126 wait_queue_head_t remove_sleep; … … 278 280 struct module *module, int extra_size, 279 281 struct snd_card **card_ret); 282 int snd_devm_card_new(struct device *parent, int idx, const char *xid, 283 struct module *module, size_t extra_size, 284 struct snd_card **card_ret); 280 285 281 286 int snd_card_disconnect(struct snd_card *card); … … 283 288 int snd_card_free(struct snd_card *card); 284 289 int snd_card_free_when_closed(struct snd_card *card); 290 int snd_card_free_on_error(struct device *dev, int ret); 285 291 void snd_card_set_id(struct snd_card *card, const char *id); 286 292 int snd_card_register(struct snd_card *card); … … 328 334 void snd_dma_disable(unsigned long dma); 329 335 unsigned int snd_dma_pointer(unsigned long dma, unsigned int size); 336 int snd_devm_request_dma(struct device *dev, int dma, const char *name); 330 337 #endif 331 338 -
GPL/trunk/alsa-kernel/include/sound/emu10k1.h
r679 r717 1702 1702 struct snd_dma_buffer ptb_pages; /* page table pages */ 1703 1703 struct snd_dma_device p16v_dma_dev; 1704 struct snd_dma_buffer p16v_buffer;1704 struct snd_dma_buffer *p16v_buffer; 1705 1705 1706 1706 struct snd_util_memhdr *memhdr; /* page allocation list */ … … 1797 1797 long max_cache_bytes, 1798 1798 int enable_ir, 1799 uint subsystem, 1800 struct snd_emu10k1 ** remu); 1799 uint subsystem); 1801 1800 1802 1801 int snd_emu10k1_pcm(struct snd_emu10k1 *emu, int device); … … 1804 1803 int snd_emu10k1_pcm_efx(struct snd_emu10k1 *emu, int device); 1805 1804 int snd_p16v_pcm(struct snd_emu10k1 *emu, int device); 1806 int snd_p16v_free(struct snd_emu10k1 * emu);1807 1805 int snd_p16v_mixer(struct snd_emu10k1 * emu); 1808 1806 int snd_emu10k1_pcm_multi(struct snd_emu10k1 *emu, int device); -
GPL/trunk/alsa-kernel/include/sound/emu8000.h
r679 r717 57 57 unsigned long port2; /* Port usually at base+0x400 */ 58 58 unsigned long port3; /* Port usually at base+0x800 */ 59 struct resource *res_port1;60 struct resource *res_port2;61 struct resource *res_port3;62 59 unsigned short last_reg;/* Last register command */ 63 60 spinlock_t reg_lock; -
GPL/trunk/alsa-kernel/include/sound/hda_codec.h
r695 r717 9 9 #define __SOUND_HDA_CODEC_H 10 10 11 #include <linux/ kref.h>11 #include <linux/refcount.h> 12 12 #include <linux/mod_devicetable.h> 13 13 #include <sound/info.h> … … 115 115 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 116 116 #endif 117 void (*reboot_notify)(struct hda_codec *codec);118 117 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on); 119 118 }; … … 168 167 /* private: */ 169 168 struct hda_codec *codec; 170 struct kref kref;171 169 struct list_head list; 170 unsigned int disconnected:1; 172 171 }; 173 172 … … 189 188 /* PCM to create, set by patch_ops.build_pcms callback */ 190 189 struct list_head pcm_list_head; 190 refcount_t pcm_ref; 191 wait_queue_head_t remove_sleep; 191 192 192 193 /* codec specific info */ … … 226 227 227 228 /* misc flags */ 229 unsigned int configured:1; /* codec was configured */ 228 230 unsigned int in_freeing:1; /* being released */ 229 231 unsigned int registered:1; /* codec was registered */ … … 423 425 static inline void snd_hda_codec_pcm_get(struct hda_pcm *pcm) 424 426 { 425 kref_get(&pcm->kref);427 refcount_inc(&pcm->codec->pcm_ref); 426 428 } 427 429 void snd_hda_codec_pcm_put(struct hda_pcm *pcm); -
GPL/trunk/alsa-kernel/include/sound/hdaudio_ext.h
r695 r717 52 52 * @link_locked: link is locked 53 53 * @link_prepared: link is prepared 54 * link_substream: link substream54 * @link_substream: link substream 55 55 */ 56 56 struct hdac_ext_stream { … … 89 89 int type); 90 90 void snd_hdac_ext_stream_release(struct hdac_ext_stream *azx_dev, int type); 91 void snd_hdac_ext_stream_decouple_locked(struct hdac_bus *bus, 92 struct hdac_ext_stream *azx_dev, bool decouple); 91 93 void snd_hdac_ext_stream_decouple(struct hdac_bus *bus, 92 94 struct hdac_ext_stream *azx_dev, bool decouple); -
GPL/trunk/alsa-kernel/include/sound/jack.h
r695 r717 63 63 #ifdef CONFIG_SND_JACK_INPUT_DEV 64 64 struct input_dev *input_dev; 65 struct mutex input_dev_lock; 65 66 int registered; 66 67 int type; -
GPL/trunk/alsa-kernel/include/sound/memalloc.h
r703 r717 32 32 #define SNDRV_DMA_TYPE_CONTINUOUS 1 /* continuous no-DMA memory */ 33 33 #define SNDRV_DMA_TYPE_DEV 2 /* generic device continuous */ 34 #define SNDRV_DMA_TYPE_DEV_ UC 5 /* continuous non-cahced */34 #define SNDRV_DMA_TYPE_DEV_WC 5 /* continuous write-combined */ 35 35 #ifdef CONFIG_SND_DMA_SGBUF 36 36 #define SNDRV_DMA_TYPE_DEV_SG 3 /* generic device SG-buffer */ 37 #define SNDRV_DMA_TYPE_DEV_ UC_SG 6 /* SG non-cached */37 #define SNDRV_DMA_TYPE_DEV_WC_SG 6 /* SG write-combined */ 38 38 #else 39 39 #define SNDRV_DMA_TYPE_DEV_SG SNDRV_DMA_TYPE_DEV /* no SG-buf support */ 40 #define SNDRV_DMA_TYPE_DEV_ UC_SG SNDRV_DMA_TYPE_DEV_UC40 #define SNDRV_DMA_TYPE_DEV_WC_SG SNDRV_DMA_TYPE_DEV_WC 41 41 #endif 42 42 #ifdef CONFIG_GENERIC_ALLOCATOR … … 80 80 unsigned int ofs, unsigned int size); 81 81 82 /* device-managed memory allocator */ 83 struct snd_dma_buffer *snd_devm_alloc_pages(struct device *dev, int type, 84 size_t size); 85 #ifdef TARGET_OS2 86 int snd_free_sgbuf_pages(struct snd_dma_buffer *dmab); 87 void *snd_malloc_sgbuf_pages(struct device *device, 88 size_t size, struct snd_dma_buffer *dmab, 89 size_t *res_size); 90 91 #endif 82 92 #endif /* __SOUND_MEMALLOC_H */ 83 93 -
GPL/trunk/alsa-kernel/include/sound/pcm.h
r703 r717 399 399 struct fasync_struct *fasync; 400 400 bool stop_operating; /* sync_stop will be called */ 401 struct mutex buffer_mutex; /* protect for buffer changes */ 402 atomic_t buffer_accessing; /* >0: in r/w operation, <0: blocked */ 401 403 402 404 /* -- private section -- */ … … 1225 1227 int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream); 1226 1228 1227 void snd_pcm_set_managed_buffer(struct snd_pcm_substream *substream, int type, 1228 struct device *data, size_t size, size_t max); 1229 void snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type, 1230 struct device *data, 1231 size_t size, size_t max); 1229 int snd_pcm_set_managed_buffer(struct snd_pcm_substream *substream, int type, 1230 struct device *data, size_t size, size_t max); 1231 int snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type, 1232 struct device *data, 1233 size_t size, size_t max); 1234 1235 /** 1236 * snd_pcm_set_fixed_buffer - Preallocate and set up the fixed size PCM buffer 1237 * @substream: the pcm substream instance 1238 * @type: DMA type (SNDRV_DMA_TYPE_*) 1239 * @data: DMA type dependent data 1240 * @size: the requested pre-allocation size in bytes 1241 * 1242 * This is a variant of snd_pcm_set_managed_buffer(), but this pre-allocates 1243 * only the given sized buffer and doesn't allow re-allocation nor dynamic 1244 * allocation of a larger buffer unlike the standard one. 1245 * The function may return -ENOMEM error, hence the caller must check it. 1246 */ 1247 static inline int __must_check 1248 snd_pcm_set_fixed_buffer(struct snd_pcm_substream *substream, int type, 1249 struct device *data, size_t size) 1250 { 1251 return snd_pcm_set_managed_buffer(substream, type, data, size, 0); 1252 } 1253 1254 /** 1255 * snd_pcm_set_fixed_buffer_all - Preallocate and set up the fixed size PCM buffer 1256 * @pcm: the pcm instance 1257 * @type: DMA type (SNDRV_DMA_TYPE_*) 1258 * @data: DMA type dependent data 1259 * @size: the requested pre-allocation size in bytes 1260 * 1261 * Apply the set up of the fixed buffer via snd_pcm_set_fixed_buffer() for 1262 * all substream. If any of allocation fails, it returns -ENOMEM, hence the 1263 * caller must check the return value. 1264 */ 1265 static inline int __must_check 1266 snd_pcm_set_fixed_buffer_all(struct snd_pcm *pcm, int type, 1267 struct device *data, size_t size) 1268 { 1269 return snd_pcm_set_managed_buffer_all(pcm, type, data, size, 0); 1270 } 1232 1271 1233 1272 int _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream, -
GPL/trunk/alsa-kernel/include/sound/pxa2xx-lib.h
r679 r717 15 15 extern int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, 16 16 struct snd_pcm_hw_params *params); 17 extern int pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream);18 17 extern int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd); 19 18 extern snd_pcm_uframes_t pxa2xx_pcm_pointer(struct snd_pcm_substream *substream); … … 21 20 extern int pxa2xx_pcm_open(struct snd_pcm_substream *substream); 22 21 extern int pxa2xx_pcm_close(struct snd_pcm_substream *substream); 23 extern int pxa2xx_pcm_mmap(struct snd_pcm_substream *substream, 24 struct vm_area_struct *vma); 25 extern int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream); 26 extern void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm); 27 extern void pxa2xx_soc_pcm_free(struct snd_soc_component *component, 28 struct snd_pcm *pcm); 22 extern int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm); 29 23 extern int pxa2xx_soc_pcm_new(struct snd_soc_component *component, 30 24 struct snd_soc_pcm_runtime *rtd); … … 36 30 struct snd_pcm_substream *substream, 37 31 struct snd_pcm_hw_params *params); 38 extern int pxa2xx_soc_pcm_hw_free(struct snd_soc_component *component,39 struct snd_pcm_substream *substream);40 32 extern int pxa2xx_soc_pcm_prepare(struct snd_soc_component *component, 41 33 struct snd_pcm_substream *substream); … … 45 37 pxa2xx_soc_pcm_pointer(struct snd_soc_component *component, 46 38 struct snd_pcm_substream *substream); 47 extern int pxa2xx_soc_pcm_mmap(struct snd_soc_component *component,48 struct snd_pcm_substream *substream,49 struct vm_area_struct *vma);50 39 51 40 /* AC97 */ -
GPL/trunk/alsa-kernel/include/sound/rawmidi.h
r703 r717 99 99 struct snd_rawmidi_substream *input; 100 100 struct snd_rawmidi_substream *output; 101 unsigned int user_pversion; /* supported protocol version */ 101 102 }; 102 103 -
GPL/trunk/alsa-kernel/include/sound/soc-topology.h
r703 r717 189 189 #else 190 190 191 static inline int snd_soc_tplg_component_remove(struct snd_soc_component *comp, 192 u32 index) 191 static inline int snd_soc_tplg_component_remove(struct snd_soc_component *comp) 193 192 { 194 193 return 0; -
GPL/trunk/alsa-kernel/include/sound/sof.h
r695 r717 102 102 103 103 int sof_dai_get_mclk(struct snd_soc_pcm_runtime *rtd); 104 int sof_dai_get_bclk(struct snd_soc_pcm_runtime *rtd); 104 105 105 106 #endif -
GPL/trunk/alsa-kernel/include/sound/version.h
r703 r717 1 1 /* include/version.h */ 2 #define CONFIG_SND_VERSION "5.1 4.7"2 #define CONFIG_SND_VERSION "5.15.59" 3 3 #define CONFIG_SND_DATE ""
Note:
See TracChangeset
for help on using the changeset viewer.