Skip to content

Commit 2db1a57

Browse files
djbwtiwai
authored andcommitted
ALSA: pci: depend on ZONE_DMA
There are several sound drivers that 'select ZONE_DMA'. This is backwards as ZONE_DMA is an architecture capability exported to drivers. Switch the polarity of the dependency to disable these drivers when the architecture does not support ZONE_DMA. This was discovered in the context of testing/enabling devm_memremap_pages() which depends on ZONE_DEVICE. ZONE_DEVICE in turn depends on !ZONE_DMA. Reported-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 909cadc commit 2db1a57

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

sound/pci/Kconfig

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ config SND_ALS300
2525
select SND_PCM
2626
select SND_AC97_CODEC
2727
select SND_OPL3_LIB
28-
select ZONE_DMA
28+
depends on ZONE_DMA
2929
help
3030
Say 'Y' or 'M' to include support for Avance Logic ALS300/ALS300+
3131

@@ -50,7 +50,7 @@ config SND_ALI5451
5050
tristate "ALi M5451 PCI Audio Controller"
5151
select SND_MPU401_UART
5252
select SND_AC97_CODEC
53-
select ZONE_DMA
53+
depends on ZONE_DMA
5454
help
5555
Say Y here to include support for the integrated AC97 sound
5656
device on motherboards using the ALi M5451 Audio Controller
@@ -155,7 +155,7 @@ config SND_AZT3328
155155
select SND_PCM
156156
select SND_RAWMIDI
157157
select SND_AC97_CODEC
158-
select ZONE_DMA
158+
depends on ZONE_DMA
159159
help
160160
Say Y here to include support for Aztech AZF3328 (PCI168)
161161
soundcards.
@@ -463,7 +463,7 @@ config SND_EMU10K1
463463
select SND_HWDEP
464464
select SND_RAWMIDI
465465
select SND_AC97_CODEC
466-
select ZONE_DMA
466+
depends on ZONE_DMA
467467
help
468468
Say Y to include support for Sound Blaster PCI 512, Live!,
469469
Audigy and E-mu APS (partially supported) soundcards.
@@ -479,7 +479,7 @@ config SND_EMU10K1X
479479
tristate "Emu10k1X (Dell OEM Version)"
480480
select SND_AC97_CODEC
481481
select SND_RAWMIDI
482-
select ZONE_DMA
482+
depends on ZONE_DMA
483483
help
484484
Say Y here to include support for the Dell OEM version of the
485485
Sound Blaster Live!.
@@ -513,7 +513,7 @@ config SND_ES1938
513513
select SND_OPL3_LIB
514514
select SND_MPU401_UART
515515
select SND_AC97_CODEC
516-
select ZONE_DMA
516+
depends on ZONE_DMA
517517
help
518518
Say Y here to include support for soundcards based on ESS Solo-1
519519
(ES1938, ES1946, ES1969) chips.
@@ -525,7 +525,7 @@ config SND_ES1968
525525
tristate "ESS ES1968/1978 (Maestro-1/2/2E)"
526526
select SND_MPU401_UART
527527
select SND_AC97_CODEC
528-
select ZONE_DMA
528+
depends on ZONE_DMA
529529
help
530530
Say Y here to include support for soundcards based on ESS Maestro
531531
1/2/2E chips.
@@ -612,7 +612,7 @@ config SND_ICE1712
612612
select SND_MPU401_UART
613613
select SND_AC97_CODEC
614614
select BITREVERSE
615-
select ZONE_DMA
615+
depends on ZONE_DMA
616616
help
617617
Say Y here to include support for soundcards based on the
618618
ICE1712 (Envy24) chip.
@@ -700,7 +700,7 @@ config SND_LX6464ES
700700
config SND_MAESTRO3
701701
tristate "ESS Allegro/Maestro3"
702702
select SND_AC97_CODEC
703-
select ZONE_DMA
703+
depends on ZONE_DMA
704704
help
705705
Say Y here to include support for soundcards based on ESS Maestro 3
706706
(Allegro) chips.
@@ -806,7 +806,7 @@ config SND_SIS7019
806806
tristate "SiS 7019 Audio Accelerator"
807807
depends on X86_32
808808
select SND_AC97_CODEC
809-
select ZONE_DMA
809+
depends on ZONE_DMA
810810
help
811811
Say Y here to include support for the SiS 7019 Audio Accelerator.
812812

@@ -818,7 +818,7 @@ config SND_SONICVIBES
818818
select SND_OPL3_LIB
819819
select SND_MPU401_UART
820820
select SND_AC97_CODEC
821-
select ZONE_DMA
821+
depends on ZONE_DMA
822822
help
823823
Say Y here to include support for soundcards based on the S3
824824
SonicVibes chip.
@@ -830,7 +830,7 @@ config SND_TRIDENT
830830
tristate "Trident 4D-Wave DX/NX; SiS 7018"
831831
select SND_MPU401_UART
832832
select SND_AC97_CODEC
833-
select ZONE_DMA
833+
depends on ZONE_DMA
834834
help
835835
Say Y here to include support for soundcards based on Trident
836836
4D-Wave DX/NX or SiS 7018 chips.

0 commit comments

Comments
 (0)