diff options
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/control.c | 2 | ||||
-rw-r--r-- | sound/core/info.c | 4 | ||||
-rw-r--r-- | sound/core/init.c | 8 | ||||
-rw-r--r-- | sound/core/pcm.c | 10 | ||||
-rw-r--r-- | sound/core/pcm_native.c | 2 | ||||
-rw-r--r-- | sound/core/rtctimer.c | 4 | ||||
-rw-r--r-- | sound/core/sound_oss.c | 2 | ||||
-rw-r--r-- | sound/core/timer.c | 4 |
8 files changed, 18 insertions, 18 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index d8aa206e8bde..c228f00e5701 100644 --- a/sound/core/control.c +++ b/sound/core/control.c | |||
@@ -151,7 +151,7 @@ void snd_ctl_notify(struct snd_card *card, unsigned int mask, | |||
151 | if (snd_BUG_ON(!card || !id)) | 151 | if (snd_BUG_ON(!card || !id)) |
152 | return; | 152 | return; |
153 | read_lock(&card->ctl_files_rwlock); | 153 | read_lock(&card->ctl_files_rwlock); |
154 | #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) | 154 | #if IS_ENABLED(CONFIG_SND_MIXER_OSS) |
155 | card->mixer_oss_change_count++; | 155 | card->mixer_oss_change_count++; |
156 | #endif | 156 | #endif |
157 | list_for_each_entry(ctl, &card->ctl_files, list) { | 157 | list_for_each_entry(ctl, &card->ctl_files, list) { |
diff --git a/sound/core/info.c b/sound/core/info.c index e79baa11b60e..7916c07b9324 100644 --- a/sound/core/info.c +++ b/sound/core/info.c | |||
@@ -540,7 +540,7 @@ int __init snd_info_init(void) | |||
540 | snd_oss_root = entry; | 540 | snd_oss_root = entry; |
541 | } | 541 | } |
542 | #endif | 542 | #endif |
543 | #if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE) | 543 | #if IS_ENABLED(CONFIG_SND_SEQUENCER) |
544 | { | 544 | { |
545 | struct snd_info_entry *entry; | 545 | struct snd_info_entry *entry; |
546 | if ((entry = snd_info_create_module_entry(THIS_MODULE, "seq", NULL)) == NULL) | 546 | if ((entry = snd_info_create_module_entry(THIS_MODULE, "seq", NULL)) == NULL) |
@@ -567,7 +567,7 @@ int __exit snd_info_done(void) | |||
567 | snd_minor_info_done(); | 567 | snd_minor_info_done(); |
568 | snd_info_version_done(); | 568 | snd_info_version_done(); |
569 | if (snd_proc_root) { | 569 | if (snd_proc_root) { |
570 | #if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE) | 570 | #if IS_ENABLED(CONFIG_SND_SEQUENCER) |
571 | snd_info_free_entry(snd_seq_root); | 571 | snd_info_free_entry(snd_seq_root); |
572 | #endif | 572 | #endif |
573 | #ifdef CONFIG_SND_OSSEMUL | 573 | #ifdef CONFIG_SND_OSSEMUL |
diff --git a/sound/core/init.c b/sound/core/init.c index 0d42fcda0de2..a16d765cdf47 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -94,7 +94,7 @@ static int module_slot_match(struct module *module, int idx) | |||
94 | return match; | 94 | return match; |
95 | } | 95 | } |
96 | 96 | ||
97 | #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) | 97 | #if IS_ENABLED(CONFIG_SND_MIXER_OSS) |
98 | int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); | 98 | int (*snd_mixer_oss_notify_callback)(struct snd_card *card, int free_flag); |
99 | EXPORT_SYMBOL(snd_mixer_oss_notify_callback); | 99 | EXPORT_SYMBOL(snd_mixer_oss_notify_callback); |
100 | #endif | 100 | #endif |
@@ -394,7 +394,7 @@ int snd_card_disconnect(struct snd_card *card) | |||
394 | /* phase 3: notify all connected devices about disconnection */ | 394 | /* phase 3: notify all connected devices about disconnection */ |
395 | /* at this point, they cannot respond to any calls except release() */ | 395 | /* at this point, they cannot respond to any calls except release() */ |
396 | 396 | ||
397 | #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) | 397 | #if IS_ENABLED(CONFIG_SND_MIXER_OSS) |
398 | if (snd_mixer_oss_notify_callback) | 398 | if (snd_mixer_oss_notify_callback) |
399 | snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_DISCONNECT); | 399 | snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_DISCONNECT); |
400 | #endif | 400 | #endif |
@@ -430,7 +430,7 @@ EXPORT_SYMBOL(snd_card_disconnect); | |||
430 | */ | 430 | */ |
431 | static int snd_card_do_free(struct snd_card *card) | 431 | static int snd_card_do_free(struct snd_card *card) |
432 | { | 432 | { |
433 | #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) | 433 | #if IS_ENABLED(CONFIG_SND_MIXER_OSS) |
434 | if (snd_mixer_oss_notify_callback) | 434 | if (snd_mixer_oss_notify_callback) |
435 | snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_FREE); | 435 | snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_FREE); |
436 | #endif | 436 | #endif |
@@ -723,7 +723,7 @@ int snd_card_register(struct snd_card *card) | |||
723 | snd_cards[card->number] = card; | 723 | snd_cards[card->number] = card; |
724 | mutex_unlock(&snd_card_mutex); | 724 | mutex_unlock(&snd_card_mutex); |
725 | init_info_for_card(card); | 725 | init_info_for_card(card); |
726 | #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE) | 726 | #if IS_ENABLED(CONFIG_SND_MIXER_OSS) |
727 | if (snd_mixer_oss_notify_callback) | 727 | if (snd_mixer_oss_notify_callback) |
728 | snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_REGISTER); | 728 | snd_mixer_oss_notify_callback(card, SND_MIXER_OSS_NOTIFY_REGISTER); |
729 | #endif | 729 | #endif |
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index e1e9e0c999fe..091a05c1d5b3 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -295,7 +295,7 @@ static const char *snd_pcm_state_name(snd_pcm_state_t state) | |||
295 | return snd_pcm_state_names[(__force int)state]; | 295 | return snd_pcm_state_names[(__force int)state]; |
296 | } | 296 | } |
297 | 297 | ||
298 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 298 | #if IS_ENABLED(CONFIG_SND_PCM_OSS) |
299 | #include <linux/soundcard.h> | 299 | #include <linux/soundcard.h> |
300 | 300 | ||
301 | static const char *snd_pcm_oss_format_name(int format) | 301 | static const char *snd_pcm_oss_format_name(int format) |
@@ -398,7 +398,7 @@ static void snd_pcm_substream_proc_hw_params_read(struct snd_info_entry *entry, | |||
398 | snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); | 398 | snd_iprintf(buffer, "rate: %u (%u/%u)\n", runtime->rate, runtime->rate_num, runtime->rate_den); |
399 | snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); | 399 | snd_iprintf(buffer, "period_size: %lu\n", runtime->period_size); |
400 | snd_iprintf(buffer, "buffer_size: %lu\n", runtime->buffer_size); | 400 | snd_iprintf(buffer, "buffer_size: %lu\n", runtime->buffer_size); |
401 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 401 | #if IS_ENABLED(CONFIG_SND_PCM_OSS) |
402 | if (substream->oss.oss) { | 402 | if (substream->oss.oss) { |
403 | snd_iprintf(buffer, "OSS format: %s\n", snd_pcm_oss_format_name(runtime->oss.format)); | 403 | snd_iprintf(buffer, "OSS format: %s\n", snd_pcm_oss_format_name(runtime->oss.format)); |
404 | snd_iprintf(buffer, "OSS channels: %u\n", runtime->oss.channels); | 404 | snd_iprintf(buffer, "OSS channels: %u\n", runtime->oss.channels); |
@@ -651,7 +651,7 @@ int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count) | |||
651 | struct snd_pcm_str *pstr = &pcm->streams[stream]; | 651 | struct snd_pcm_str *pstr = &pcm->streams[stream]; |
652 | struct snd_pcm_substream *substream, *prev; | 652 | struct snd_pcm_substream *substream, *prev; |
653 | 653 | ||
654 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 654 | #if IS_ENABLED(CONFIG_SND_PCM_OSS) |
655 | mutex_init(&pstr->oss.setup_mutex); | 655 | mutex_init(&pstr->oss.setup_mutex); |
656 | #endif | 656 | #endif |
657 | pstr->stream = stream; | 657 | pstr->stream = stream; |
@@ -807,7 +807,7 @@ EXPORT_SYMBOL(snd_pcm_new_internal); | |||
807 | static void snd_pcm_free_stream(struct snd_pcm_str * pstr) | 807 | static void snd_pcm_free_stream(struct snd_pcm_str * pstr) |
808 | { | 808 | { |
809 | struct snd_pcm_substream *substream, *substream_next; | 809 | struct snd_pcm_substream *substream, *substream_next; |
810 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 810 | #if IS_ENABLED(CONFIG_SND_PCM_OSS) |
811 | struct snd_pcm_oss_setup *setup, *setupn; | 811 | struct snd_pcm_oss_setup *setup, *setupn; |
812 | #endif | 812 | #endif |
813 | substream = pstr->substream; | 813 | substream = pstr->substream; |
@@ -819,7 +819,7 @@ static void snd_pcm_free_stream(struct snd_pcm_str * pstr) | |||
819 | substream = substream_next; | 819 | substream = substream_next; |
820 | } | 820 | } |
821 | snd_pcm_stream_proc_done(pstr); | 821 | snd_pcm_stream_proc_done(pstr); |
822 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 822 | #if IS_ENABLED(CONFIG_SND_PCM_OSS) |
823 | for (setup = pstr->oss.setup_list; setup; setup = setupn) { | 823 | for (setup = pstr->oss.setup_list; setup; setup = setupn) { |
824 | setupn = setup->next; | 824 | setupn = setup->next; |
825 | kfree(setup->task_name); | 825 | kfree(setup->task_name); |
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 10b5d1a9dec0..e3664116736b 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -399,7 +399,7 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream, | |||
399 | return -EBADFD; | 399 | return -EBADFD; |
400 | } | 400 | } |
401 | snd_pcm_stream_unlock_irq(substream); | 401 | snd_pcm_stream_unlock_irq(substream); |
402 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 402 | #if IS_ENABLED(CONFIG_SND_PCM_OSS) |
403 | if (!substream->oss.oss) | 403 | if (!substream->oss.oss) |
404 | #endif | 404 | #endif |
405 | if (atomic_read(&substream->mmap_count)) | 405 | if (atomic_read(&substream->mmap_count)) |
diff --git a/sound/core/rtctimer.c b/sound/core/rtctimer.c index e85e72baff9e..b27223746b0e 100644 --- a/sound/core/rtctimer.c +++ b/sound/core/rtctimer.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <sound/core.h> | 27 | #include <sound/core.h> |
28 | #include <sound/timer.h> | 28 | #include <sound/timer.h> |
29 | 29 | ||
30 | #if defined(CONFIG_RTC) || defined(CONFIG_RTC_MODULE) | 30 | #if IS_ENABLED(CONFIG_RTC) |
31 | 31 | ||
32 | #include <linux/mc146818rtc.h> | 32 | #include <linux/mc146818rtc.h> |
33 | 33 | ||
@@ -185,4 +185,4 @@ MODULE_LICENSE("GPL"); | |||
185 | 185 | ||
186 | MODULE_ALIAS("snd-timer-" __stringify(SNDRV_TIMER_GLOBAL_RTC)); | 186 | MODULE_ALIAS("snd-timer-" __stringify(SNDRV_TIMER_GLOBAL_RTC)); |
187 | 187 | ||
188 | #endif /* CONFIG_RTC || CONFIG_RTC_MODULE */ | 188 | #endif /* IS_ENABLED(CONFIG_RTC) */ |
diff --git a/sound/core/sound_oss.c b/sound/core/sound_oss.c index 726a49ac9725..5391c5e139ef 100644 --- a/sound/core/sound_oss.c +++ b/sound/core/sound_oss.c | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #ifdef CONFIG_SND_OSSEMUL | 22 | #ifdef CONFIG_SND_OSSEMUL |
23 | 23 | ||
24 | #if !defined(CONFIG_SOUND) && !(defined(MODULE) && defined(CONFIG_SOUND_MODULE)) | 24 | #if !IS_ENABLED(CONFIG_SOUND) |
25 | #error "Enable the OSS soundcore multiplexer (CONFIG_SOUND) in the kernel." | 25 | #error "Enable the OSS soundcore multiplexer (CONFIG_SOUND) in the kernel." |
26 | #endif | 26 | #endif |
27 | 27 | ||
diff --git a/sound/core/timer.c b/sound/core/timer.c index 6ddcf06f52f9..cbec51464c5b 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
@@ -35,9 +35,9 @@ | |||
35 | #include <sound/initval.h> | 35 | #include <sound/initval.h> |
36 | #include <linux/kmod.h> | 36 | #include <linux/kmod.h> |
37 | 37 | ||
38 | #if defined(CONFIG_SND_HRTIMER) || defined(CONFIG_SND_HRTIMER_MODULE) | 38 | #if IS_ENABLED(CONFIG_SND_HRTIMER) |
39 | #define DEFAULT_TIMER_LIMIT 4 | 39 | #define DEFAULT_TIMER_LIMIT 4 |
40 | #elif defined(CONFIG_SND_RTCTIMER) || defined(CONFIG_SND_RTCTIMER_MODULE) | 40 | #elif IS_ENABLED(CONFIG_SND_RTCTIMER) |
41 | #define DEFAULT_TIMER_LIMIT 2 | 41 | #define DEFAULT_TIMER_LIMIT 2 |
42 | #else | 42 | #else |
43 | #define DEFAULT_TIMER_LIMIT 1 | 43 | #define DEFAULT_TIMER_LIMIT 1 |