Sound Control: MSM8960DT/APQ8064 ONLY: Fix logic derp

mixed up rec lock and power amp lock :'(

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
This commit is contained in:
Paul Reioux 2014-08-19 14:43:30 -04:00 committed by followmsi
parent 528e70238d
commit 8dcf6aa290
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ int snd_hax_reg_access(unsigned int reg)
case TABLA_A_RX_HPH_R_GAIN:
case TABLA_A_RX_HPH_L_STATUS:
case TABLA_A_RX_HPH_R_STATUS:
if (snd_rec_ctrl_locked > 1)
if (snd_ctrl_locked > 1)
ret = 0;
break;
case TABLA_A_CDC_RX1_VOL_CTL_B2_CTL:
@ -158,7 +158,7 @@ int snd_hax_reg_access(unsigned int reg)
case TABLA_A_CDC_TX8_VOL_CTL_GAIN:
case TABLA_A_CDC_TX9_VOL_CTL_GAIN:
case TABLA_A_CDC_TX10_VOL_CTL_GAIN:
if (snd_ctrl_locked > 0)
if (snd_rec_ctrl_locked > 0)
ret = 0;
break;
default: