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>
(cherry picked from commit ce2b63440f66bb77dc065768272079d0fcf26c18)
diff --git a/mixer.c b/mixer.c
index 9aa2eb2..eee3575 100644
--- a/mixer.c
+++ b/mixer.c
@@ -401,6 +401,10 @@
ev.value.enumerated.item[id] = value;
break;
+ case SNDRV_CTL_ELEM_TYPE_BYTES:
+ ev.value.bytes.data[id] = value;
+ break;
+
default:
return -EINVAL;
}