Skip to content

Commit 7b70888

Browse files
author
Linus Torvalds
committed
Merge master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa
2 parents cd85c8b + 0a97af4 commit 7b70888

65 files changed

Lines changed: 5055 additions & 1118 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/sound/alsa/ALSA-Configuration.txt‎

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -636,11 +636,16 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
636636
3stack-digout 3-jack in back, a HP out and a SPDIF out
637637
5stack 5-jack in back, 2-jack in front
638638
5stack-digout 5-jack in back, 2-jack in front, a SPDIF out
639+
6stack 6-jack in back, 2-jack in front
640+
6stack-digout 6-jack with a SPDIF out
639641
w810 3-jack
640642
z71v 3-jack (HP shared SPDIF)
641643
asus 3-jack
642644
uniwill 3-jack
643645
F1734 2-jack
646+
test for testing/debugging purpose, almost all controls can be
647+
adjusted. Appearing only when compiled with
648+
$CONFIG_SND_DEBUG=y
644649

645650
CMI9880
646651
minimal 3-jack in back
@@ -1054,6 +1059,13 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
10541059

10551060
The power-management is supported.
10561061

1062+
Module snd-pxa2xx-ac97 (on arm only)
1063+
------------------------------------
1064+
1065+
Module for AC97 driver for the Intel PXA2xx chip
1066+
1067+
For ARM architecture only.
1068+
10571069
Module snd-rme32
10581070
----------------
10591071

@@ -1173,6 +1185,13 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
11731185

11741186
Module supports up to 8 cards.
11751187

1188+
Module snd-sun-dbri (on sparc only)
1189+
-----------------------------------
1190+
1191+
Module for DBRI sound chips found on Sparcs.
1192+
1193+
Module supports up to 8 cards.
1194+
11761195
Module snd-wavefront
11771196
--------------------
11781197

@@ -1371,7 +1390,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
13711390
Module snd-vxpocket
13721391
-------------------
13731392

1374-
Module for Digigram VX-Pocket VX2 PCMCIA card.
1393+
Module for Digigram VX-Pocket VX2 and 440 PCMCIA cards.
13751394

13761395
ibl - Capture IBL size. (default = 0, minimum size)
13771396

@@ -1391,29 +1410,6 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
13911410

13921411
Note: the driver is build only when CONFIG_ISA is set.
13931412

1394-
Module snd-vxp440
1395-
-----------------
1396-
1397-
Module for Digigram VX-Pocket 440 PCMCIA card.
1398-
1399-
ibl - Capture IBL size. (default = 0, minimum size)
1400-
1401-
Module supports up to 8 cards. The module is compiled only when
1402-
PCMCIA is supported on kernel.
1403-
1404-
To activate the driver via the card manager, you'll need to set
1405-
up /etc/pcmcia/vxp440.conf. See the sound/pcmcia/vx/vxp440.c.
1406-
1407-
When the driver is compiled as a module and the hotplug firmware
1408-
is supported, the firmware data is loaded via hotplug automatically.
1409-
Install the necessary firmware files in alsa-firmware package.
1410-
When no hotplug fw loader is available, you need to load the
1411-
firmware via vxloader utility in alsa-tools package.
1412-
1413-
About capture IBL, see the description of snd-vx222 module.
1414-
1415-
Note: the driver is build only when CONFIG_ISA is set.
1416-
14171413
Module snd-ymfpci
14181414
-----------------
14191415

‎include/sound/core.h‎

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,26 @@ struct snd_monitor_file {
126126
struct snd_monitor_file *next;
127127
};
128128

129-
struct snd_shutdown_f_ops; /* define it later */
129+
struct snd_shutdown_f_ops; /* define it later in init.c */
130130

131131
/* main structure for soundcard */
132132

133133
struct _snd_card {
134-
int number; /* number of soundcard (index to snd_cards) */
134+
int number; /* number of soundcard (index to
135+
snd_cards) */
135136

136137
char id[16]; /* id string of this card */
137138
char driver[16]; /* driver name */
138139
char shortname[32]; /* short name of this soundcard */
139140
char longname[80]; /* name of this soundcard */
140141
char mixername[80]; /* mixer name */
141-
char components[80]; /* card components delimited with space */
142-
142+
char components[80]; /* card components delimited with
143+
space */
143144
struct module *module; /* top-level module */
144145

145146
void *private_data; /* private data for soundcard */
146-
void (*private_free) (snd_card_t *card); /* callback for freeing of private data */
147-
147+
void (*private_free) (snd_card_t *card); /* callback for freeing of
148+
private data */
148149
struct list_head devices; /* devices */
149150

150151
unsigned int last_numid; /* last used numeric ID */
@@ -160,7 +161,8 @@ struct _snd_card {
160161
struct proc_dir_entry *proc_root_link; /* number link to real id */
161162

162163
struct snd_monitor_file *files; /* all files associated to this card */
163-
struct snd_shutdown_f_ops *s_f_ops; /* file operations in the shutdown state */
164+
struct snd_shutdown_f_ops *s_f_ops; /* file operations in the shutdown
165+
state */
164166
spinlock_t files_lock; /* lock the files for this card */
165167
int shutdown; /* this card is going down */
166168
wait_queue_head_t shutdown_sleep;
@@ -196,8 +198,6 @@ static inline void snd_power_unlock(snd_card_t *card)
196198
up(&card->power_lock);
197199
}
198200

199-
int snd_power_wait(snd_card_t *card, unsigned int power_state, struct file *file);
200-
201201
static inline unsigned int snd_power_get_state(snd_card_t *card)
202202
{
203203
return card->power_state;
@@ -208,6 +208,10 @@ static inline void snd_power_change_state(snd_card_t *card, unsigned int state)
208208
card->power_state = state;
209209
wake_up(&card->power_sleep);
210210
}
211+
212+
/* init.c */
213+
int snd_power_wait(snd_card_t *card, unsigned int power_state, struct file *file);
214+
211215
int snd_card_set_pm_callback(snd_card_t *card,
212216
int (*suspend)(snd_card_t *, pm_message_t),
213217
int (*resume)(snd_card_t *),
@@ -238,15 +242,14 @@ static inline int snd_power_wait(snd_card_t *card, unsigned int state, struct fi
238242

239243
#endif /* CONFIG_PM */
240244

241-
/* device.c */
242-
243245
struct _snd_minor {
244246
struct list_head list; /* list of all minors per card */
245247
int number; /* minor number */
246248
int device; /* device number */
247249
const char *comment; /* for /proc/asound/devices */
248250
struct file_operations *f_ops; /* file operations */
249-
char name[0]; /* device name (keep at the end of structure) */
251+
char name[0]; /* device name (keep at the end of
252+
structure) */
250253
};
251254

252255
typedef struct _snd_minor snd_minor_t;
@@ -287,12 +290,12 @@ void snd_memory_init(void);
287290
void snd_memory_done(void);
288291
int snd_memory_info_init(void);
289292
int snd_memory_info_done(void);
290-
void *snd_hidden_kmalloc(size_t size, int flags);
291-
void *snd_hidden_kcalloc(size_t n, size_t size, int flags);
293+
void *snd_hidden_kmalloc(size_t size, unsigned int __nocast flags);
294+
void *snd_hidden_kcalloc(size_t n, size_t size, unsigned int __nocast flags);
292295
void snd_hidden_kfree(const void *obj);
293296
void *snd_hidden_vmalloc(unsigned long size);
294297
void snd_hidden_vfree(void *obj);
295-
char *snd_hidden_kstrdup(const char *s, int flags);
298+
char *snd_hidden_kstrdup(const char *s, unsigned int __nocast flags);
296299
#define kmalloc(size, flags) snd_hidden_kmalloc(size, flags)
297300
#define kcalloc(n, size, flags) snd_hidden_kcalloc(n, size, flags)
298301
#define kfree(obj) snd_hidden_kfree(obj)
@@ -411,7 +414,7 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...)
411414
printk(fmt ,##args)
412415
#endif
413416
/**
414-
* snd_assert - run-time assersion macro
417+
* snd_assert - run-time assertion macro
415418
* @expr: expression
416419
* @args...: the action
417420
*
@@ -427,7 +430,7 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...)
427430
}\
428431
} while (0)
429432
/**
430-
* snd_runtime_check - run-time assersion macro
433+
* snd_runtime_check - run-time assertion macro
431434
* @expr: expression
432435
* @args...: the action
433436
*

‎include/sound/driver.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#ifdef CONFIG_SND_DEBUG_MEMORY
5252
#include <linux/slab.h>
5353
#include <linux/vmalloc.h>
54-
void *snd_wrapper_kmalloc(size_t, int);
54+
void *snd_wrapper_kmalloc(size_t, unsigned int __nocast);
5555
#undef kmalloc
5656
void snd_wrapper_kfree(const void *);
5757
#undef kfree

‎include/sound/emu10k1.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,7 @@ int snd_emu10k1_create(snd_card_t * card,
11671167
unsigned short extout_mask,
11681168
long max_cache_bytes,
11691169
int enable_ir,
1170+
uint subsystem,
11701171
emu10k1_t ** remu);
11711172

11721173
int snd_emu10k1_pcm(emu10k1_t * emu, int device, snd_pcm_t ** rpcm);

‎include/sound/version.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/* include/version.h. Generated by configure. */
2-
#define CONFIG_SND_VERSION "1.0.9"
3-
#define CONFIG_SND_DATE " (Sun May 29 07:31:02 2005 UTC)"
2+
#define CONFIG_SND_VERSION "1.0.9b"
3+
#define CONFIG_SND_DATE " (Thu Jul 28 12:20:13 2005 UTC)"

‎sound/arm/Kconfig‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@ config SND_ARMAACI
2020
select SND_PCM
2121
select SND_AC97_CODEC
2222

23-
endmenu
23+
config SND_PXA2XX_PCM
24+
tristate
25+
select SND_PCM
26+
27+
config SND_PXA2XX_AC97
28+
tristate "AC97 driver for the Intel PXA2xx chip"
29+
depends on ARCH_PXA && SND
30+
select SND_PXA2XX_PCM
31+
select SND_AC97_CODEC
32+
help
33+
Say Y or M if you want to support any AC97 codec attached to
34+
the PXA2xx AC97 interface.
2435

36+
endmenu

‎sound/arm/Makefile‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#
44

55
snd-sa11xx-uda1341-objs := sa11xx-uda1341.o
6+
snd-aaci-objs := aaci.o devdma.o
7+
snd-pxa2xx-pcm-objs := pxa2xx-pcm.o
8+
snd-pxa2xx-ac97-objs := pxa2xx-ac97.o
69

7-
# Toplevel Module Dependency
810
obj-$(CONFIG_SND_SA11XX_UDA1341) += snd-sa11xx-uda1341.o
9-
1011
obj-$(CONFIG_SND_ARMAACI) += snd-aaci.o
11-
snd-aaci-objs := aaci.o devdma.o
12+
obj-$(CONFIG_SND_PXA2XX_PCM) += snd-pxa2xx-pcm.o
13+
obj-$(CONFIG_SND_PXA2XX_AC97) += snd-pxa2xx-ac97.o

0 commit comments

Comments
 (0)