Skip to content

Commit

Permalink
intel_sst: Set de-bounce time
Browse files Browse the repository at this point in the history
In order to make jack detection behave properly, we have to set
the de-bounce time, otherwise, some weird events happens:
e.g. no plug-out event seen.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Lu Guanqun authored and Greg Kroah-Hartman committed May 10, 2011
1 parent 8a251ff commit cd57391
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/staging/intel_sst/intelmid_v2_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ enum reg_v3 {
HPLMIXSEL = 0x12b,
HPRMIXSEL = 0x12c,
LOANTIPOP = 0x12d,
AUXDBNC = 0x12f,
};

/****
Expand Down Expand Up @@ -859,7 +860,10 @@ static int nc_set_selected_input_dev(u8 value)
sc_access[3].reg_addr = 0x105;
sc_access[3].value = 0x40;
sc_access[3].mask = MASK6;
num_val = 4;
sc_access[4].reg_addr = AUXDBNC;
sc_access[4].mask = MASK7|MASK6|MASK5|MASK4|MASK3|MASK2|MASK1|MASK0;
sc_access[4].value = 0xff;
num_val = 5;
break;

case DMIC:
Expand Down

0 comments on commit cd57391

Please sign in to comment.