Skip to content

Commit

Permalink
ALSA: hda/ca0132 - Fix microphone inconsistency issues
Browse files Browse the repository at this point in the history
This patch fixes microphone inconsistency issues by adding a delay to
each setup_defaults function. Without this, the microphone only works
intermittently.

Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Connor McAdams authored and Takashi Iwai committed Oct 9, 2018
1 parent 40c5167 commit a88bcc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sound/pci/hda/patch_ca0132.c
Original file line number Diff line number Diff line change
Expand Up @@ -7223,6 +7223,8 @@ static void r3d_setup_defaults(struct hda_codec *codec)
int num_fx;
int idx, i;

msleep(100);

if (spec->dsp_state != DSP_DOWNLOADED)
return;

Expand Down Expand Up @@ -7267,6 +7269,8 @@ static void sbz_setup_defaults(struct hda_codec *codec)
int num_fx;
int idx, i;

msleep(100);

if (spec->dsp_state != DSP_DOWNLOADED)
return;

Expand Down Expand Up @@ -7324,6 +7328,8 @@ static void ae5_setup_defaults(struct hda_codec *codec)
int num_fx;
int idx, i;

msleep(100);

if (spec->dsp_state != DSP_DOWNLOADED)
return;

Expand Down

0 comments on commit a88bcc8

Please sign in to comment.