Signed-off-by: Pin-chih Lin <email address hidden>
(cherry picked from commit 6c1dd397f576f17fdaa68222f5da1531432d023e)
2404166...
by
Curtis Malainey <email address hidden>
m4: add RO bytecontrol
Sometimes we want to load a binary block of data without letting
userspace interact with the underlying control. An RO control will do
this exactly by loading the data and providing no write access.
The correct frame length should be calculated by
FRAME_LEN = SAMPLING_RATE * PERIODS / 1000000
The macro COMP_PERIOD_FRAMES does the thing.
Signed-off-by: Curtis Malainey <email address hidden>
Signed-off-by: Ming Jen Tai <email address hidden>
(cherry picked from commit a5fd52ec43f3efe3bea3f3f3a6ee53b71022ad95)
sizeof(struct mux_stream_data) was PLATFORM_MAX_CHANNELS-dependent.
In particular, if PLATFORM_MAX_CHANNELS < 8 the struct becomes
smaller. However in m4/muxdemux.m4, there is no easy way to supply
ROUTE_MATRIX with a smaller matrix other than 8x8 bits.
This commit pads struct mux_stream_data so it always has the a
platform-independent size: as if PLATFORM_MAX_CHANNELS were 8.