|
34 | 34 | #define snd_pcm_substream_chip(substream) ((substream)->private_data) |
35 | 35 | #define snd_pcm_chip(pcm) ((pcm)->private_data) |
36 | 36 |
|
37 | | -#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
| 37 | +#if IS_ENABLED(CONFIG_SND_PCM_OSS) |
38 | 38 | #include <sound/pcm_oss.h> |
39 | 39 | #endif |
40 | 40 |
|
@@ -418,7 +418,7 @@ struct snd_pcm_runtime { |
418 | 418 | struct snd_pcm_audio_tstamp_report audio_tstamp_report; |
419 | 419 | struct timespec driver_tstamp; |
420 | 420 |
|
421 | | -#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
| 421 | +#if IS_ENABLED(CONFIG_SND_PCM_OSS) |
422 | 422 | /* -- OSS things -- */ |
423 | 423 | struct snd_pcm_oss_runtime oss; |
424 | 424 | #endif |
@@ -464,7 +464,7 @@ struct snd_pcm_substream { |
464 | 464 | unsigned int f_flags; |
465 | 465 | void (*pcm_release)(struct snd_pcm_substream *); |
466 | 466 | struct pid *pid; |
467 | | -#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
| 467 | +#if IS_ENABLED(CONFIG_SND_PCM_OSS) |
468 | 468 | /* -- OSS things -- */ |
469 | 469 | struct snd_pcm_oss_substream oss; |
470 | 470 | #endif |
@@ -494,7 +494,7 @@ struct snd_pcm_str { |
494 | 494 | unsigned int substream_count; |
495 | 495 | unsigned int substream_opened; |
496 | 496 | struct snd_pcm_substream *substream; |
497 | | -#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
| 497 | +#if IS_ENABLED(CONFIG_SND_PCM_OSS) |
498 | 498 | /* -- OSS things -- */ |
499 | 499 | struct snd_pcm_oss_stream oss; |
500 | 500 | #endif |
@@ -526,7 +526,7 @@ struct snd_pcm { |
526 | 526 | void (*private_free) (struct snd_pcm *pcm); |
527 | 527 | bool internal; /* pcm is for internal use only */ |
528 | 528 | bool nonatomic; /* whole PCM operations are in non-atomic context */ |
529 | | -#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
| 529 | +#if IS_ENABLED(CONFIG_SND_PCM_OSS) |
530 | 530 | struct snd_pcm_oss oss; |
531 | 531 | #endif |
532 | 532 | }; |
|
0 commit comments