[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5h34vwufiz.wl-tiwai@suse.de>
Date: Thu, 21 Dec 2023 09:27:16 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Stefan Binding <sbinding@...nsource.cirrus.com>
Cc: Takashi Iwai <tiwai@...e.de>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
<alsa-devel@...a-project.org>,
<linux-sound@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
<patches@...nsource.cirrus.com>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH v1 2/2] ALSA: hda: cs35l41: Only add SPI CS GPIO if SPI is enabled in kernel
On Wed, 20 Dec 2023 09:10:37 +0100,
Takashi Iwai wrote:
>
> On Tue, 19 Dec 2023 17:22:32 +0100,
> Stefan Binding wrote:
> >
> > If CONFIG_SPI is not set in the kernel, there is no point in trying
> > to set the chip selects. We can selectively compile it.
>
> I guess it should with IS_REACHABLE() instead of IS_ENABLED()?
> It can be still CONFIG_SPI=m while CONFIG_SND_HDA_*=y.
In anyway, I applied the patches as is for now, as it should work in most cases.
Let's see whether the use of IS_REACHABLE() is required.
thanks,
Takashi
Powered by blists - more mailing lists