]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: hda/ca0132 - Fix microphone inconsistency issues
authorConnor McAdams <conmanx360@gmail.com>
Mon, 8 Oct 2018 19:39:57 +0000 (15:39 -0400)
committerTakashi Iwai <tiwai@suse.de>
Tue, 9 Oct 2018 14:20:24 +0000 (16:20 +0200)
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>
sound/pci/hda/patch_ca0132.c

index b0985045ebed29b6cd86438e63c5e8d2304bdfee..12a3581190af8ab7ff4863150b9afe07aa73c985 100644 (file)
@@ -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;
 
@@ -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;
 
@@ -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;