|
@@ -34,7 +34,7 @@
|
|
|
#define snd_pcm_substream_chip(substream) ((substream)->private_data)
|
|
|
#define snd_pcm_chip(pcm) ((pcm)->private_data)
|
|
|
|
|
|
-#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
|
|
|
+#if IS_ENABLED(CONFIG_SND_PCM_OSS)
|
|
|
#include <sound/pcm_oss.h>
|
|
|
#endif
|
|
|
|
|
@@ -418,7 +418,7 @@ struct snd_pcm_runtime {
|
|
|
struct snd_pcm_audio_tstamp_report audio_tstamp_report;
|
|
|
struct timespec driver_tstamp;
|
|
|
|
|
|
-#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
|
|
|
+#if IS_ENABLED(CONFIG_SND_PCM_OSS)
|
|
|
/* -- OSS things -- */
|
|
|
struct snd_pcm_oss_runtime oss;
|
|
|
#endif
|
|
@@ -464,7 +464,7 @@ struct snd_pcm_substream {
|
|
|
unsigned int f_flags;
|
|
|
void (*pcm_release)(struct snd_pcm_substream *);
|
|
|
struct pid *pid;
|
|
|
-#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
|
|
|
+#if IS_ENABLED(CONFIG_SND_PCM_OSS)
|
|
|
/* -- OSS things -- */
|
|
|
struct snd_pcm_oss_substream oss;
|
|
|
#endif
|
|
@@ -494,7 +494,7 @@ struct snd_pcm_str {
|
|
|
unsigned int substream_count;
|
|
|
unsigned int substream_opened;
|
|
|
struct snd_pcm_substream *substream;
|
|
|
-#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
|
|
|
+#if IS_ENABLED(CONFIG_SND_PCM_OSS)
|
|
|
/* -- OSS things -- */
|
|
|
struct snd_pcm_oss_stream oss;
|
|
|
#endif
|
|
@@ -526,7 +526,7 @@ struct snd_pcm {
|
|
|
void (*private_free) (struct snd_pcm *pcm);
|
|
|
bool internal; /* pcm is for internal use only */
|
|
|
bool nonatomic; /* whole PCM operations are in non-atomic context */
|
|
|
-#if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE)
|
|
|
+#if IS_ENABLED(CONFIG_SND_PCM_OSS)
|
|
|
struct snd_pcm_oss oss;
|
|
|
#endif
|
|
|
};
|