Browse Source

asoc: codecs: bolero: Add adc1 condition to tx hold callback

TX hold callback returns without making a callback
to external codec if the ADC with number one is called.
Add the condition for the missing ADC to make the callback
for ADC1.

Change-Id: Iec480b40cfbe199fbe06151abd99d9ad6aaf9c9d
Signed-off-by: Karthikeyan Mani <[email protected]>
Karthikeyan Mani 5 years ago
parent
commit
70df516a60
1 changed files with 2 additions and 0 deletions
  1. 2 0
      asoc/codecs/bolero/bolero-cdc.c

+ 2 - 0
asoc/codecs/bolero/bolero-cdc.c

@@ -287,6 +287,8 @@ void bolero_clear_amic_tx_hold(struct device *dev, u16 adc_n)
 	event = BOLERO_WCD_EVT_TX_CH_HOLD_CLEAR;
 	if (adc_n == BOLERO_ADC0)
 		amic = 0x1;
+	else if (adc_n == BOLERO_ADC1)
+		amic = 0x2;
 	else if (adc_n == BOLERO_ADC2)
 		amic = 0x2;
 	else if (adc_n == BOLERO_ADC3)