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>
This commit is contained in:
David.Coutherut
2013-06-11 16:22:57 +02:00
committed by Vinod Koul
parent 4a484e116b
commit ce2b63440f
+4
View File
@@ -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;
}