diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-12-04 10:22:32 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-12-04 10:22:32 -0500 |
commit | 79598324838a25cc378ecbb8c29dd1e3d3951d35 (patch) | |
tree | 7d29e81580cba854042df4e33bdc8f38bbd65d03 /include/sound | |
parent | 8ee763b9c82c6ca0a59a7271ce4fa29d7baf5c09 (diff) | |
parent | b00615d163cd24fa98d155acfc1f9d81d6fe1103 (diff) |
Merge branch 'topic/core-change' into for-linus
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/Kbuild | 1 | ||||
-rw-r--r-- | include/sound/control.h | 5 | ||||
-rw-r--r-- | include/sound/pcm.h | 3 | ||||
-rw-r--r-- | include/sound/rawmidi.h | 2 | ||||
-rw-r--r-- | include/sound/sh_dac_audio.h | 21 | ||||
-rw-r--r-- | include/sound/sscape_ioctl.h | 21 |
6 files changed, 29 insertions, 24 deletions
diff --git a/include/sound/Kbuild b/include/sound/Kbuild index fd054a344324..e9dd9369ecb9 100644 --- a/include/sound/Kbuild +++ b/include/sound/Kbuild | |||
@@ -2,7 +2,6 @@ header-y += asound_fm.h | |||
2 | header-y += hdsp.h | 2 | header-y += hdsp.h |
3 | header-y += hdspm.h | 3 | header-y += hdspm.h |
4 | header-y += sfnt_info.h | 4 | header-y += sfnt_info.h |
5 | header-y += sscape_ioctl.h | ||
6 | 5 | ||
7 | unifdef-y += asequencer.h | 6 | unifdef-y += asequencer.h |
8 | unifdef-y += asound.h | 7 | unifdef-y += asound.h |
diff --git a/include/sound/control.h b/include/sound/control.h index ef96f07aa03b..112374dc0c58 100644 --- a/include/sound/control.h +++ b/include/sound/control.h | |||
@@ -56,7 +56,6 @@ struct snd_kcontrol_new { | |||
56 | 56 | ||
57 | struct snd_kcontrol_volatile { | 57 | struct snd_kcontrol_volatile { |
58 | struct snd_ctl_file *owner; /* locked */ | 58 | struct snd_ctl_file *owner; /* locked */ |
59 | pid_t owner_pid; | ||
60 | unsigned int access; /* access rights */ | 59 | unsigned int access; /* access rights */ |
61 | }; | 60 | }; |
62 | 61 | ||
@@ -87,10 +86,12 @@ struct snd_kctl_event { | |||
87 | 86 | ||
88 | #define snd_kctl_event(n) list_entry(n, struct snd_kctl_event, list) | 87 | #define snd_kctl_event(n) list_entry(n, struct snd_kctl_event, list) |
89 | 88 | ||
89 | struct pid; | ||
90 | |||
90 | struct snd_ctl_file { | 91 | struct snd_ctl_file { |
91 | struct list_head list; /* list of all control files */ | 92 | struct list_head list; /* list of all control files */ |
92 | struct snd_card *card; | 93 | struct snd_card *card; |
93 | pid_t pid; | 94 | struct pid *pid; |
94 | int prefer_pcm_subdevice; | 95 | int prefer_pcm_subdevice; |
95 | int prefer_rawmidi_subdevice; | 96 | int prefer_rawmidi_subdevice; |
96 | wait_queue_head_t change_sleep; | 97 | wait_queue_head_t change_sleep; |
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index de6d981de5d6..c83a4a79f16b 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -348,6 +348,8 @@ struct snd_pcm_group { /* keep linked substreams */ | |||
348 | int count; | 348 | int count; |
349 | }; | 349 | }; |
350 | 350 | ||
351 | struct pid; | ||
352 | |||
351 | struct snd_pcm_substream { | 353 | struct snd_pcm_substream { |
352 | struct snd_pcm *pcm; | 354 | struct snd_pcm *pcm; |
353 | struct snd_pcm_str *pstr; | 355 | struct snd_pcm_str *pstr; |
@@ -379,6 +381,7 @@ struct snd_pcm_substream { | |||
379 | atomic_t mmap_count; | 381 | atomic_t mmap_count; |
380 | unsigned int f_flags; | 382 | unsigned int f_flags; |
381 | void (*pcm_release)(struct snd_pcm_substream *); | 383 | void (*pcm_release)(struct snd_pcm_substream *); |
384 | struct pid *pid; | ||
382 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 385 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
383 | /* -- OSS things -- */ | 386 | /* -- OSS things -- */ |
384 | struct snd_pcm_oss_substream oss; | 387 | struct snd_pcm_oss_substream oss; |
diff --git a/include/sound/rawmidi.h b/include/sound/rawmidi.h index c23c26585700..2480e7d10dcf 100644 --- a/include/sound/rawmidi.h +++ b/include/sound/rawmidi.h | |||
@@ -46,6 +46,7 @@ | |||
46 | struct snd_rawmidi; | 46 | struct snd_rawmidi; |
47 | struct snd_rawmidi_substream; | 47 | struct snd_rawmidi_substream; |
48 | struct snd_seq_port_info; | 48 | struct snd_seq_port_info; |
49 | struct pid; | ||
49 | 50 | ||
50 | struct snd_rawmidi_ops { | 51 | struct snd_rawmidi_ops { |
51 | int (*open) (struct snd_rawmidi_substream * substream); | 52 | int (*open) (struct snd_rawmidi_substream * substream); |
@@ -97,6 +98,7 @@ struct snd_rawmidi_substream { | |||
97 | struct snd_rawmidi_str *pstr; | 98 | struct snd_rawmidi_str *pstr; |
98 | char name[32]; | 99 | char name[32]; |
99 | struct snd_rawmidi_runtime *runtime; | 100 | struct snd_rawmidi_runtime *runtime; |
101 | struct pid *pid; | ||
100 | /* hardware layer */ | 102 | /* hardware layer */ |
101 | struct snd_rawmidi_ops *ops; | 103 | struct snd_rawmidi_ops *ops; |
102 | }; | 104 | }; |
diff --git a/include/sound/sh_dac_audio.h b/include/sound/sh_dac_audio.h new file mode 100644 index 000000000000..f5deaf1ddb9f --- /dev/null +++ b/include/sound/sh_dac_audio.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * SH_DAC specific configuration, for the dac_audio platform_device | ||
3 | * | ||
4 | * Copyright (C) 2009 Rafael Ignacio Zurita <rizurita@yahoo.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License version 2 as published | ||
8 | * by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __INCLUDE_SH_DAC_AUDIO_H | ||
12 | #define __INCLUDE_SH_DAC_AUDIO_H | ||
13 | |||
14 | struct dac_audio_pdata { | ||
15 | int buffer_size; | ||
16 | int channel; | ||
17 | void (*start)(struct dac_audio_pdata *pd); | ||
18 | void (*stop)(struct dac_audio_pdata *pd); | ||
19 | }; | ||
20 | |||
21 | #endif /* __INCLUDE_SH_DAC_AUDIO_H */ | ||
diff --git a/include/sound/sscape_ioctl.h b/include/sound/sscape_ioctl.h deleted file mode 100644 index 0d8885969c64..000000000000 --- a/include/sound/sscape_ioctl.h +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #ifndef SSCAPE_IOCTL_H | ||
2 | #define SSCAPE_IOCTL_H | ||
3 | |||
4 | |||
5 | struct sscape_bootblock | ||
6 | { | ||
7 | unsigned char code[256]; | ||
8 | unsigned version; | ||
9 | }; | ||
10 | |||
11 | #define SSCAPE_MICROCODE_SIZE 65536 | ||
12 | |||
13 | struct sscape_microcode | ||
14 | { | ||
15 | unsigned char __user *code; | ||
16 | }; | ||
17 | |||
18 | #define SND_SSCAPE_LOAD_BOOTB _IOWR('P', 100, struct sscape_bootblock) | ||
19 | #define SND_SSCAPE_LOAD_MCODE _IOW ('P', 101, struct sscape_microcode) | ||
20 | |||
21 | #endif | ||