From 52510160f90bb583f4eaf1392533b8a2108323c7 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Mon, 24 Oct 2011 15:00:17 -0500 Subject: 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. --- mixer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mixer.c') diff --git a/mixer.c b/mixer.c index 5563bc6..a7f5d21 100644 --- a/mixer.c +++ b/mixer.c @@ -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; } -- cgit v1.2.3