Merge "dsp: Check ec ref rx port against AFE_PORT_INVALID"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
f6aacbcc7b
@@ -2895,8 +2895,9 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,
|
|||||||
open_v8.endpoint_id_2 = 0xFFFF;
|
open_v8.endpoint_id_2 = 0xFFFF;
|
||||||
open_v8.endpoint_id_3 = 0xFFFF;
|
open_v8.endpoint_id_3 = 0xFFFF;
|
||||||
|
|
||||||
if ((this_adm.ec_ref_rx != -1) &&
|
if (((this_adm.ec_ref_rx & AFE_PORT_INVALID) !=
|
||||||
(path != ADM_PATH_PLAYBACK)) {
|
AFE_PORT_INVALID) &&
|
||||||
|
(path != ADM_PATH_PLAYBACK)) {
|
||||||
if (this_adm.num_ec_ref_rx_chans != 0) {
|
if (this_adm.num_ec_ref_rx_chans != 0) {
|
||||||
open_v8.endpoint_id_2 =
|
open_v8.endpoint_id_2 =
|
||||||
this_adm.ec_ref_rx;
|
this_adm.ec_ref_rx;
|
||||||
|
Reference in New Issue
Block a user