mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "asoc: bolero: Update mask of wsa macro" into audio-drivers.lnx.5.0
This commit is contained in:
commit
a2531a80df
1 changed files with 4 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
#define NUM_INTERPOLATORS 2
|
||||
|
||||
#define WSA_MACRO_MUX_INP_SHFT 0x3
|
||||
#define WSA_MACRO_MUX_INP_MASK1 0x38
|
||||
#define WSA_MACRO_MUX_INP_MASK1 0x07
|
||||
#define WSA_MACRO_MUX_INP_MASK2 0x38
|
||||
#define WSA_MACRO_MUX_CFG_OFFSET 0x8
|
||||
#define WSA_MACRO_MUX_CFG1_OFFSET 0x4
|
||||
|
|
@ -620,10 +620,10 @@ static int wsa_macro_set_prim_interpolator_rate(struct snd_soc_dai *dai,
|
|||
inp0_sel = int_mux_cfg0_val & WSA_MACRO_MUX_INP_MASK1;
|
||||
inp1_sel = (int_mux_cfg0_val >>
|
||||
WSA_MACRO_MUX_INP_SHFT) &
|
||||
WSA_MACRO_MUX_INP_MASK2;
|
||||
WSA_MACRO_MUX_INP_MASK1;
|
||||
inp2_sel = (int_mux_cfg1_val >>
|
||||
WSA_MACRO_MUX_INP_SHFT) &
|
||||
WSA_MACRO_MUX_INP_MASK2;
|
||||
WSA_MACRO_MUX_INP_MASK1;
|
||||
if ((inp0_sel == int_1_mix1_inp + INTn_1_INP_SEL_RX0) ||
|
||||
(inp1_sel == int_1_mix1_inp + INTn_1_INP_SEL_RX0) ||
|
||||
(inp2_sel == int_1_mix1_inp + INTn_1_INP_SEL_RX0)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue