Changeset 772 for GPL/trunk/alsa-kernel/include/sound/soc-component.h
- Timestamp:
- Apr 19, 2025, 8:08:37 PM (4 months ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-6.6-LTS (added) merged: 765,768-769 /GPL/branches/uniaud32-exp (added) merged: 735-741,743-744,748-751,753-760,762-764 /GPL/branches/uniaud32-next merged: 718-734
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/include/sound/soc-component.h
r695 r772 99 99 int (*set_jack)(struct snd_soc_component *component, 100 100 struct snd_soc_jack *jack, void *data); 101 int (*get_jack_type)(struct snd_soc_component *component); 101 102 102 103 /* DT */ … … 137 138 struct snd_pcm_audio_tstamp_config *audio_tstamp_config, 138 139 struct snd_pcm_audio_tstamp_report *audio_tstamp_report); 139 int (*copy _user)(struct snd_soc_component *component,140 141 unsigned long pos, void __user *buf,142 140 int (*copy)(struct snd_soc_component *component, 141 struct snd_pcm_substream *substream, int channel, 142 unsigned long pos, struct iov_iter *iter, 143 unsigned long bytes); 143 144 struct page *(*page)(struct snd_soc_component *component, 144 145 struct snd_pcm_substream *substream, … … 149 150 int (*ack)(struct snd_soc_component *component, 150 151 struct snd_pcm_substream *substream); 152 snd_pcm_sframes_t (*delay)(struct snd_soc_component *component, 153 struct snd_pcm_substream *substream); 151 154 152 155 const struct snd_compress_ops *compress_ops; … … 155 158 int probe_order; 156 159 int remove_order; 160 161 /* 162 * soc_pcm_trigger() start/stop sequence. 163 * see also 164 * snd_soc_dai_link 165 * soc_pcm_trigger() 166 */ 167 enum snd_soc_trigger_order trigger_start; 168 enum snd_soc_trigger_order trigger_stop; 157 169 158 170 /* … … 168 180 unsigned int suspend_bias_off:1; 169 181 unsigned int use_pmdown_time:1; /* care pmdown_time at stop */ 182 /* 183 * Indicates that the component does not care about the endianness of 184 * PCM audio data and the core will ensure that both LE and BE variants 185 * of each used format are present. Typically this is because the 186 * component sits behind a bus that abstracts away the endian of the 187 * original data, ie. one for which the transmission endian is defined 188 * (I2S/SLIMbus/SoundWire), or the concept of endian doesn't exist (PDM, 189 * analogue). 190 */ 170 191 unsigned int endianness:1; 171 unsigned int non_legacy_dai_naming:1;192 unsigned int legacy_dai_naming:1; 172 193 173 194 /* this component uses topology and ignore machine driver FEs */ … … 178 199 bool use_dai_pcm_id; /* use DAI link PCM ID as PCM device number */ 179 200 int be_pcm_base; /* base device ID for all BE PCMs */ 201 202 #ifdef CONFIG_DEBUG_FS 203 const char *debugfs_prefix; 204 #endif 180 205 }; 181 206 … … 221 246 222 247 /* function mark */ 223 struct snd_pcm_substream*mark_module;248 void *mark_module; 224 249 struct snd_pcm_substream *mark_open; 225 250 struct snd_pcm_substream *mark_hw_params; … … 228 253 void *mark_pm; 229 254 230 #ifdef CONFIG_DEBUG_FS231 255 struct dentry *debugfs_root; 232 256 const char *debugfs_prefix; 233 #endif234 257 }; 235 258 … … 372 395 int snd_soc_component_set_jack(struct snd_soc_component *component, 373 396 struct snd_soc_jack *jack, void *data); 397 int snd_soc_component_get_jack_type(struct snd_soc_component *component); 374 398 375 399 void snd_soc_component_seq_notifier(struct snd_soc_component *component, … … 392 416 snd_soc_component_module_get(component, substream, 1) 393 417 int snd_soc_component_module_get(struct snd_soc_component *component, 394 struct snd_pcm_substream *substream, 395 int upon_open); 418 void *mark, int upon_open); 396 419 #define snd_soc_component_module_put_when_remove(component) \ 397 420 snd_soc_component_module_put(component, NULL, 0, 0) … … 399 422 snd_soc_component_module_put(component, substream, 1, rollback) 400 423 void snd_soc_component_module_put(struct snd_soc_component *component, 401 struct snd_pcm_substream *substream, 402 int upon_open, int rollback); 424 void *mark, int upon_open, int rollback); 403 425 404 426 static inline void snd_soc_component_set_drvdata(struct snd_soc_component *c, … … 440 462 const char *pin); 441 463 464 /* component controls */ 465 int snd_soc_component_notify_control(struct snd_soc_component *component, 466 const char * const ctl); 467 442 468 /* component driver ops */ 443 469 int snd_soc_component_open(struct snd_soc_component *component, … … 456 482 const struct of_phandle_args *args, 457 483 const char **dai_name); 458 int snd_soc_component_compr_open(struct snd_compr_stream *cstream); 459 void snd_soc_component_compr_free(struct snd_compr_stream *cstream, 484 int snd_soc_component_compr_open(struct snd_soc_component *component, 485 struct snd_compr_stream *cstream); 486 void snd_soc_component_compr_free(struct snd_soc_component *component, 487 struct snd_compr_stream *cstream, 460 488 int rollback); 461 489 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd); … … 482 510 unsigned int cmd, void *arg); 483 511 int snd_soc_pcm_component_sync_stop(struct snd_pcm_substream *substream); 484 int snd_soc_pcm_component_copy _user(struct snd_pcm_substream *substream,485 486 void __user *buf, unsigned long bytes);512 int snd_soc_pcm_component_copy(struct snd_pcm_substream *substream, 513 int channel, unsigned long pos, 514 struct iov_iter *iter, unsigned long bytes); 487 515 struct page *snd_soc_pcm_component_page(struct snd_pcm_substream *substream, 488 516 unsigned long offset); … … 503 531 void *stream, int rollback); 504 532 int snd_soc_pcm_component_ack(struct snd_pcm_substream *substream); 533 void snd_soc_pcm_component_delay(struct snd_pcm_substream *substream, 534 snd_pcm_sframes_t *cpu_delay, snd_pcm_sframes_t *codec_delay); 505 535 506 536 #endif /* __SOC_COMPONENT_H */
Note:
See TracChangeset
for help on using the changeset viewer.