Skip to contentSkip to conversation

ALSA: cs553*: Fix dependencies

PATCH Applied Jean Delvare 2 participants 4 messages Mar 10, 2014 – Mar 11, 2014 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: cs553*: Fix dependencies

The CS5530, CS5535 and CS5536 chipsets are companions of the Geode series of processors, which are 32-bit x86 processors. So the snd-cs5530 and snd-cs5535audio drivers are only needed on this architecture, except for build testing purpose.

Cc Jaya Kumar <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>
---
 sound/pci/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/pci/Kconfig +2 -1
@@ -276,7 +276,7 @@ config SND_CS46XX_NEW_DSP
 
 config SND_CS5530
 	tristate "CS5530 Audio"
-	depends on ISA_DMA_API
+	depends on ISA_DMA_API && (X86_32 || COMPILE_TEST)
 	select SND_SB16_DSP
 	help
 	  Say Y here to include support for audio on Cyrix/NatSemi CS5530 chips.
@@ -286,6 +286,7 @@ config SND_CS5530
 
 config SND_CS5535AUDIO
 	tristate "CS5535/CS5536 Audio"
+	depends on X86_32 || COMPILE_TEST
 	select SND_PCM
 	select SND_AC97_CODEC
 	help
Signature · 2 lines
Jean Delvare
SUSE L3 Support
Applied
#1 lore raw

At Mon, 10 Mar 2014 21:12:26 +0100,

Quoted 10 lines · Jean Delvare

The CS5530, CS5535 and CS5536 chipsets are companions of the Geode series of processors, which are 32-bit x86 processors. So the snd-cs5530 and snd-cs5535audio drivers are only needed on this architecture, except for build testing purpose.

Cc Jaya Kumar <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>

Thanks, applied.

Takashi

Quoted 28 lines
---
 sound/pci/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/pci/Kconfig +2 -1
@@ -276,7 +276,7 @@ config SND_CS46XX_NEW_DSP
 
 config SND_CS5530
 	tristate "CS5530 Audio"
-	depends on ISA_DMA_API
+	depends on ISA_DMA_API && (X86_32 || COMPILE_TEST)
 	select SND_SB16_DSP
 	help
 	  Say Y here to include support for audio on Cyrix/NatSemi CS5530 chips.
@@ -286,6 +286,7 @@ config SND_CS5530
 
 config SND_CS5535AUDIO
 	tristate "CS5535/CS5536 Audio"
+	depends on X86_32 || COMPILE_TEST
 	select SND_PCM
 	select SND_AC97_CODEC
 	help
Signature · 3 lines
-- 
Jean Delvare
SUSE L3 Support
#2 lore raw

Hi Takashi,

Quoted 8 lines · Takashi Iwai

At Mon, 10 Mar 2014 21:12:26 +0100,

Quoted 6 lines · Jean Delvare

The CS5530, CS5535 and CS5536 chipsets are companions of the Geode series of processors, which are 32-bit x86 processors. So the snd-cs5530 and snd-cs5535audio drivers are only needed on this architecture, except for build testing purpose.

Quoted 6 lines
Quoted 4 lines
Cc Jaya Kumar <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>

Thanks, applied.

Hmm, we might have been a bit too quick, sorry. Looking at the defconfig files, it would seem that the CS5536 was also used on some MIPS machines and the CS3350 was also used on some PowerPC machines:

arch/mips/configs/lemote2f_defconfig:CONFIG_SND_CS5535AUDIO=m arch/powerpc/configs/ppc6xx_defconfig:CONFIG_SND_CS5530=m

So assuming these default configuration files are correct, the proper dependencies would be somewhat different. I'll investigate and send an updated or incremental patch, let me know what you prefer.

Signature · 2 lines
Jean Delvare
SUSE L3 Support
#3 lore raw

At Tue, 11 Mar 2014 10:32:01 +0100,

Quoted 23 lines · Jean Delvare

Hi Takashi,

Quoted 8 lines · Takashi Iwai

At Mon, 10 Mar 2014 21:12:26 +0100,

Quoted 6 lines · Jean Delvare

The CS5530, CS5535 and CS5536 chipsets are companions of the Geode series of processors, which are 32-bit x86 processors. So the snd-cs5530 and snd-cs5535audio drivers are only needed on this architecture, except for build testing purpose.

Quoted 6 lines
Quoted 4 lines
Cc Jaya Kumar <[email protected]>
Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>

Thanks, applied.

Hmm, we might have been a bit too quick, sorry. Looking at the defconfig files, it would seem that the CS5536 was also used on some MIPS machines and the CS3350 was also used on some PowerPC machines:

Quoted 6 lines

arch/mips/configs/lemote2f_defconfig:CONFIG_SND_CS5535AUDIO=m arch/powerpc/configs/ppc6xx_defconfig:CONFIG_SND_CS5530=m

So assuming these default configuration files are correct, the proper dependencies would be somewhat different. I'll investigate and send an updated or incremental patch, let me know what you prefer.

Ah, I vaguely remember of MIPS stuff, indeed. I don't know of PPC, but it's no surprise even if there are such.

So, yes, please send an incremental patch to cover these.

thanks,

Takashi