* [PATCH] ASoC: fsl: fix dependencies for wm8962
@ 2014-09-30 11:43 Arnd Bergmann
2014-09-30 16:45 ` Mark Brown
0 siblings, 1 reply; 11+ messages in thread
From: Arnd Bergmann @ 2014-09-30 11:43 UTC (permalink / raw)
To: linux-arm-kernel
The wm8962 driver uses the input subsystem, but is selected by
SND_SOC_FSL_ASOC_CARD, which can be built with CONFIG_INPUT disabled,
resulting in this link error:
ERROR: "input_event" [sound/soc/codecs/snd-soc-wm8962.ko] undefined!
ERROR: "input_register_device" [sound/soc/codecs/snd-soc-wm8962.ko] undefined!
ERROR: "devm_input_allocate_device" [sound/soc/codecs/snd-soc-wm8962.ko] undefined!
This adds an explicit Kconfig dependency to prevent this configuration
from being used.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 708b4351f08 ("ASoC: fsl: Add Freescale Generic ASoC Sound Card with ASRC support")
diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig
index 6164e78b466a..99e9386f7956 100644
--- a/sound/soc/fsl/Kconfig
+++ b/sound/soc/fsl/Kconfig
@@ -282,7 +282,7 @@ config SND_SOC_IMX_MC13783
config SND_SOC_FSL_ASOC_CARD
tristate "Generic ASoC Sound Card with ASRC support"
- depends on OF && I2C
+ depends on OF && I2C && INPUT
select SND_SOC_IMX_AUDMUX
select SND_SOC_IMX_PCM_DMA
select SND_SOC_FSL_ESAI
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 11:43 [PATCH] ASoC: fsl: fix dependencies for wm8962 Arnd Bergmann
@ 2014-09-30 16:45 ` Mark Brown
2014-09-30 17:38 ` Fabio Estevam
2014-09-30 17:42 ` Nicolin Chen
0 siblings, 2 replies; 11+ messages in thread
From: Mark Brown @ 2014-09-30 16:45 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 01:43:41PM +0200, Arnd Bergmann wrote:
> The wm8962 driver uses the input subsystem, but is selected by
> SND_SOC_FSL_ASOC_CARD, which can be built with CONFIG_INPUT disabled,
> resulting in this link error:
That select shouldn't be there in the first place, I asked Nicolin to
fix this when I applied the driver but he's not got round to it yet.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140930/e13a18ea/attachment.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 16:45 ` Mark Brown
@ 2014-09-30 17:38 ` Fabio Estevam
2014-09-30 19:43 ` Nicolin Chen
2014-09-30 17:42 ` Nicolin Chen
1 sibling, 1 reply; 11+ messages in thread
From: Fabio Estevam @ 2014-09-30 17:38 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 1:45 PM, Mark Brown <broonie@kernel.org> wrote:
> On Tue, Sep 30, 2014 at 01:43:41PM +0200, Arnd Bergmann wrote:
>> The wm8962 driver uses the input subsystem, but is selected by
>> SND_SOC_FSL_ASOC_CARD, which can be built with CONFIG_INPUT disabled,
>> resulting in this link error:
>
> That select shouldn't be there in the first place, I asked Nicolin to
> fix this when I applied the driver but he's not got round to it yet.
Would the below change be a proper fix?
diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig
index 6164e78..081e406 100644
--- a/sound/soc/fsl/Kconfig
+++ b/sound/soc/fsl/Kconfig
@@ -288,9 +288,6 @@ config SND_SOC_FSL_ASOC_CARD
select SND_SOC_FSL_ESAI
select SND_SOC_FSL_SAI
select SND_SOC_FSL_SSI
- select SND_SOC_CS42XX8_I2C
- select SND_SOC_SGTL5000
- select SND_SOC_WM8962
help
ALSA SoC Audio support with ASRC feature for Freescale SoCs that have
ESAI/SAI/SSI and connect with external CODECs such as WM8962, CS42888
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 16:45 ` Mark Brown
2014-09-30 17:38 ` Fabio Estevam
@ 2014-09-30 17:42 ` Nicolin Chen
2014-09-30 23:09 ` Mark Brown
1 sibling, 1 reply; 11+ messages in thread
From: Nicolin Chen @ 2014-09-30 17:42 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 05:45:10PM +0100, Mark Brown wrote:
> On Tue, Sep 30, 2014 at 01:43:41PM +0200, Arnd Bergmann wrote:
> > The wm8962 driver uses the input subsystem, but is selected by
> > SND_SOC_FSL_ASOC_CARD, which can be built with CONFIG_INPUT disabled,
> > resulting in this link error:
>
> That select shouldn't be there in the first place, I asked Nicolin to
> fix this when I applied the driver but he's not got round to it yet.
I think I might have missed something around those days, even though
the 'Applied' mail seemly doesn't have any comment against this part:
http://mailman.alsa-project.org/pipermail/alsa-devel/2014-August/080083.html
Is that possible for you to copy and paste the comments again?
Thank you
Nicolin
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 17:38 ` Fabio Estevam
@ 2014-09-30 19:43 ` Nicolin Chen
2014-09-30 19:48 ` Fabio Estevam
0 siblings, 1 reply; 11+ messages in thread
From: Nicolin Chen @ 2014-09-30 19:43 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 02:38:49PM -0300, Fabio Estevam wrote:
> On Tue, Sep 30, 2014 at 1:45 PM, Mark Brown <broonie@kernel.org> wrote:
> > That select shouldn't be there in the first place, I asked Nicolin to
> > fix this when I applied the driver but he's not got round to it yet.
>
> Would the below change be a proper fix?
>
> diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig
> index 6164e78..081e406 100644
> --- a/sound/soc/fsl/Kconfig
> +++ b/sound/soc/fsl/Kconfig
> - select SND_SOC_CS42XX8_I2C
> - select SND_SOC_SGTL5000
> - select SND_SOC_WM8962
Okay..if Mark means this...I think it makes sense to me now.
But in this case, we shall add them into imx_v6_v7_defconfig instead.
Thank you
Nicolin
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 19:43 ` Nicolin Chen
@ 2014-09-30 19:48 ` Fabio Estevam
2014-09-30 20:37 ` Nicolin Chen
0 siblings, 1 reply; 11+ messages in thread
From: Fabio Estevam @ 2014-09-30 19:48 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 4:43 PM, Nicolin Chen <nicoleotsuka@gmail.com> wrote:
> On Tue, Sep 30, 2014 at 02:38:49PM -0300, Fabio Estevam wrote:
>> On Tue, Sep 30, 2014 at 1:45 PM, Mark Brown <broonie@kernel.org> wrote:
>> > That select shouldn't be there in the first place, I asked Nicolin to
>> > fix this when I applied the driver but he's not got round to it yet.
>>
>> Would the below change be a proper fix?
>>
>> diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig
>> index 6164e78..081e406 100644
>> --- a/sound/soc/fsl/Kconfig
>> +++ b/sound/soc/fsl/Kconfig
>
>> - select SND_SOC_CS42XX8_I2C
>> - select SND_SOC_SGTL5000
>> - select SND_SOC_WM8962
>
> Okay..if Mark means this...I think it makes sense to me now.
>
> But in this case, we shall add them into imx_v6_v7_defconfig instead.
We already have
CONFIG_SND_SOC_IMX_WM8962=y
CONFIG_SND_SOC_IMX_SGTL5000=y
in imx_v6_v7_defconfig.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 19:48 ` Fabio Estevam
@ 2014-09-30 20:37 ` Nicolin Chen
0 siblings, 0 replies; 11+ messages in thread
From: Nicolin Chen @ 2014-09-30 20:37 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 04:48:01PM -0300, Fabio Estevam wrote:
> >> - select SND_SOC_CS42XX8_I2C
> >> - select SND_SOC_SGTL5000
> >> - select SND_SOC_WM8962
> >
> > Okay..if Mark means this...I think it makes sense to me now.
> >
> > But in this case, we shall add them into imx_v6_v7_defconfig instead.
>
> We already have
> CONFIG_SND_SOC_IMX_WM8962=y
> CONFIG_SND_SOC_IMX_SGTL5000=y
>
> in imx_v6_v7_defconfig.
Yea, and these are two things I plan to drop...
So when enabling the FSL_ASOC_CARD, I also needs to put those three
into it as well.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 17:42 ` Nicolin Chen
@ 2014-09-30 23:09 ` Mark Brown
2014-09-30 23:26 ` Nicolin Chen
0 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2014-09-30 23:09 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 10:42:42AM -0700, Nicolin Chen wrote:
> On Tue, Sep 30, 2014 at 05:45:10PM +0100, Mark Brown wrote:
> > That select shouldn't be there in the first place, I asked Nicolin to
> > fix this when I applied the driver but he's not got round to it yet.
> I think I might have missed something around those days, even though
> the 'Applied' mail seemly doesn't have any comment against this part:
> http://mailman.alsa-project.org/pipermail/alsa-devel/2014-August/080083.html
> Is that possible for you to copy and paste the comments again?
I suspect it was on an earlier version of the patch or a cover letter;
IIRC you were resending while I was reviewing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141001/04bf7c83/attachment.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 23:09 ` Mark Brown
@ 2014-09-30 23:26 ` Nicolin Chen
2014-10-01 12:22 ` Mark Brown
0 siblings, 1 reply; 11+ messages in thread
From: Nicolin Chen @ 2014-09-30 23:26 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Oct 01, 2014 at 12:09:06AM +0100, Mark Brown wrote:
> On Tue, Sep 30, 2014 at 10:42:42AM -0700, Nicolin Chen wrote:
> > On Tue, Sep 30, 2014 at 05:45:10PM +0100, Mark Brown wrote:
>
> > > That select shouldn't be there in the first place, I asked Nicolin to
> > > fix this when I applied the driver but he's not got round to it yet.
>
> > I think I might have missed something around those days, even though
> > the 'Applied' mail seemly doesn't have any comment against this part:
> > http://mailman.alsa-project.org/pipermail/alsa-devel/2014-August/080083.html
>
> > Is that possible for you to copy and paste the comments again?
>
> I suspect it was on an earlier version of the patch or a cover letter;
> IIRC you were resending while I was reviewing.
I checked the Archive, the patch only got one version without cover
letter. And this version only got one reply which is the Applied mail.
I guess your earlier reply might have been swallowed somehow so I
couldn't read it.
Anyway, it's my fault that I didn't pay attention to the Kconfig part.
The driver is initially designed for imx-cs42888, but I changed my mind
to merge it with others before I sent it. And I didn't rewrite the part
inside the Kconfig. Will be careful next time.
And I think Fabio's suggestion/patch has no problem right?
Thank you
Nicolin
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-09-30 23:26 ` Nicolin Chen
@ 2014-10-01 12:22 ` Mark Brown
2014-10-01 17:51 ` Nicolin Chen
0 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2014-10-01 12:22 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Sep 30, 2014 at 04:26:18PM -0700, Nicolin Chen wrote:
> I checked the Archive, the patch only got one version without cover
> letter. And this version only got one reply which is the Applied mail.
> I guess your earlier reply might have been swallowed somehow so I
> couldn't read it.
No, there were definitely at least two versions.
> And I think Fabio's suggestion/patch has no problem right?
That is the fix I was asking for.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141001/375cba9e/attachment-0001.sig>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH] ASoC: fsl: fix dependencies for wm8962
2014-10-01 12:22 ` Mark Brown
@ 2014-10-01 17:51 ` Nicolin Chen
0 siblings, 0 replies; 11+ messages in thread
From: Nicolin Chen @ 2014-10-01 17:51 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Oct 01, 2014 at 01:22:34PM +0100, Mark Brown wrote:
> On Tue, Sep 30, 2014 at 04:26:18PM -0700, Nicolin Chen wrote:
>
> > I checked the Archive, the patch only got one version without cover
> > letter. And this version only got one reply which is the Applied mail.
> > I guess your earlier reply might have been swallowed somehow so I
> > couldn't read it.
>
> No, there were definitely at least two versions.
Sorry if I've really missed something.
And I still can't find any other reply. I sent the patch with
a RFC tag, so I wouldn't ignore any comment to it, especially
the comment from you sir.
>
> > And I think Fabio's suggestion/patch has no problem right?
>
> That is the fix I was asking for.
Is there any other comment against the driver you can remember?
Thank you
Nicolin
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-10-01 17:51 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 11:43 [PATCH] ASoC: fsl: fix dependencies for wm8962 Arnd Bergmann
2014-09-30 16:45 ` Mark Brown
2014-09-30 17:38 ` Fabio Estevam
2014-09-30 19:43 ` Nicolin Chen
2014-09-30 19:48 ` Fabio Estevam
2014-09-30 20:37 ` Nicolin Chen
2014-09-30 17:42 ` Nicolin Chen
2014-09-30 23:09 ` Mark Brown
2014-09-30 23:26 ` Nicolin Chen
2014-10-01 12:22 ` Mark Brown
2014-10-01 17:51 ` Nicolin Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).