diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 16:08:49 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-02 16:08:49 -0400 |
| commit | f27f0a045b79de5729d064497e21a70871f1d6fe (patch) | |
| tree | 078416852de43b76e297224b57a9c5b9f67dfb56 /include | |
| parent | 6e0dd741a89be35defa05bd79f4211c5a2762825 (diff) | |
| parent | c2f60c523aa34cf6d4913d6efc670890bd456fd5 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa
* master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa: (28 commits)
[ALSA] Kconfig SND_SEQUENCER_OSS help text fix
[ALSA] Add Aux input switch control for Aureon Universe
[ALSA] pcxhr - Fix the crash with REV01 board
[ALSA] sound/pci/hda: use create_singlethread_workqueue()
[ALSA] hda-intel - Add support of ATI SB600
[ALSA] cs4281 - Fix the check of timeout in probe
[ALSA] cs4281 - Fix the check of right channel
[ALSA] Test volume resolution of usb audio at initialization
[ALSA] maestro3.c: fix BUG, optimization
[ALSA] HDA/Realtek: multiple input mux definitions and pin mode additions
[ALSA] AdLib FM card driver
[ALSA] Fix / clean up PCM-OSS setup hooks
[ALSA] Clean up PCM codes (take 2)
[ALSA] Tiny clean up of PCM codes
[ALSA] ISA drivers bailing on first !enable[i]
[ALSA] Remove obsolete kfree_nocheck call
[ALSA] Remove obsolete kfree_nocheck call
[ALSA] Add snd-als300 driver for Avance Logic ALS300/ALS300+ soundcards
[ALSA] Add snd-riptide driver for Conexant Riptide chip
[ALSA] hda-codec - Fix noisy output wtih AD1986A 3stack model
...
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/core.h | 2 | ||||
| -rw-r--r-- | include/sound/pcm.h | 15 | ||||
| -rw-r--r-- | include/sound/pcm_oss.h | 3 |
3 files changed, 9 insertions, 11 deletions
diff --git a/include/sound/core.h b/include/sound/core.h index 7f32c12b4a0a..d1d043f6cb80 100644 --- a/include/sound/core.h +++ b/include/sound/core.h | |||
| @@ -170,7 +170,7 @@ static inline void snd_power_change_state(struct snd_card *card, unsigned int st | |||
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | /* init.c */ | 172 | /* init.c */ |
| 173 | int snd_power_wait(struct snd_card *card, unsigned int power_state, struct file *file); | 173 | int snd_power_wait(struct snd_card *card, unsigned int power_state); |
| 174 | 174 | ||
| 175 | #else /* ! CONFIG_PM */ | 175 | #else /* ! CONFIG_PM */ |
| 176 | 176 | ||
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 15b885660bf0..66b1f08b42b9 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
| @@ -369,6 +369,7 @@ struct snd_pcm_substream { | |||
| 369 | /* -- assigned files -- */ | 369 | /* -- assigned files -- */ |
| 370 | struct snd_pcm_file *file; | 370 | struct snd_pcm_file *file; |
| 371 | struct file *ffile; | 371 | struct file *ffile; |
| 372 | void (*pcm_release)(struct snd_pcm_substream *); | ||
| 372 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 373 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
| 373 | /* -- OSS things -- */ | 374 | /* -- OSS things -- */ |
| 374 | struct snd_pcm_oss_substream oss; | 375 | struct snd_pcm_oss_substream oss; |
| @@ -381,13 +382,10 @@ struct snd_pcm_substream { | |||
| 381 | struct snd_info_entry *proc_prealloc_entry; | 382 | struct snd_info_entry *proc_prealloc_entry; |
| 382 | /* misc flags */ | 383 | /* misc flags */ |
| 383 | unsigned int no_mmap_ctrl: 1; | 384 | unsigned int no_mmap_ctrl: 1; |
| 385 | unsigned int hw_opened: 1; | ||
| 384 | }; | 386 | }; |
| 385 | 387 | ||
| 386 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | ||
| 387 | #define SUBSTREAM_BUSY(substream) ((substream)->file != NULL || ((substream)->oss.file != NULL)) | ||
| 388 | #else | ||
| 389 | #define SUBSTREAM_BUSY(substream) ((substream)->file != NULL) | 388 | #define SUBSTREAM_BUSY(substream) ((substream)->file != NULL) |
| 390 | #endif | ||
| 391 | 389 | ||
| 392 | 390 | ||
| 393 | struct snd_pcm_str { | 391 | struct snd_pcm_str { |
| @@ -460,7 +458,6 @@ int snd_pcm_info_user(struct snd_pcm_substream *substream, | |||
| 460 | struct snd_pcm_info __user *info); | 458 | struct snd_pcm_info __user *info); |
| 461 | int snd_pcm_status(struct snd_pcm_substream *substream, | 459 | int snd_pcm_status(struct snd_pcm_substream *substream, |
| 462 | struct snd_pcm_status *status); | 460 | struct snd_pcm_status *status); |
| 463 | int snd_pcm_prepare(struct snd_pcm_substream *substream); | ||
| 464 | int snd_pcm_start(struct snd_pcm_substream *substream); | 461 | int snd_pcm_start(struct snd_pcm_substream *substream); |
| 465 | int snd_pcm_stop(struct snd_pcm_substream *substream, int status); | 462 | int snd_pcm_stop(struct snd_pcm_substream *substream, int status); |
| 466 | int snd_pcm_drain_done(struct snd_pcm_substream *substream); | 463 | int snd_pcm_drain_done(struct snd_pcm_substream *substream); |
| @@ -468,11 +465,13 @@ int snd_pcm_drain_done(struct snd_pcm_substream *substream); | |||
| 468 | int snd_pcm_suspend(struct snd_pcm_substream *substream); | 465 | int snd_pcm_suspend(struct snd_pcm_substream *substream); |
| 469 | int snd_pcm_suspend_all(struct snd_pcm *pcm); | 466 | int snd_pcm_suspend_all(struct snd_pcm *pcm); |
| 470 | #endif | 467 | #endif |
| 471 | int snd_pcm_kernel_playback_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg); | ||
| 472 | int snd_pcm_kernel_capture_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg); | ||
| 473 | int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg); | 468 | int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg); |
| 474 | int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct snd_pcm_substream **rsubstream); | 469 | int snd_pcm_open_substream(struct snd_pcm *pcm, int stream, struct file *file, |
| 470 | struct snd_pcm_substream **rsubstream); | ||
| 475 | void snd_pcm_release_substream(struct snd_pcm_substream *substream); | 471 | void snd_pcm_release_substream(struct snd_pcm_substream *substream); |
| 472 | int snd_pcm_attach_substream(struct snd_pcm *pcm, int stream, struct file *file, | ||
| 473 | struct snd_pcm_substream **rsubstream); | ||
| 474 | void snd_pcm_detach_substream(struct snd_pcm_substream *substream); | ||
| 476 | void snd_pcm_vma_notify_data(void *client, void *data); | 475 | void snd_pcm_vma_notify_data(void *client, void *data); |
| 477 | int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area); | 476 | int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area); |
| 478 | 477 | ||
diff --git a/include/sound/pcm_oss.h b/include/sound/pcm_oss.h index bff0778e1969..39df2baca18a 100644 --- a/include/sound/pcm_oss.h +++ b/include/sound/pcm_oss.h | |||
| @@ -69,8 +69,7 @@ struct snd_pcm_oss_file { | |||
| 69 | 69 | ||
| 70 | struct snd_pcm_oss_substream { | 70 | struct snd_pcm_oss_substream { |
| 71 | unsigned oss: 1; /* oss mode */ | 71 | unsigned oss: 1; /* oss mode */ |
| 72 | struct snd_pcm_oss_setup *setup; /* active setup */ | 72 | struct snd_pcm_oss_setup setup; /* active setup */ |
| 73 | struct snd_pcm_oss_file *file; | ||
| 74 | }; | 73 | }; |
| 75 | 74 | ||
| 76 | struct snd_pcm_oss_stream { | 75 | struct snd_pcm_oss_stream { |
