Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp115021lqs; Thu, 13 Jun 2024 05:43:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBq75b87TgA3+vz43agQR/jf9yh424pT6qhmiiC5wtdaO3MW2CZhKWJfeQC/ZofyUgOwI23hS/0wl2uJe3GCn2G29f6ylsa7PEZwdxiQ== X-Google-Smtp-Source: AGHT+IFnlvVVpMbMosGtuQbi40+AvkBek5uqFrty526gF7bBsPp5b16Gpeq0gzUVj5P7zW8iupEu X-Received: by 2002:a17:907:72cb:b0:a6f:5431:366b with SMTP id a640c23a62f3a-a6f54314496mr191796466b.42.1718282594245; Thu, 13 Jun 2024 05:43:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718282594; cv=pass; d=google.com; s=arc-20160816; b=nJTy4cKAjGlv81+8apB5WZLZFrDRyGcM2VPWPWT3KoYQMNoYBQyR4oLw+bmTnZNjDV wr/0Ve5xVhbP0uMVVZGJFn2bvQ40OnTd+iESjkuUT8Ni82PundmaCxqmGHkcVGUwZY5b A1mdfnXtNJrht/w86mR0d3OmE6kGEVS8y8PGDDFQ52C13nd+uXIT+T4RjJmxvnZEK4fL o4ZlJf+VBG+B61U0iLyEYG9jGr4f75Ns9RDU8ojyNl0me1+OrGiZo1CrY3ZuBacbkZZU 2E8SSHPchF6boHrrLkfBMhUswtgZAF4QEISHFNBKUbsq5elCRtznsS8QQ/Nf4WvdxbbT Lk1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=8U3dMXngmkBtVM3jPXHQhakytYCFzeNC5q9L/Q2hlTk=; fh=/58khMfmVak75eUCux82Zz62ZNFjL4ABI7Z5x50cerE=; b=YDzmeVx4yX7pZiDZarszho3+LU3F9I86OIVZe5o4Tmv/pJptN0E4unErm1IGGmnqBB ezVIAupyqvoZgzMZ4fIFq+/gwPrDIa+oSV58en7MJ0iIKNvqktGn/EUGSozZ1vxur+QK g3CB83hrone+xABNMjV9G7oPUhz5BTTlmvhiAulLfWNQCItAE/msW179avUwh5kU6Pdb nXhC7xg+MRRgHu5WblAUvwZn3x4Svz/UW/7/kDuC8QvNLhZ6wg4r7pKkhpfJwyjqn6MJ 6zurf7bd6LrpHY80XSfuAAfqZDCl5CvfTPdlOM9oZ0vLOy9yYKZ+PCHPIz9joSyGyWOR vaBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="fq/BtvHX"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PrPVfGbD; dkim=neutral (no key) header.i=@suse.de; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-213212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df73fdsi63477666b.540.2024.06.13.05.43.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 05:43:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="fq/BtvHX"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=PrPVfGbD; dkim=neutral (no key) header.i=@suse.de; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-213212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213212-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B36E21F24B1A for ; Thu, 13 Jun 2024 12:36:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 360FF3C24; Thu, 13 Jun 2024 12:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="fq/BtvHX"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="kNhNRnGy"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="PrPVfGbD"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="q2LD2wmz" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC80F441D for ; Thu, 13 Jun 2024 12:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282175; cv=none; b=t+RPdaPaIOhb+hi33bzCCDOBjDYkkCoReDTOH5J6+TVChX2ycN7E7x9thvb/xBs51rLboXL5duxb6JK4j/9C2x+XKifTQGiVKiNA3/4LFax5Pa3KysoPQyV/t43mjk0bR4jQChMFuMrZNf2o6Mh6YyjdnX4Lo+A4NulPu0Lx/lo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282175; c=relaxed/simple; bh=sFnumGq0FcH5zMjWPpjF2N6XyYSbcjK42uJL+OPfYEE=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=uRhxyILxLspGguOrjQdieFxoxFhuQCdQpk+3IZzky71Mw9M7wPHGlOHhS6gvkxAGbxZchOpW69RyqecBdE2ylxypEVTbXO131/7uwfat0fxHTHiOEAvI/uWBVXDzOGBtCIqscZbu8yeGaccM4jjfAdJoIQrAJ/hWPj28gtrM8EM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=fq/BtvHX; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=kNhNRnGy; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=PrPVfGbD; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=q2LD2wmz; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 887D63716C; Thu, 13 Jun 2024 12:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718282171; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8U3dMXngmkBtVM3jPXHQhakytYCFzeNC5q9L/Q2hlTk=; b=fq/BtvHXeWeaW2fBbFu1piuFVL91QUYziFWuovljmLtXSM1wARITzV4v5hAb3p0T9GtdMu cbeOVfgawaLNfVttoQI/+NSIR3ESDe4Zr4WaTvl4Zsk9gB1tgIixMksoN+cdWio4EOD5Ss 8PsDmEoThwxFs3MzuYYqObfUyyslZeo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718282171; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8U3dMXngmkBtVM3jPXHQhakytYCFzeNC5q9L/Q2hlTk=; b=kNhNRnGy30F54VQ3nBLBAzWP4P8m/vJBknWX6qm4tTHBcbwR6NZ0WViLKejL8prK8uH2zG iMu6+AlwXmqKuwCw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718282170; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8U3dMXngmkBtVM3jPXHQhakytYCFzeNC5q9L/Q2hlTk=; b=PrPVfGbD05wbWXCgHVx7uzlNJQzPaR7ERYV5ZDP7KSmFm8k3hUBNWCNXT9eM7/9bN0OiDX W/gcnCYXMDxEZ9YT8hRcrb2ujpU5MyfYQLNnudMkt6lOsQrvbzU8uw/00K/hk+z9ccsmSr kurw9B1+M+Ft3LaoVA5YM1srJzjAJjc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718282170; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8U3dMXngmkBtVM3jPXHQhakytYCFzeNC5q9L/Q2hlTk=; b=q2LD2wmz1GNmgPoLxza3WPYPcaD+ta5OXdqDbnEG2wYT7MxmmLATMHRZE24PmTm0OVQ/Fb rRY/4DC77Eb4DVBQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 16B2E13A7F; Thu, 13 Jun 2024 12:36:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id LbD0A7rnamaQKgAAD6G6ig (envelope-from ); Thu, 13 Jun 2024 12:36:10 +0000 Date: Thu, 13 Jun 2024 14:36:33 +0200 Message-ID: <875xudnhny.wl-tiwai@suse.de> From: Takashi Iwai To: Baojun Xu Cc: , , , , , , , , <13916275206@139.com>, , , , , , , , , Subject: Re: [PATCH v7 1/1] ALSA: hda/tas2781: Add tas2781 hda driver based on SPI In-Reply-To: <20240613082633.388-2-baojun.xu@ti.com> References: <20240613082633.388-1-baojun.xu@ti.com> <20240613082633.388-2-baojun.xu@ti.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -1.80 X-Spam-Level: X-Spam-Flag: NO X-Spamd-Result: default: False [-1.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TAGGED_RCPT(0.00)[dt]; RCPT_COUNT_TWELVE(0.00)[19]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVRCPT(0.00)[139.com,gmail.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[kernel.org,linux.intel.com,gmail.com,perex.cz,ti.com,139.com,alsa-project.org,vger.kernel.org,intel.com,irl.hu]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo] On Thu, 13 Jun 2024 10:26:33 +0200, Baojun Xu wrote: > --- a/sound/pci/hda/Makefile > +++ b/sound/pci/hda/Makefile > @@ -70,6 +70,8 @@ obj-$(CONFIG_SND_HDA_SCODEC_CS35L56_SPI) += snd-hda-scodec-cs35l56-spi.o > obj-$(CONFIG_SND_HDA_CS_DSP_CONTROLS) += snd-hda-cs-dsp-ctls.o > obj-$(CONFIG_SND_HDA_SCODEC_COMPONENT) += snd-hda-scodec-component.o > obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_I2C) += snd-hda-scodec-tas2781-i2c.o > +obj-$(CONFIG_SND_HDA_SCODEC_TAS2781_SPI) += snd-hda-scodec-tas2781-spi.o > +snd-hda-scodec-tas2781-spi-y := tas2781_hda_spi.o tas2781_spi_fwlib.o Try to put *-y addition to the right place. There are the section defining snd-hda-codec-*-y. > +#define TASDEVICE_REG(book, page, reg) (((book & GENMASK(7, 0)) << 16) + \ > + ((page & GENMASK(7, 0)) << 8) + \ > + ((reg & GENMASK(6, 0)) << 1)) Usually bits are combined with '|', not '+'. > +/* Firmware block Checksum */ > +#define TASDEVICE_Checksum TASDEVICE_REG(0x0, 0x0, 0x7e) Use capital letters. ... and at this point, I noticed that the patch doesn't contain the code for sound/pci/hda/tas2781_spi_fwlib.c at all. The patch must be utterly broken. *PLEASE* try to apply and build the patch to submit beforehand from the clean state and verify it really works. thanks, Takashi