From patchwork Fri Feb 16 07:41:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10224143 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A1D8B602CB for ; Fri, 16 Feb 2018 07:55:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9703D29351 for ; Fri, 16 Feb 2018 07:55:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BF6329363; Fri, 16 Feb 2018 07:55:03 +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=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no 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 D5F0729351 for ; Fri, 16 Feb 2018 07:55:02 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A259B267DAE; Fri, 16 Feb 2018 08:54:48 +0100 (CET) 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 8047A267DAE; Fri, 16 Feb 2018 08:54:47 +0100 (CET) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0059.outbound.protection.outlook.com [104.47.40.59]) by alsa0.perex.cz (Postfix) with ESMTP id 539A8267D81 for ; Fri, 16 Feb 2018 08:54:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=SS7FSF0myfL5KUo42ru/t9tPpBwF+Gta6O/k9P7k3Zg=; b=UkTgCbfNyTnR9FIxjVYaoOOmJqCDAp+qYFTEa/5h6WdJH7iXDsGQi6Z+En5oDNNey8uL8HepG/m03XGaajBw1BMtKLdQXyuxo4gG7jS+MC0MHQa6sFZrcT4uVjL3poTzhwTQSkCDakLKUeqftavQKscpZm1axRhsFjmTBil5b6g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; Received: from akshu-HP-EliteBook-745-G2.amd.com (202.56.249.162) by BN6PR1201MB0179.namprd12.prod.outlook.com (10.174.115.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Fri, 16 Feb 2018 07:54:39 +0000 From: Akshu Agrawal To: broonie@kernel.org, alsa-devel@alsa-project.org Date: Fri, 16 Feb 2018 13:11:14 +0530 Message-Id: <1518766875-15164-3-git-send-email-akshu.agrawal@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1518766875-15164-1-git-send-email-akshu.agrawal@amd.com> References: <1518766875-15164-1-git-send-email-akshu.agrawal@amd.com> MIME-Version: 1.0 X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MAXPR0101CA0053.INDPRD01.PROD.OUTLOOK.COM (10.174.63.15) To BN6PR1201MB0179.namprd12.prod.outlook.com (10.174.115.11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 028f57ef-efd1-40f6-124c-08d5751288dc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN6PR1201MB0179; X-Microsoft-Exchange-Diagnostics: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fGzuSGlfJ/gf5mG1DneIvHwit8/W9SO0GJ2/rR8rZviMq6syryKB9NpMacqx7ESpas9mZO7JO/J1mpM/8wYyiOngb/7pcff+iqupt7i2AOkkJYXg3s31Ivbl8YUaHj4BjpdqUMElewNdyx/dmJ487F7cXo4cq2oDHAXWK4ChLOqgaGXWbmC1K59n/JduydjOMvSecG2ghGH22mCBJDAZQKV5CDdn6kc8f61fzg7EmCx3hXCvIgp4xULjMjhFgSjypLM8Sz3DQWCRHTy7GMauXVzuzcLoQFevOV/eXT5GDp6G3FdopGkwfqaVmPWcxJcwOlMIOeIJEVyheSHT5TXWJpvLUL8DPClVG+s+UdKPWvh3V3x; 4:eAJpl+sc/y+9NuT/Jj1Vag6OIg3C8srsK7/PtVMZ1oJis141FxgXko6Mw7MJIId4uveNLlYcYAAhvO73NfkwvpqJOW9GJdbkE96H2wVVtzczvweLgMVxBJXqU3Ef7JI3APf9/fhN+ELd4TVNxF3zwi1r72FrTXP6kWj7GhLM65eYIZXBZuGk9+zvREqB87BiaokVc2iHTjMyEvXMQtZNnAXqSmtKpg7nz+KIpFD4E5kmeOC5kVxkdI9fab/x8CvhfpFzkyg26YRsK95p9Jotgi1XmkYvd2AbjhMFI929LtKLEbKVuxjOKkMOgyrT2BW4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231101)(944501161)(3002001)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN6PR1201MB0179; BCL:0; PCL:0; RULEID:; SRVR:BN6PR1201MB0179; X-Forefront-PRVS: 0585417D7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(39380400002)(376002)(366004)(396003)(189003)(199004)(8676002)(6486002)(51416003)(81156014)(81166006)(105586002)(4326008)(2906002)(16586007)(316002)(386003)(478600001)(50226002)(76176011)(53416004)(7696005)(8936002)(52116002)(72206003)(66066001)(47776003)(53936002)(26005)(6116002)(3846002)(6666003)(2950100002)(16526019)(1857600001)(186003)(36756003)(86362001)(5660300001)(25786009)(39060400002)(7736002)(305945005)(50466002)(48376002)(97736004)(106356001)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB0179; H:akshu-HP-EliteBook-745-G2.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR1201MB0179; 23:qXG6e/mCWFp+3rh0/+Rx8JE4UXwWJFDiLeXmgDl?= =?us-ascii?Q?4mn9JU4b/1baBgV6wTOwkun7GuTn8r8lHzMPPb7NOqjIQmEpIiYzNowi/pGI?= =?us-ascii?Q?FO9H1rI1PBPaHP2VOSbEr+ISOowyPtdk2kfYr7z5YAPLhg6RaOKRidKK3MFi?= =?us-ascii?Q?ZNTk7kqL00mJtzPj5zf0zr42fnoXDrJcXNWGOVNiB54sIDpeBRFCSVpIrX6R?= =?us-ascii?Q?YWVsdfrCTdFxZuS4yZYqzCvK6anuZyoChuUr/uFnolPJ4hiALF3RNF7hHpk3?= =?us-ascii?Q?jOACPPJDvx8CpkT1nyI2Ewrwzc4RZ7qncKWY2OKKvDv1a3ihhJp3cGHwLNMf?= =?us-ascii?Q?SG/cFAoZfTRiiQQ8jY+R3EHbI5UElsdVxqmxmgGQVDyrSoG/F/l50dCQfiqh?= =?us-ascii?Q?36NS/2N+SyGA1IvXcSicvf89KAESsRuthan2AUbJGUx+nyBq+7P+MEdv2toI?= =?us-ascii?Q?t5YW29X48TzXyEiGAa0XtdkvCWqbioNm2I9YCu+UrbSEiWwXTd+ETtnR1kjf?= =?us-ascii?Q?ZzfaqN0KEfbDyGRqLEYD7J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mpIkM5Zm63IbJLzVWPxD4ttZiva0KiEPv4c7r7//zO1i8rNDA6mS7lnHYHDs4Rf5gqbnhnqgDM46VW/lW6LEDBqKb1dhIIRwSjUXcrut4MHMoSqb46XetZxWEAZgxTVQQ=; 5:ZLn74J2qGpM3Savg5s7zRcbwOmVATBg3PtfBxsoHKU0JRrKCCLtJeFb1XGbpZ+Ky2+XTkoNIXswZIFnKnA7VXHQ2dadMFmUT9sbYLkzMHV5eRH8t6cdXorQZfiMJ4N0pJmsyGssIqycaBAK67Lx7AHoH1a2J2Mm3oDK67Rj86so=; 24:+tuVcuIQYXQI6Z96lmJDN+sNvViy+E6DGX/Rbuueuyvdrt+EV4uEjfDZ3Zps+LPBP4QC+HbGqejQ+CYr0G6KbptVtmf6jHmXLuO+Sn8/NxQ=; 7:YoMChXQeCAX2WAfKqbmjPj8UbbcY4JfVlcboB6YsZCLwPb9uZQJq9+WdOi0PjsChW+H2lHo2Q2/6sSNIzP5VB2DufNPpWA1swBhR9nHWqPBiAvmllgU7xEV0vs0dqjplFTkg8DHQAwfgqi6g23R3U+P+n70396CSHkNJnj8hm2Wf0x1o087vX2kkkBbRI/4kUypCSgo/83rIKC5B7JYd8Wes/qCWHdyI4iMD4hxIGuBnqsHmt2wZ9m5V3OcEr0Ko SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0179; 20:UH/D5ifHxsAgnBgVkiX3Anmk9Opdw2p5RARDiu7KpwTuyDiQkOWCHQQYVjgMqXZiGIKCStLi8Funu4rfUeamSj7rLa4hDtiTodxj85G8Ambp5lH/Yw75KfHA50IxUMXQZT8f6Q6QO69bk92w3/rIffxr03jovj3J4zC9+FKz+ITIvfRwrYpg5gZkNchEIIwdUfj7khUJxXNXOGNC3gUBlcQffXoGS16XQeQWN3/68qmGXrVI79zO5X+H/Ker9mD7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2018 07:54:39.0809 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 028f57ef-efd1-40f6-124c-08d5751288dc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0179 Cc: tiwai@suse.de, lgirdwood@gmail.com, akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH] ASoC: DA7219: Exposes clock enable as a mixer setting 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This is required for designs which uses da7219 in master mode and same clks are shared with other codecs. We need to enable and disable the clk during playback and capture on other codecs. Signed-off-by: Akshu Agrawal Reviewed-by: Alex Deucher --- sound/soc/codecs/da7219.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 5e043d0..61ed8be 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -672,6 +672,11 @@ static int da7219_tonegen_freq_put(struct snd_kcontrol *kcontrol, SOC_DOUBLE_R("Headphone ZC Gain Switch", DA7219_HP_L_CTRL, DA7219_HP_R_CTRL, DA7219_HP_L_AMP_ZC_EN_SHIFT, DA7219_SWITCH_EN_MAX, DA7219_NO_INVERT), + + /* Clock Enable */ + SOC_SINGLE("Clock Enable", DA7219_DAI_CLK_MODE, + DA7219_DAI_CLK_EN_SHIFT, DA7219_SWITCH_EN_MAX, + DA7219_NO_INVERT), };