diff options
Diffstat (limited to 'include/sound/compress_driver.h')
-rw-r--r-- | include/sound/compress_driver.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/compress_driver.h b/include/sound/compress_driver.h index f2912abacdf3..ff6c74153fa1 100644 --- a/include/sound/compress_driver.h +++ b/include/sound/compress_driver.h | |||
@@ -71,6 +71,8 @@ struct snd_compr_runtime { | |||
71 | * @runtime: pointer to runtime structure | 71 | * @runtime: pointer to runtime structure |
72 | * @device: device pointer | 72 | * @device: device pointer |
73 | * @direction: stream direction, playback/recording | 73 | * @direction: stream direction, playback/recording |
74 | * @metadata_set: metadata set flag, true when set | ||
75 | * @next_track: has userspace signall next track transistion, true when set | ||
74 | * @private_data: pointer to DSP private data | 76 | * @private_data: pointer to DSP private data |
75 | */ | 77 | */ |
76 | struct snd_compr_stream { | 78 | struct snd_compr_stream { |
@@ -79,6 +81,8 @@ struct snd_compr_stream { | |||
79 | struct snd_compr_runtime *runtime; | 81 | struct snd_compr_runtime *runtime; |
80 | struct snd_compr *device; | 82 | struct snd_compr *device; |
81 | enum snd_compr_direction direction; | 83 | enum snd_compr_direction direction; |
84 | bool metadata_set; | ||
85 | bool next_track; | ||
82 | void *private_data; | 86 | void *private_data; |
83 | }; | 87 | }; |
84 | 88 | ||
@@ -110,6 +114,10 @@ struct snd_compr_ops { | |||
110 | struct snd_compr_params *params); | 114 | struct snd_compr_params *params); |
111 | int (*get_params)(struct snd_compr_stream *stream, | 115 | int (*get_params)(struct snd_compr_stream *stream, |
112 | struct snd_codec *params); | 116 | struct snd_codec *params); |
117 | int (*set_metadata)(struct snd_compr_stream *stream, | ||
118 | struct snd_compr_metadata *metadata); | ||
119 | int (*get_metadata)(struct snd_compr_stream *stream, | ||
120 | struct snd_compr_metadata *metadata); | ||
113 | int (*trigger)(struct snd_compr_stream *stream, int cmd); | 121 | int (*trigger)(struct snd_compr_stream *stream, int cmd); |
114 | int (*pointer)(struct snd_compr_stream *stream, | 122 | int (*pointer)(struct snd_compr_stream *stream, |
115 | struct snd_compr_tstamp *tstamp); | 123 | struct snd_compr_tstamp *tstamp); |