summaryrefslogtreecommitdiffstats
path: root/include/sound/pcm.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-05-12 05:35:17 -0400
committerTakashi Iwai <tiwai@suse.de>2017-05-17 01:13:03 -0400
commit58f30d650c7f5275d4d57e62862970e1078af462 (patch)
tree4d2ba69f6f8698efdeab8716bd3b54cff2483f45 /include/sound/pcm.h
parent239480ab92a52544748749c8445f4e12495e4f69 (diff)
ALSA: pcm: Build pcm notifier code conditionally
The PCM notifier code is used only by OSS emulation layer, so we can build it conditionally for reducing the size. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/pcm.h')
-rw-r--r--include/sound/pcm.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 361749e60799..eb16912d6046 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -531,13 +531,6 @@ struct snd_pcm {
531#endif 531#endif
532}; 532};
533 533
534struct snd_pcm_notify {
535 int (*n_register) (struct snd_pcm * pcm);
536 int (*n_disconnect) (struct snd_pcm * pcm);
537 int (*n_unregister) (struct snd_pcm * pcm);
538 struct list_head list;
539};
540
541/* 534/*
542 * Registering 535 * Registering
543 */ 536 */
@@ -552,7 +545,15 @@ int snd_pcm_new_internal(struct snd_card *card, const char *id, int device,
552 struct snd_pcm **rpcm); 545 struct snd_pcm **rpcm);
553int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count); 546int snd_pcm_new_stream(struct snd_pcm *pcm, int stream, int substream_count);
554 547
548#if IS_ENABLED(CONFIG_SND_PCM_OSS)
549struct snd_pcm_notify {
550 int (*n_register) (struct snd_pcm * pcm);
551 int (*n_disconnect) (struct snd_pcm * pcm);
552 int (*n_unregister) (struct snd_pcm * pcm);
553 struct list_head list;
554};
555int snd_pcm_notify(struct snd_pcm_notify *notify, int nfree); 555int snd_pcm_notify(struct snd_pcm_notify *notify, int nfree);
556#endif
556 557
557/* 558/*
558 * Native I/O 559 * Native I/O