diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2011-10-24 15:00:17 -0500 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-10-27 11:24:39 -0700 |
commit | 52510160f90bb583f4eaf1392533b8a2108323c7 (patch) | |
tree | babb21a7e4fe00e5b4cf2b145deee7ec655eb211 /mixer.c | |
parent | a912d706c1583e60096c1b4c54dfec2c68547eb8 (diff) |
mixer: show BYTE controls
Use existing routines to read BYTE controls. Somewhat inefficient
since an ioctl is done for every byte, some caching in intermediate
fields would be beneficial.
Diffstat (limited to 'mixer.c')
-rw-r--r-- | mixer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -306,6 +306,9 @@ int mixer_ctl_get_value(struct mixer_ctl *ctl, unsigned int id) case SNDRV_CTL_ELEM_TYPE_ENUMERATED: return ev.value.enumerated.item[id]; + case SNDRV_CTL_ELEM_TYPE_BYTES: + return ev.value.bytes.data[id]; + default: return -EINVAL; } |