From patchwork Mon Oct 8 19:39:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Connor McAdams X-Patchwork-Id: 10631371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC1C215E2 for ; Mon, 8 Oct 2018 19:42:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCA3D29B85 for ; Mon, 8 Oct 2018 19:42:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C030E29BA7; Mon, 8 Oct 2018 19:42:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B52029B85 for ; Mon, 8 Oct 2018 19:42:55 +0000 (UTC) Received: from alsa.alsa-project.org (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 6D0DC267981; Mon, 8 Oct 2018 21:42:53 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6233726797C; Mon, 8 Oct 2018 21:42:11 +0200 (CEST) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by alsa0.perex.cz (Postfix) with ESMTP id AE99C26778A for ; Mon, 8 Oct 2018 21:42:09 +0200 (CEST) Received: by mail-qk1-f193.google.com with SMTP id q5-v6so12807640qki.6 for ; Mon, 08 Oct 2018 12:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O001s7whb4Ej4c0eyEFKVYHRXfr2pcp/oR1AMNwDnmw=; b=JwuITDaOA/CZ4j/eCYsiE/5VRdi6PX9M1ydYHhAg1c+c4EgKVprm+Ahy8wWGVbEzmD zYXfZO5gzkeREoe/qQ/m4CAtJNh/ejq/8SOhclBriXkX0iUx/khm2gwJg5aE9wIxOmI2 asmJFqjfqK3hcyJn780KklItNkPqbhzvLu8u/8ftP9jKZQNf16Zy614Glen0wuxx07DV mC6rPE96+/AHCOinMWLyIQKEwDigef5fXwf2W2geToRjzcC3M4PdbejDHcgPiGdz2N6S mNDUACgq8lzIjreAG2w6ZFzBNG/YpGkBoYPLtICRluIKwvqe3EFVFK9bLr0WMij2OAVp g4sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=O001s7whb4Ej4c0eyEFKVYHRXfr2pcp/oR1AMNwDnmw=; b=LBVpif9rDdMFyxQhyN3R2y6DnUiZNJaSQ6G0Q3+TmoUAOtzyt2CeqU2YLSqkURI/7k kbPpdYvlPMxZz/ugYP0sPNY/ixGSUw9IXVdlLX7zpIKC3GlMFNn47DgbYBGCAxLD6UQ4 nAIAv57d9BEKMlHiRqx8JxKjDiaVkebmRtucz1Vh73Ue4LSJUOobME6VR/3a7WOpm3QX 0F7oX3fNmGZ1xEOgH2ZQ2OuthfSTJwKArCAvpT6FeUm+C4oZDLrGyrH7xSIBo9JE2Eh1 /lIYLW0fceDvVkUNgud1GisgG6aU1NcCUX8W05AC8U6aITW5BKjCMgSEGc3Es2B9voQB Nc0w== X-Gm-Message-State: ABuFfohi93ULVAd+ORgZqqQfxwzjoiGfDe3I2Wcur6FJo8YYhsDpaOoM DbvGAa2lruZF1aG9rpnT5O0= X-Google-Smtp-Source: ACcGV63Hzq5moyUfKMEi5XKQw0d/cXvxQpx/a8/RK9VYOmX1Wzo7ucTN4P1cVkPtoTRYAm4Y/NIvyg== X-Received: by 2002:a37:9ac2:: with SMTP id c185-v6mr19304201qke.162.1539027728282; Mon, 08 Oct 2018 12:42:08 -0700 (PDT) Received: from localhost.localdomain ([2605:a000:1316:4273:f812:c27a:7560:4d6a]) by smtp.googlemail.com with ESMTPSA id 76-v6sm13220644qkc.41.2018.10.08.12.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Oct 2018 12:42:07 -0700 (PDT) From: Connor McAdams To: Date: Mon, 8 Oct 2018 15:39:57 -0400 Message-Id: <1539027601-20910-2-git-send-email-conmanx360@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539027601-20910-1-git-send-email-conmanx360@gmail.com> References: <1539027601-20910-1-git-send-email-conmanx360@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Alastair Bridgewater , Takashi Iwai , conmanx360@gmail.com Subject: [alsa-devel] [PATCH 1/4] ALSA: hda/ca0132 - Fix microphone inconsistency issues X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- sound/pci/hda/patch_ca0132.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index b098504..12a3581 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -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;