Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp518173pxv; Thu, 8 Jul 2021 07:46:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLRvMMAtQOaVxzlDvccvXHF0XH/Y/mFt2Wlh1yo8vOVuWkj4v3K37BjcDaWMATtksjBXJZ X-Received: by 2002:a17:906:3a53:: with SMTP id a19mr31395010ejf.88.1625755597420; Thu, 08 Jul 2021 07:46:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625755597; cv=pass; d=google.com; s=arc-20160816; b=ZDjAg6sn5/2dxIzXUd1tXMUtLMruSp8syCFisNjclOCeXRbuMdkJxU+ugl+CYL5w19 k6KsTvzCNFexmV0bvJN4QovOSyZAABpDh8ZN9SCPvUgQ+4HeiuAXZqYI+W81Sl7DxiHL M9MYRXQHlPEzhhUjXaRaChorqmtk3JWqEub2O4lC/OK4jz3jcPnvYqrK9k/5DQGWLHHl n9rze69cmUNOIo1aX164cejpwXK/DVSDmqpw7j8SHlbC0nEj1cjhXX3px42ir78Hkxfo M7TxFBrEyq0VS9CYy7dKXEpZi7xBbqVNwuDC553I7X9m9E/fM/SCXoW4omKnR0C1JsIm fU7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=IisNIfFcacSt9B+zA20THXqZqSrOTSEJlUOEvAHmTL4=; b=HffMtaKOFz8em6yepoAHGLXRg2Qt24FKktDXNolB+IH+4okUmdtdIATnXcV+RYL0iE 6/ENM+aiXtnCdqDk5aGhJnK4XncLN51p+DfVOyhfk48CTI0S9U8lI8lOySpN3WSFnr8C lcFsSYbyAOGyp4JNZozFzMS5jOr4DAV42k7tq1+C6T1ahmRVbdA8daXd7OESmuLJaT3Z fG+g8xWLpfkWflj6OgXEMwL+eH4IGh5u0HylL9A+soFBIBtzvTEDeP1aJC2HQX/o/3lW nCPal2pSVmdlckbitJ8hHYI67X+h1C3vufRizZK7m5xN0Y3D5SZTwL68ishC4QeHoRwW AYWg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Z2yW7c1w; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id my36si3143031ejc.337.2021.07.08.07.46.13; Thu, 08 Jul 2021 07:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Z2yW7c1w; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbhGHOrr (ORCPT + 99 others); Thu, 8 Jul 2021 10:47:47 -0400 Received: from mail-bn8nam11on2078.outbound.protection.outlook.com ([40.107.236.78]:47952 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231790AbhGHOrr (ORCPT ); Thu, 8 Jul 2021 10:47:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TncGuH9882yrF0bX8PWaAATkWPDLZ+eoO2hjjpYGvymAJpQCA7g6ZhPgMd83uvXPjXJjlGK+/9YWWBtHfUhPI3k8ybEJpobapOGAIZaAVYpK/q6Bgw0AREcR6v68IWrKyEUmTh3qdrBHT+2hNTuQqsOa7jfuu4QgXf19LWj1YUMbBc/DXOGLf6D9+UHTBfhOKpCvv/V9Fo0BMkM3f+JFwpNbG6OJjafLTmEFmqxROh9a9bllINVDI2CzPhHnVO+KLeDDduaaSLQgqs57NOwNotq2ONxjgAyKLqqG9/dsNJ9eMlFwAO0ugvCutdcK+6YqwHvxajW1ZBbbBdCyXaK39Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IisNIfFcacSt9B+zA20THXqZqSrOTSEJlUOEvAHmTL4=; b=lHCmHX/Adc04hIjjohzWeCfiur8Z0hyMz5xz4t1CR1LQyKg3+XdY0G5J02jR8x6QQQZ5ooppt7nae3Bj31MTA9Veo0oWTvFBUh/autq7957xGgPtV7J0E6JwsFnTQ4ltoDoI/+N0qpe8vt/3ktpNjZkNlfnsmV/MRUrhnXqm9ooVb00LPQlyLgSXbqlExB271zUNHSm7e7/3xKzScOdsrWO4beZYq1mNly6Mhj1aVafTTJfCcb5CGwoBIYKugpXM7/nIVGfj2caa94ZTD4EQaQ2+7io3HNOIT5FqaQxx40RpBUbYHI3NzX/2Kvf/YrOyKLQgTzwvlMMilyN7FQMTVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IisNIfFcacSt9B+zA20THXqZqSrOTSEJlUOEvAHmTL4=; b=Z2yW7c1wulBCmqJ2LN3VF09LAmNApQ73kM5vQSBkha0quw6/uJzXmwsfcVitWPXH+S74gC9WP4B2jSilkCXbbcSYJ9Lhhea5OzEAmTBJQ4x8Zy13GrfdWI56cv/+ovqjxlNHd+572lXd763qakEJ9bV980o2hUxoF9rTi3dBw5E= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from CY4PR1201MB2550.namprd12.prod.outlook.com (2603:10b6:903:ce::13) by CY4PR1201MB2517.namprd12.prod.outlook.com (2603:10b6:903:da::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.22; Thu, 8 Jul 2021 14:45:01 +0000 Received: from CY4PR1201MB2550.namprd12.prod.outlook.com ([fe80::d53a:8bc9:23fa:46bb]) by CY4PR1201MB2550.namprd12.prod.outlook.com ([fe80::d53a:8bc9:23fa:46bb%7]) with mapi id 15.20.4287.033; Thu, 8 Jul 2021 14:45:01 +0000 Subject: Re: [PATCH 04/12] ASoC: amd: create acp5x platform devices To: Mark Brown Cc: alsa-devel@alsa-project.org, Alexander.Deucher@amd.com, Sunil-kumar.Dommati@amd.com, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , open list References: <20210707055623.27371-1-vijendar.mukunda@amd.com> <20210707055623.27371-5-vijendar.mukunda@amd.com> <20210707162206.GF4394@sirena.org.uk> From: "Mukunda,Vijendar" Message-ID: <2361319f-805d-e3e8-d86c-e0ecd39233ea@amd.com> Date: Thu, 8 Jul 2021 20:32:38 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 In-Reply-To: <20210707162206.GF4394@sirena.org.uk> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SGXP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::36) To CY4PR1201MB2550.namprd12.prod.outlook.com (2603:10b6:903:ce::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [10.252.93.39] (165.204.159.242) by SGXP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Thu, 8 Jul 2021 14:44:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b9fbef85-885b-4235-adf4-08d9421ef6e5 X-MS-TrafficTypeDiagnostic: CY4PR1201MB2517: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4BhtD5xQ+3u19+aL10aJI4UIAun7J44yBoQ7vUhPT4AUhLp9zewvNv42DDvclAatTfGDHR8mCd1hL3clsdw+JbyRQBbjbG9PBq03XuvWvhtucjJlz6rxK+U2LGKOlGyMHtNTlfH7xvXv/HX7NHM+MZWJvu8EzaKaq4ocOV1qujnL5pwwqfMrr0ckc6LGyNP8M0Ty8wooQZz46neJ1TQ5Y2zhMQizMAu4VFHw0BgXPmGTJbQ0oNJ9NM0uKwNLGkyiNRC1yav4bN0LBIvZlU+EMxWT3uhGfxVZ5h5y8ozM9xVpfx5srP9MlMu1wcqUC9SDZSZmR2LrABwkahVzVO/jCC2efQedVC+YHnCqgi4WxJW7FvTLAV2bJ/zY5Oco40O2lp9SLWRJYjdZNekfGcAfR1gQ+vaP4/ASulKZ7k5VyHynNKfK75SupNgOQrhql70hm04LXxyrUcuP5C7Omnusbq7h2pF35/7DkEZDuq4al7URlqkuj0xVzkIhE3yJ/2rnzQmtNlB2pWa07OaRYurW/qZ2Hhu/3UIhPsG6wUOYvehXFlSyaZH725mkejh+vjmFZbfVQHsh4r0aAnBrIyti8XstiZhzLnHRy7MeXb4YCSt1F3M9J1I4Vdheo5p3n7gYkZhl9pD2itg2ftr9eQczayG1nx1SEP/nEJKy85PRIhxDkA5CLjI3D73CYri1kttjh/Fc3RBMqsoAO9BkStMv9GzT0cNaYNRUdS9DOlqcLkHGGU/hpM7RROl2Ul+RfCF17ab3uvVzyByXQ6Qs/xTwo+tRkm221fxXbHprLKA7FH4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR1201MB2550.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(376002)(366004)(136003)(396003)(6666004)(66476007)(66556008)(36756003)(38100700002)(2616005)(956004)(26005)(66946007)(83380400001)(8936002)(4326008)(8676002)(186003)(2906002)(53546011)(316002)(54906003)(31686004)(16576012)(6916009)(86362001)(31696002)(5660300002)(478600001)(6486002)(42413003)(32563001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?MnquP61O2YiuUB1u5PLAYveUXHNa12VZybleCuEiuLmkVHJRQ3SoB9Ff?= =?Windows-1252?Q?XSl1Bmj+uzQGT81xUSnvnMoAiZRxdZ48GMgY8ASRZ8LnAYijLw7idwmS?= =?Windows-1252?Q?u2CexYyY8Su+hxDOPOo18pycWKUm1aFssfy7AT/72nxuynLx5L9yJQxJ?= =?Windows-1252?Q?KVq1HnZkY3V9UtRWDSGua+5MuGe6nEjd5KmQStCba0xJrAGvqJ2kSidk?= =?Windows-1252?Q?9dFYSH4m7uW3b2TKVCcZzb8jLiQEL1VbSB0LuzQI2RySs3qp+k+6Jdnw?= =?Windows-1252?Q?zFY1nod89oj4qy3GE9LvR2JunW/vL80CjN3dDVtsWMHkKh+w5/yMTdWS?= =?Windows-1252?Q?p5WrkKMiIEXRQnPs4+PWZ9BDniUIYV+dzzj7KFVz4UwCeXudia8QuAqH?= =?Windows-1252?Q?30PIYLeCysFzsUSZRNxN6gCU9rYsEgzwvoiiWJbBgtp08+nR4sRZBo4C?= =?Windows-1252?Q?DrpozkCOlfF8TefpPwmxxkRETo/PO8KD+LUjN8US2gb0WzSs/in3+OJk?= =?Windows-1252?Q?RFMRyMCjNex5a8BhdWauFRmOzpyewvuAblKe3ZrYAgJDM8UALwi5R6n2?= =?Windows-1252?Q?8wPu/22nmnr+dS36pXLiy7M/+/UPZi0SF7oib+Oh2vlk2xNeLS6V5epe?= =?Windows-1252?Q?2IkkCxcNc+F1vuR8F/QZ5GXYcn/huXwNHZxjIFLAsGwEOSNCT8NW61B9?= =?Windows-1252?Q?wsErOeMg66L8I+Hdyv/4UyiguuYIFYkxe6zRMg4qvPYjarNLXYzqQe/b?= =?Windows-1252?Q?Qi6Uhio2Dhl0ek0pMFzOM0zY+nk+LEzMl6v5cW/mD0XhTFJLQvY30ckR?= =?Windows-1252?Q?R7AoMxkkZfmNEKwb+pBly/lqwpantgMIktUroNv4BVY1cXSxCfAdoBsz?= =?Windows-1252?Q?aPSbp6m6LuQ+d5+ZZl4CAzXOnzDPpHPhTacaCRa36fcAr2GPRNT9bLaG?= =?Windows-1252?Q?1+FcMSWxuZnkCtelR7fPpYo0XN7neybWxO5wJC4oDr9xqp6SJm/jXZg1?= =?Windows-1252?Q?N+PDSalY6kL18tYHLXGqWgjMfJTpMhx4ebzqQhSawoH27V09UvGls2Lh?= =?Windows-1252?Q?ROgClcL60VISO2cQGg0P6U2Nn1PQBsd5bJ269KhI1jbudDR0UxPsoOw2?= =?Windows-1252?Q?ct6FLHnHkrh3qL1hdmWJwRgpqEGaB9qPs7sy+j28Lu29tjrUjaeE/GPo?= =?Windows-1252?Q?0kxiMRCmrJ6juaNURBMoY79UNWu32DEUGDVmax5p54akveJeV64k0E7l?= =?Windows-1252?Q?7wGpGRKr6kjsPPm38tX3037cuBpT6qpEuFyoYupdHDguPZskXB0drSY6?= =?Windows-1252?Q?KdcQ9J0Ejtx3VpVWOKkjcy1IvaBYLNAXr8BauqIFbb5B5///kxTRhOPc?= =?Windows-1252?Q?oWvrqqTHZ+ZanlGc49bL5TDPe/UFuZPNLArt5hBrNqAjMfmj39UTbb08?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9fbef85-885b-4235-adf4-08d9421ef6e5 X-MS-Exchange-CrossTenant-AuthSource: CY4PR1201MB2550.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 14:45:01.1953 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: erppkhV5xpp6qCGFztUw6baKWZ2G5WHTo2lYSgGXNvwA3nHE2uSJ1g2+yhO2hpaJdKYQfZ9Z2Jg0UhV8XLUASA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB2517 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/21 9:52 PM, Mark Brown wrote: > On Wed, Jul 07, 2021 at 11:26:15AM +0530, Vijendar Mukunda wrote: > >> +#define I2S_MODE 0x00 >> +#define ACP5x_I2S_MODE 0x00 > > All the other constants are namespaced so why the plain I2S_MODE? Already we have defined ACP5x_I2S_MODE to check whether ACP Audio mode is set to I2S or not. I2S_MODE macro to match one of the value of ACP_PIN_CONFIG which will be programmed from BIOS based on Audio Configuration. When few other audio modes added, will move ACP_PIN_CONFIG macro definitions to enum. > >> + val = acp_readl(adata->acp5x_base + ACP_PIN_CONFIG); >> + switch (val) { >> + case I2S_MODE: > > ... > >> + break; >> + default: >> + dev_info(&pci->dev, "ACP audio mode : %d\n", val); >> + } > > Given that anything other than I2S is basically unhandled should we > perhaps print an error rather than just an info message > As mentioned above, ACP IP also supports other audio configurations. When other audio configuration is selected, ACP PCI driver should be loaded. see - efb38304c(ASoC: amd: support other audio modes for raven)