mirror of
https://gitee.com/openharmony/third_party_alsa-utils
synced 2024-11-27 09:01:36 +00:00
axfer: remove unused variable warnings
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7a3ca6fe6d
commit
3aea4fedf9
@ -381,7 +381,6 @@ static int wave_parser_pre_process(struct container_context *cntr,
|
||||
*format = format_maps[i].format;
|
||||
*samples_per_frame = state->samples_per_frame;
|
||||
*frames_per_second = state->frames_per_second;
|
||||
phys_width /= 8;
|
||||
*byte_count = state->byte_count;
|
||||
|
||||
return 0;
|
||||
|
@ -114,7 +114,6 @@ static int multiple_pre_process(struct mapper_context *mapper,
|
||||
// configured to store one sample per frame.
|
||||
if (mapper->type == MAPPER_TYPE_DEMUXER) {
|
||||
for (i = 0; i < cntr_count; ++i) {
|
||||
cntr = cntrs + i;
|
||||
if (cntrs->samples_per_frame != 1)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -156,7 +156,6 @@ static int list_pcms(snd_pcm_stream_t direction)
|
||||
|
||||
filter = filters[direction];
|
||||
|
||||
n = hints;
|
||||
for (n = hints; *n != NULL; ++n) {
|
||||
io = snd_device_name_get_hint(*n, "IOID");
|
||||
if (io != NULL && strcmp(io, filter) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user