Ignore:
Timestamp:
Aug 21, 2021, 3:35:34 AM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/soc-component.h

    r679 r695  
    102102        /* DT */
    103103        int (*of_xlate_dai_name)(struct snd_soc_component *component,
    104                                  struct of_phandle_args *args,
     104                                 const struct of_phandle_args *args,
    105105                                 const char **dai_name);
    106106        int (*of_xlate_dai_id)(struct snd_soc_component *comment,
     
    147147                    struct snd_pcm_substream *substream,
    148148                    struct vm_area_struct *vma);
     149        int (*ack)(struct snd_soc_component *component,
     150                   struct snd_pcm_substream *substream);
    149151
    150152        const struct snd_compress_ops *compress_ops;
     
    221223        struct snd_pcm_substream *mark_module;
    222224        struct snd_pcm_substream *mark_open;
     225        struct snd_pcm_substream *mark_hw_params;
     226        struct snd_pcm_substream *mark_trigger;
     227        struct snd_compr_stream  *mark_compr_open;
    223228        void *mark_pm;
    224229
     
    334339                               struct snd_soc_aux_dev *aux);
    335340int snd_soc_component_init(struct snd_soc_component *component);
     341int snd_soc_component_is_dummy(struct snd_soc_component *component);
    336342
    337343/* component IO */
     
    350356                                unsigned int reg, unsigned int mask,
    351357                                unsigned int value);
     358
     359unsigned int snd_soc_component_read_field(struct snd_soc_component *component,
     360                                          unsigned int reg, unsigned int mask);
     361int snd_soc_component_write_field(struct snd_soc_component *component,
     362                                  unsigned int reg, unsigned int mask,
     363                                  unsigned int val);
    352364
    353365/* component wide operations */
     
    442454                                      struct device_node *ep);
    443455int snd_soc_component_of_xlate_dai_name(struct snd_soc_component *component,
    444                                         struct of_phandle_args *args,
     456                                        const struct of_phandle_args *args,
    445457                                        const char **dai_name);
     458int snd_soc_component_compr_open(struct snd_compr_stream *cstream);
     459void snd_soc_component_compr_free(struct snd_compr_stream *cstream,
     460                                  int rollback);
     461int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd);
     462int snd_soc_component_compr_set_params(struct snd_compr_stream *cstream,
     463                                       struct snd_compr_params *params);
     464int snd_soc_component_compr_get_params(struct snd_compr_stream *cstream,
     465                                       struct snd_codec *params);
     466int snd_soc_component_compr_get_caps(struct snd_compr_stream *cstream,
     467                                     struct snd_compr_caps *caps);
     468int snd_soc_component_compr_get_codec_caps(struct snd_compr_stream *cstream,
     469                                           struct snd_compr_codec_caps *codec);
     470int snd_soc_component_compr_ack(struct snd_compr_stream *cstream, size_t bytes);
     471int snd_soc_component_compr_pointer(struct snd_compr_stream *cstream,
     472                                    struct snd_compr_tstamp *tstamp);
     473int snd_soc_component_compr_copy(struct snd_compr_stream *cstream,
     474                                 char __user *buf, size_t count);
     475int snd_soc_component_compr_set_metadata(struct snd_compr_stream *cstream,
     476                                         struct snd_compr_metadata *metadata);
     477int snd_soc_component_compr_get_metadata(struct snd_compr_stream *cstream,
     478                                         struct snd_compr_metadata *metadata);
    446479
    447480int snd_soc_pcm_component_pointer(struct snd_pcm_substream *substream);
     
    460493int snd_soc_pcm_component_prepare(struct snd_pcm_substream *substream);
    461494int snd_soc_pcm_component_hw_params(struct snd_pcm_substream *substream,
    462                                     struct snd_pcm_hw_params *params,
    463                                     struct snd_soc_component **last);
     495                                    struct snd_pcm_hw_params *params);
    464496void snd_soc_pcm_component_hw_free(struct snd_pcm_substream *substream,
    465                                    struct snd_soc_component *last);
     497                                   int rollback);
    466498int snd_soc_pcm_component_trigger(struct snd_pcm_substream *substream,
    467                                   int cmd);
     499                                  int cmd, int rollback);
    468500int snd_soc_pcm_component_pm_runtime_get(struct snd_soc_pcm_runtime *rtd,
    469501                                         void *stream);
    470502void snd_soc_pcm_component_pm_runtime_put(struct snd_soc_pcm_runtime *rtd,
    471503                                          void *stream, int rollback);
     504int snd_soc_pcm_component_ack(struct snd_pcm_substream *substream);
    472505
    473506#endif /* __SOC_COMPONENT_H */
Note: See TracChangeset for help on using the changeset viewer.