Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
[RFC] Demux blob#2594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
[RFC] Demux blob #2594
Changes from all commits
36692b32d57fa8aa0bf5d064d985b28d96f31058e2a26efebede497dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7,6 +7,7 @@ include(`utils.m4') | ||
| include(`dai.m4') | ||
| include(`pipeline.m4') | ||
| include(`ssp.m4') | ||
| include(`muxdemux.m4') | ||
| # Include TLV library | ||
| include(`common/tlv.m4') | ||
| @@ -19,6 +20,36 @@ include(`platform/intel/bxt.m4') | ||
| DEBUG_START | ||
| dnl Configure demux | ||
| dnl name, pipeline_id, routing_matrix_rows | ||
| dnl Diagonal 1's in routing matrix mean that every input channel is | ||
| dnl copied to corresponding output channels in all output streams. | ||
| dnl I.e. row index is the input channel, 1 means it is copied to | ||
| dnl corresponding output channel (column index), 0 means it is discarded. | ||
| dnl There's a separate matrix for all outputs. | ||
| define(matrix1, `ROUTE_MATRIX(1, | ||
| `BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 1 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,1 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,1 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,1 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,1 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')') | ||
| ||
| define(matrix2, `ROUTE_MATRIX(5, | ||
| `BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 1 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,1 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,1 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,1 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,1 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')') | ||
| dnl name, num_streams, route_matrix list | ||
| MUXDEMUX_CONFIG(demux_priv, 2, LIST(` ', `matrix1,', `matrix2')) | ||
| # | ||
| # Define the pipelines | ||
| # | ||
| @@ -29,6 +60,8 @@ DEBUG_START | ||
| # PCM4 <---- demux | ||
| # | ||
| dnl PIPELINE_PCM_ADD(pipeline, | ||
| dnl pipe id, pcm, max channels, format, | ||
| dnl period, priority, core, | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7,6 +7,7 @@ include(`utils.m4') | ||
| include(`dai.m4') | ||
| include(`pipeline.m4') | ||
| include(`alh.m4') | ||
| include(`muxdemux.m4') | ||
| # Include TLV library | ||
| include(`common/tlv.m4') | ||
| @@ -19,6 +20,39 @@ include(`platform/intel/'PLATFORM`.m4') | ||
| DEBUG_START | ||
| dnl Configure demux | ||
| dnl name, pipeline_id, routing_matrix_rows | ||
| dnl Diagonal 1's in routing matrix mean that every input channel is | ||
| dnl copied to corresponding output channels in all output streams. | ||
| dnl I.e. row index is the input channel, 1 means it is copied to | ||
| dnl corresponding output channel (column index), 0 means it is discarded. | ||
| dnl There's a separate matrix for all outputs. | ||
| ifdef(`MONO', `', | ||
| ` | ||
| define(matrix1, `ROUTE_MATRIX(3, | ||
| `BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 1 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,1 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,1 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,1 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,1 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')') | ||
| define(matrix2, `ROUTE_MATRIX(4, | ||
| `BITS_TO_BYTE(1, 0, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 1, 0 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 1 ,0 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,1 ,0 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,1 ,0 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,1 ,0 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,1 ,0)', | ||
| `BITS_TO_BYTE(0, 0, 0 ,0 ,0 ,0 ,0 ,1)')') | ||
| dnl name, num_streams, route_matrix list | ||
| MUXDEMUX_CONFIG(demux_priv, 2, LIST(` ', `matrix1,', `matrix2')) | ||
bardliao marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| ') | ||
| # | ||
| # Define the pipelines | ||
| # | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -22,17 +22,14 @@ include(`muxdemux.m4') | ||
| include(`mixercontrol.m4') | ||
| include(`bytecontrol.m4') | ||
| # Use default parameters | ||
| include(`demux_coef_default.m4') | ||
| # demux Bytes control with max value of 255 | ||
| C_CONTROLBYTES(DEMUX, PIPELINE_ID, | ||
| CONTROLBYTES_OPS(bytes, 258 binds the mixer control to bytes get/put handlers, 258, 258), | ||
| CONTROLBYTES_EXTOPS(258 binds the mixer control to bytes get/put handlers, 258, 258), | ||
| , , , | ||
| CONTROLBYTES_MAX(, 304), | ||
| , | ||
| DEMUX_priv) | ||
| demux_priv) | ||
juimonen marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| # Volume Mixer control with max value of 32 | ||
| C_CONTROLMIXER(Master Playback Volume, PIPELINE_ID, | ||
Uh oh!
There was an error while loading. Please reload this page.