Merge tag 'arm-dt-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git] / include / sound / hdmi-codec.h
index 4b3a1d3..4fc733c 100644 (file)
@@ -65,12 +65,22 @@ struct hdmi_codec_ops {
 
        /*
         * Configures HDMI-encoder for audio stream.
-        * Mandatory
+        * Having either prepare or hw_params is mandatory.
         */
        int (*hw_params)(struct device *dev, void *data,
                         struct hdmi_codec_daifmt *fmt,
                         struct hdmi_codec_params *hparms);
 
+       /*
+        * Configures HDMI-encoder for audio stream. Can be called
+        * multiple times for each setup.
+        *
+        * Having either prepare or hw_params is mandatory.
+        */
+       int (*prepare)(struct device *dev, void *data,
+                      struct hdmi_codec_daifmt *fmt,
+                      struct hdmi_codec_params *hparms);
+
        /*
         * Shuts down the audio stream.
         * Mandatory