diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-04-05 17:23:42 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2007-04-05 17:23:42 +0200 |
commit | 3f17db2ef5f76d45f2336e63cd1b1211bc5a4afb (patch) | |
tree | d62b4fd263a05c67a0e2ce56cd5ff918d1f8d901 /amixer | |
parent | bb3a24513feee0ebb2378321b86a65f5282d70f1 (diff) |
amixer - show iec958 status bits in contents command
Show first 4 bytes of iec958 status bits for elements with
SND_CTL_ELEM_TYPE_IEC958 in contents command.
Diffstat (limited to 'amixer')
-rw-r--r-- | amixer/amixer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/amixer/amixer.c b/amixer/amixer.c index 2a8db60..a839e1e 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -534,6 +534,7 @@ static int show_control(const char *space, snd_hctl_elem_t *elem, snd_ctl_elem_id_t *id; snd_ctl_elem_info_t *info; snd_ctl_elem_value_t *control; + snd_aes_iec958_t iec958; snd_ctl_elem_id_alloca(&id); snd_ctl_elem_info_alloca(&info); snd_ctl_elem_value_alloca(&control); @@ -605,6 +606,12 @@ static int show_control(const char *space, snd_hctl_elem_t *elem, case SND_CTL_ELEM_TYPE_BYTES: printf("0x%02x", snd_ctl_elem_value_get_byte(control, idx)); break; + case SND_CTL_ELEM_TYPE_IEC958: + snd_ctl_elem_value_get_iec958(control, &iec958); + printf("[AES0=0x%02x AES1=0x%02x AES2=0x%02x AES3=0x%02x]", + iec958.status[0], iec958.status[1], + iec958.status[2], iec958.status[3]); + break; default: printf("?"); break; |