Skip to content

Commit abef00d

Browse files
committed
Change hw_stream to not be const
Signed-off-by: Vincent Knecht <vincent.knecht@mailoo.org>
1 parent e57f19f commit abef00d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

audio/audio_hw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ struct stream_out_common {
126126

127127
out_close_fn close;
128128
struct audio_device *dev;
129-
const struct hw_stream *hw;
129+
struct hw_stream *hw;
130130

131131
pthread_mutex_t lock;
132132

@@ -2159,7 +2159,7 @@ static int adev_open_output_stream_v3(struct audio_hw_device *dev,
21592159
config->format, config->channel_mask, config->sample_rate, flags);
21602160

21612161
devices &= AUDIO_DEVICE_OUT_ALL;
2162-
const struct hw_stream *hw = get_stream(adev->cm, devices, flags, config);
2162+
struct hw_stream *hw = get_stream(adev->cm, devices, flags, config);
21632163
if (!hw) {
21642164
ALOGE("No suitable output stream for devices=0x%x flags=0x%x format=0x%x",
21652165
devices, flags, config->format);

configmgr/audio_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ static bool open_stream_l(struct config_mgr *cm, struct stream *s)
865865
}
866866
}
867867

868-
const struct hw_stream *get_stream(struct config_mgr *cm,
868+
struct hw_stream *get_stream(struct config_mgr *cm,
869869
const audio_devices_t devices,
870870
const audio_output_flags_t flags,
871871
const struct audio_config *config )

include/tinyhal/audio_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ uint32_t get_supported_output_devices( struct config_mgr *cm );
130130
* Note that this only considers unnamed streams (those without a 'name'
131131
* attribute). For named streams use get_named_stream().
132132
*/
133-
const struct hw_stream *get_stream( struct config_mgr *cm,
133+
struct hw_stream *get_stream( struct config_mgr *cm,
134134
const audio_devices_t devices,
135135
const audio_output_flags_t flags,
136136
const struct audio_config *config );

0 commit comments

Comments
 (0)