mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge branch 'fix/rt5645' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-rt5645
This commit is contained in:
commit
2c23b0c10f
1 changed files with 3 additions and 0 deletions
|
|
@ -2927,6 +2927,9 @@ static void rt5645_jack_detect_work(struct work_struct *work)
|
|||
container_of(work, struct rt5645_priv, jack_detect_work.work);
|
||||
int val, btn_type, gpio_state = 0, report = 0;
|
||||
|
||||
if (!rt5645->codec)
|
||||
return -EINVAL;
|
||||
|
||||
switch (rt5645->pdata.jd_mode) {
|
||||
case 0: /* Not using rt5645 JD */
|
||||
if (rt5645->gpiod_hp_det) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue