diff options
author | David.Coutherut <davidx.coutherut@intel.com> | 2013-06-11 16:22:57 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-08-12 13:54:57 +0530 |
commit | ce2b63440f66bb77dc065768272079d0fcf26c18 (patch) | |
tree | 6ab2f00b970ce5d4f8270a5deefe684354440fcf | |
parent | 4a484e116b1d351f732ea172dcd9cf00e29edf20 (diff) |
tinyalsa: unable to set BYTE mixer
tinyalsa set mixer function didn't support BYTE element
type
Add BYTE element type support
Change-Id: I95d1d82150805f16cc5103bac9c9c9500210bbbf
Signed-off-by: David Coutherut <davidx.coutherut@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | mixer.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -401,6 +401,10 @@ int mixer_ctl_set_value(struct mixer_ctl *ctl, unsigned int id, int value) ev.value.enumerated.item[id] = value; break; + case SNDRV_CTL_ELEM_TYPE_BYTES: + ev.value.bytes.data[id] = value; + break; + default: return -EINVAL; } |