mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:55:42 +01:00
amixer: do not double LF for container type
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7d7c988e05
commit
5828279b5d
1 changed files with 4 additions and 1 deletions
|
@ -453,6 +453,7 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
unsigned int idx = 0;
|
unsigned int idx = 0;
|
||||||
const char *chmap_type = NULL;
|
const char *chmap_type = NULL;
|
||||||
|
int lf = 1;
|
||||||
|
|
||||||
if (tlv_size < 2 * sizeof(unsigned int)) {
|
if (tlv_size < 2 * sizeof(unsigned int)) {
|
||||||
printf("TLV size error!\n");
|
printf("TLV size error!\n");
|
||||||
|
@ -480,6 +481,7 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_
|
||||||
decode_tlv(spaces + 2, tlv + idx, tlv[idx+1] + 8);
|
decode_tlv(spaces + 2, tlv + idx, tlv[idx+1] + 8);
|
||||||
idx += 2 + (tlv[idx+1] + sizeof(unsigned int) - 1) / sizeof(unsigned int);
|
idx += 2 + (tlv[idx+1] + sizeof(unsigned int) - 1) / sizeof(unsigned int);
|
||||||
}
|
}
|
||||||
|
lf = 0;
|
||||||
break;
|
break;
|
||||||
case SND_CTL_TLVT_DB_SCALE:
|
case SND_CTL_TLVT_DB_SCALE:
|
||||||
printf("dBscale-");
|
printf("dBscale-");
|
||||||
|
@ -581,6 +583,7 @@ static void decode_tlv(unsigned int spaces, unsigned int *tlv, unsigned int tlv_
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (lf)
|
||||||
putc('\n', stdout);
|
putc('\n', stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue