Signed-off-by: Jaroslav Kysela <perex@perex.cz>
unsigned int size;
unsigned int idx = 0;
const char *chmap_type = NULL;
+ int lf = 1;
if (tlv_size < 2 * sizeof(unsigned int)) {
printf("TLV size error!\n");
decode_tlv(spaces + 2, tlv + idx, tlv[idx+1] + 8);
idx += 2 + (tlv[idx+1] + sizeof(unsigned int) - 1) / sizeof(unsigned int);
}
+ lf = 0;
break;
case SND_CTL_TLVT_DB_SCALE:
printf("dBscale-");
}
break;
}
- putc('\n', stdout);
+ if (lf)
+ putc('\n', stdout);
}
static int show_control(const char *space, snd_hctl_elem_t *elem,