Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
bce89698
Commit
bce89698
authored
Aug 05, 2006
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://www.kernel.org/pub/scm/linux/kernel/git/perex/alsa
parents
40a64fa8
6cb53e7e
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
62 additions
and
47 deletions
+62
-47
MAINTAINERS
MAINTAINERS
+7
-0
sound/aoa/codecs/snd-aoa-codec-toonie.c
sound/aoa/codecs/snd-aoa-codec-toonie.c
+13
-4
sound/aoa/core/snd-aoa-gpio-feature.c
sound/aoa/core/snd-aoa-gpio-feature.c
+5
-2
sound/aoa/core/snd-aoa-gpio-pmf.c
sound/aoa/core/snd-aoa-gpio-pmf.c
+1
-1
sound/core/oss/mixer_oss.c
sound/core/oss/mixer_oss.c
+1
-2
sound/core/oss/pcm_oss.c
sound/core/oss/pcm_oss.c
+2
-0
sound/core/seq/seq_device.c
sound/core/seq/seq_device.c
+1
-2
sound/core/sgbuf.c
sound/core/sgbuf.c
+3
-6
sound/drivers/vx/vx_pcm.c
sound/drivers/vx/vx_pcm.c
+2
-5
sound/pci/echoaudio/echoaudio.c
sound/pci/echoaudio/echoaudio.c
+2
-2
sound/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/emu10k1_main.c
+11
-0
sound/pci/emu10k1/irq.c
sound/pci/emu10k1/irq.c
+5
-1
sound/ppc/awacs.c
sound/ppc/awacs.c
+1
-2
sound/ppc/daca.c
sound/ppc/daca.c
+1
-2
sound/ppc/keywest.c
sound/ppc/keywest.c
+1
-2
sound/ppc/powermac.c
sound/ppc/powermac.c
+3
-10
sound/ppc/tumbler.c
sound/ppc/tumbler.c
+1
-2
sound/usb/usbaudio.c
sound/usb/usbaudio.c
+2
-4
No files found.
MAINTAINERS
View file @
bce89698
...
...
@@ -298,6 +298,13 @@ L: info-linux@geode.amd.com
W: http://www.amd.com/us-en/ConnectivitySolutions/TechnicalResources/0,,50_2334_2452_11363,00.html
S: Supported
AOA (Apple Onboard Audio) ALSA DRIVER
P: Johannes Berg
M: johannes@sipsolutions.net
L: linuxppc-dev@ozlabs.org
L: alsa-devel@alsa-project.org
S: Maintained
APM DRIVER
P: Stephen Rothwell
M: sfr@canb.auug.org.au
...
...
sound/aoa/codecs/snd-aoa-codec-toonie.c
View file @
bce89698
...
...
@@ -51,6 +51,13 @@ static struct transfer_info toonie_transfers[] = {
{}
};
static
int
toonie_usable
(
struct
codec_info_item
*
cii
,
struct
transfer_info
*
ti
,
struct
transfer_info
*
out
)
{
return
1
;
}
#ifdef CONFIG_PM
static
int
toonie_suspend
(
struct
codec_info_item
*
cii
,
pm_message_t
state
)
{
...
...
@@ -69,6 +76,7 @@ static struct codec_info toonie_codec_info = {
.
sysclock_factor
=
256
,
.
bus_factor
=
64
,
.
owner
=
THIS_MODULE
,
.
usable
=
toonie_usable
,
#ifdef CONFIG_PM
.
suspend
=
toonie_suspend
,
.
resume
=
toonie_resume
,
...
...
@@ -79,19 +87,20 @@ static int toonie_init_codec(struct aoa_codec *codec)
{
struct
toonie
*
toonie
=
codec_to_toonie
(
codec
);
/* nothing connected? what a joke! */
if
(
toonie
->
codec
.
connected
!=
1
)
return
-
ENOTCONN
;
if
(
aoa_snd_device_new
(
SNDRV_DEV_LOWLEVEL
,
toonie
,
&
ops
))
{
printk
(
KERN_ERR
PFX
"failed to create toonie snd device!
\n
"
);
return
-
ENODEV
;
}
/* nothing connected? what a joke! */
if
(
toonie
->
codec
.
connected
!=
1
)
return
-
ENOTCONN
;
if
(
toonie
->
codec
.
soundbus_dev
->
attach_codec
(
toonie
->
codec
.
soundbus_dev
,
aoa_get_card
(),
&
toonie_codec_info
,
toonie
))
{
printk
(
KERN_ERR
PFX
"error creating toonie pcm
\n
"
);
snd_device_free
(
aoa_get_card
(),
toonie
);
return
-
ENODEV
;
}
...
...
sound/aoa/core/snd-aoa-gpio-feature.c
View file @
bce89698
...
...
@@ -112,7 +112,10 @@ static struct device_node *get_gpio(char *name,
static
void
get_irq
(
struct
device_node
*
np
,
int
*
irqptr
)
{
*
irqptr
=
irq_of_parse_and_map
(
np
,
0
);
if
(
np
)
*
irqptr
=
irq_of_parse_and_map
(
np
,
0
);
else
*
irqptr
=
NO_IRQ
;
}
/* 0x4 is outenable, 0x1 is out, thus 4 or 5 */
...
...
@@ -322,7 +325,7 @@ static int ftr_set_notify(struct gpio_runtime *rt,
return
-
EINVAL
;
}
if
(
irq
==
-
1
)
if
(
irq
==
NO_IRQ
)
return
-
ENODEV
;
mutex_lock
(
&
notif
->
mutex
);
...
...
sound/aoa/core/snd-aoa-gpio-pmf.c
View file @
bce89698
...
...
@@ -18,7 +18,7 @@ static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\
\
if (unlikely(!rt)) return; \
rc = pmf_call_function(rt->node, #name "-mute", &args); \
if (rc
)
\
if (rc
&& rc != -ENODEV)
\
printk(KERN_WARNING "pmf_gpio_set_" #name \
" failed, rc: %d\n", rc); \
rt->implementation_private &= ~(1<<bit); \
...
...
sound/core/oss/mixer_oss.c
View file @
bce89698
...
...
@@ -988,13 +988,12 @@ static int snd_mixer_oss_build_input(struct snd_mixer_oss *mixer, struct snd_mix
if
(
ptr
->
index
==
0
&&
(
kctl
=
snd_mixer_oss_test_id
(
mixer
,
"Capture Source"
,
0
))
!=
NULL
)
{
struct
snd_ctl_elem_info
*
uinfo
;
uinfo
=
k
m
alloc
(
sizeof
(
*
uinfo
),
GFP_KERNEL
);
uinfo
=
k
z
alloc
(
sizeof
(
*
uinfo
),
GFP_KERNEL
);
if
(
!
uinfo
)
{
up_read
(
&
mixer
->
card
->
controls_rwsem
);
return
-
ENOMEM
;
}
memset
(
uinfo
,
0
,
sizeof
(
*
uinfo
));
if
(
kctl
->
info
(
kctl
,
uinfo
))
{
up_read
(
&
mixer
->
card
->
controls_rwsem
);
return
0
;
...
...
sound/core/oss/pcm_oss.c
View file @
bce89698
...
...
@@ -2228,6 +2228,8 @@ static int snd_pcm_oss_open_file(struct file *file,
for
(
idx
=
0
;
idx
<
2
;
idx
++
)
{
if
(
setup
[
idx
].
disable
)
continue
;
if
(
!
pcm
->
streams
[
idx
].
substream_count
)
continue
;
/* no matching substream */
if
(
idx
==
SNDRV_PCM_STREAM_PLAYBACK
)
{
if
(
!
(
f_mode
&
FMODE_WRITE
))
continue
;
...
...
sound/core/seq/seq_device.c
View file @
bce89698
...
...
@@ -372,10 +372,9 @@ static struct ops_list * create_driver(char *id)
{
struct
ops_list
*
ops
;
ops
=
k
m
alloc
(
sizeof
(
*
ops
),
GFP_KERNEL
);
ops
=
k
z
alloc
(
sizeof
(
*
ops
),
GFP_KERNEL
);
if
(
ops
==
NULL
)
return
ops
;
memset
(
ops
,
0
,
sizeof
(
*
ops
));
/* set up driver entry */
strlcpy
(
ops
->
id
,
id
,
sizeof
(
ops
->
id
));
...
...
sound/core/sgbuf.c
View file @
bce89698
...
...
@@ -68,21 +68,18 @@ void *snd_malloc_sgbuf_pages(struct device *device,
dmab
->
area
=
NULL
;
dmab
->
addr
=
0
;
dmab
->
private_data
=
sgbuf
=
k
m
alloc
(
sizeof
(
*
sgbuf
),
GFP_KERNEL
);
dmab
->
private_data
=
sgbuf
=
k
z
alloc
(
sizeof
(
*
sgbuf
),
GFP_KERNEL
);
if
(
!
sgbuf
)
return
NULL
;
memset
(
sgbuf
,
0
,
sizeof
(
*
sgbuf
));
sgbuf
->
dev
=
device
;
pages
=
snd_sgbuf_aligned_pages
(
size
);
sgbuf
->
tblsize
=
sgbuf_align_table
(
pages
);
sgbuf
->
table
=
k
malloc
(
sizeof
(
*
sgbuf
->
table
)
*
sgbuf
->
tblsize
,
GFP_KERNEL
);
sgbuf
->
table
=
k
calloc
(
sgbuf
->
tblsize
,
sizeof
(
*
sgbuf
->
table
)
,
GFP_KERNEL
);
if
(
!
sgbuf
->
table
)
goto
_failed
;
memset
(
sgbuf
->
table
,
0
,
sizeof
(
*
sgbuf
->
table
)
*
sgbuf
->
tblsize
);
sgbuf
->
page_table
=
kmalloc
(
sizeof
(
*
sgbuf
->
page_table
)
*
sgbuf
->
tblsize
,
GFP_KERNEL
);
sgbuf
->
page_table
=
kcalloc
(
sgbuf
->
tblsize
,
sizeof
(
*
sgbuf
->
page_table
),
GFP_KERNEL
);
if
(
!
sgbuf
->
page_table
)
goto
_failed
;
memset
(
sgbuf
->
page_table
,
0
,
sizeof
(
*
sgbuf
->
page_table
)
*
sgbuf
->
tblsize
);
/* allocate each page */
for
(
i
=
0
;
i
<
pages
;
i
++
)
{
...
...
sound/drivers/vx/vx_pcm.c
View file @
bce89698
...
...
@@ -1252,18 +1252,15 @@ static int vx_init_audio_io(struct vx_core *chip)
chip
->
audio_info
=
rmh
.
Stat
[
1
];
/* allocate pipes */
chip
->
playback_pipes
=
k
malloc
(
sizeof
(
struct
vx_pipe
*
)
*
chip
->
audio_outs
,
GFP_KERNEL
);
chip
->
playback_pipes
=
k
calloc
(
chip
->
audio_outs
,
sizeof
(
struct
vx_pipe
*
)
,
GFP_KERNEL
);
if
(
!
chip
->
playback_pipes
)
return
-
ENOMEM
;
chip
->
capture_pipes
=
k
malloc
(
sizeof
(
struct
vx_pipe
*
)
*
chip
->
audio_ins
,
GFP_KERNEL
);
chip
->
capture_pipes
=
k
calloc
(
chip
->
audio_ins
,
sizeof
(
struct
vx_pipe
*
)
,
GFP_KERNEL
);
if
(
!
chip
->
capture_pipes
)
{
kfree
(
chip
->
playback_pipes
);
return
-
ENOMEM
;
}
memset
(
chip
->
playback_pipes
,
0
,
sizeof
(
struct
vx_pipe
*
)
*
chip
->
audio_outs
);
memset
(
chip
->
capture_pipes
,
0
,
sizeof
(
struct
vx_pipe
*
)
*
chip
->
audio_ins
);
preferred
=
chip
->
ibl
.
size
;
chip
->
ibl
.
size
=
0
;
vx_set_ibl
(
chip
,
&
chip
->
ibl
);
/* query the info */
...
...
sound/pci/echoaudio/echoaudio.c
View file @
bce89698
...
...
@@ -236,9 +236,9 @@ static int pcm_open(struct snd_pcm_substream *substream,
chip
=
snd_pcm_substream_chip
(
substream
);
runtime
=
substream
->
runtime
;
if
(
!
(
pipe
=
kmalloc
(
sizeof
(
struct
audiopipe
),
GFP_KERNEL
)))
pipe
=
kzalloc
(
sizeof
(
struct
audiopipe
),
GFP_KERNEL
);
if
(
!
pipe
)
return
-
ENOMEM
;
memset
(
pipe
,
0
,
sizeof
(
struct
audiopipe
));
pipe
->
index
=
-
1
;
/* Not configured yet */
/* Set up hw capabilities and contraints */
...
...
sound/pci/emu10k1/emu10k1_main.c
View file @
bce89698
...
...
@@ -936,6 +936,17 @@ static struct snd_emu_chip_details emu_chip_details[] = {
.
ca0151_chip
=
1
,
.
spk71
=
1
,
.
spdif_bug
=
1
}
,
/* Dell OEM/Creative Labs Audigy 2 ZS */
/* See ALSA bug#1365 */
{.
vendor
=
0x1102
,
.
device
=
0x0004
,
.
subsystem
=
0x10031102
,
.
driver
=
"Audigy2"
,
.
name
=
"Audigy 2 ZS [SB0353]"
,
.
id
=
"Audigy2"
,
.
emu10k2_chip
=
1
,
.
ca0102_chip
=
1
,
.
ca0151_chip
=
1
,
.
spk71
=
1
,
.
spdif_bug
=
1
,
.
ac97_chip
=
1
}
,
{.
vendor
=
0x1102
,
.
device
=
0x0004
,
.
subsystem
=
0x10021102
,
.
driver
=
"Audigy2"
,
.
name
=
"Audigy 2 Platinum [SB0240P]"
,
.
id
=
"Audigy2"
,
...
...
sound/pci/emu10k1/irq.c
View file @
bce89698
...
...
@@ -37,9 +37,13 @@ irqreturn_t snd_emu10k1_interrupt(int irq, void *dev_id, struct pt_regs *regs)
int
handled
=
0
;
while
((
status
=
inl
(
emu
->
port
+
IPR
))
!=
0
)
{
//
printk(
"emu10k1 irq - status = 0x%x\n", status);
//
snd_printk(KERN_INFO
"emu10k1 irq - status = 0x%x\n", status);
orig_status
=
status
;
handled
=
1
;
if
((
status
&
0xffffffff
)
==
0xffffffff
)
{
snd_printk
(
KERN_INFO
"snd-emu10k1: Suspected sound card removal
\n
"
);
break
;
}
if
(
status
&
IPR_PCIERROR
)
{
snd_printk
(
KERN_ERR
"interrupt: PCI error
\n
"
);
snd_emu10k1_intr_disable
(
emu
,
INTE_PCIERRORENABLE
);
...
...
sound/ppc/awacs.c
View file @
bce89698
...
...
@@ -801,11 +801,10 @@ snd_pmac_awacs_init(struct snd_pmac *chip)
chip
->
revision
=
(
in_le32
(
&
chip
->
awacs
->
codec_stat
)
>>
12
)
&
0xf
;
#ifdef PMAC_AMP_AVAIL
if
(
chip
->
revision
==
3
&&
chip
->
has_iic
&&
CHECK_CUDA_AMP
())
{
struct
awacs_amp
*
amp
=
k
m
alloc
(
sizeof
(
*
amp
),
GFP_KERNEL
);
struct
awacs_amp
*
amp
=
k
z
alloc
(
sizeof
(
*
amp
),
GFP_KERNEL
);
if
(
!
amp
)
return
-
ENOMEM
;
chip
->
mixer_data
=
amp
;
memset
(
amp
,
0
,
sizeof
(
*
amp
));
chip
->
mixer_free
=
awacs_amp_free
;
awacs_amp_set_vol
(
amp
,
0
,
63
,
63
,
0
);
/* mute and zero vol */
awacs_amp_set_vol
(
amp
,
1
,
63
,
63
,
0
);
...
...
sound/ppc/daca.c
View file @
bce89698
...
...
@@ -258,10 +258,9 @@ int __init snd_pmac_daca_init(struct snd_pmac *chip)
request_module
(
"i2c-powermac"
);
#endif
/* CONFIG_KMOD */
mix
=
k
m
alloc
(
sizeof
(
*
mix
),
GFP_KERNEL
);
mix
=
k
z
alloc
(
sizeof
(
*
mix
),
GFP_KERNEL
);
if
(
!
mix
)
return
-
ENOMEM
;
memset
(
mix
,
0
,
sizeof
(
*
mix
));
chip
->
mixer_data
=
mix
;
chip
->
mixer_free
=
daca_cleanup
;
mix
->
amp_on
=
1
;
/* default on */
...
...
sound/ppc/keywest.c
View file @
bce89698
...
...
@@ -64,11 +64,10 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
if
(
strncmp
(
i2c_device_name
(
adapter
),
"mac-io"
,
6
))
return
0
;
/* ignored */
new_client
=
k
m
alloc
(
sizeof
(
struct
i2c_client
),
GFP_KERNEL
);
new_client
=
k
z
alloc
(
sizeof
(
struct
i2c_client
),
GFP_KERNEL
);
if
(
!
new_client
)
return
-
ENOMEM
;
memset
(
new_client
,
0
,
sizeof
(
*
new_client
));
new_client
->
addr
=
keywest_ctx
->
addr
;
i2c_set_clientdata
(
new_client
,
keywest_ctx
);
new_client
->
adapter
=
adapter
;
...
...
sound/ppc/powermac.c
View file @
bce89698
...
...
@@ -181,21 +181,14 @@ static int __init alsa_card_pmac_init(void)
if
((
err
=
platform_driver_register
(
&
snd_pmac_driver
))
<
0
)
return
err
;
device
=
platform_device_register_simple
(
SND_PMAC_DRIVER
,
-
1
,
NULL
,
0
);
if
(
!
IS_ERR
(
device
))
{
if
(
platform_get_drvdata
(
device
))
return
0
;
platform_device_unregister
(
device
);
err
=
-
ENODEV
;
}
else
err
=
PTR_ERR
(
device
);
platform_driver_unregister
(
&
snd_pmac_driver
);
return
err
;
return
0
;
}
static
void
__exit
alsa_card_pmac_exit
(
void
)
{
platform_device_unregister
(
device
);
if
(
!
IS_ERR
(
device
))
platform_device_unregister
(
device
);
platform_driver_unregister
(
&
snd_pmac_driver
);
}
...
...
sound/ppc/tumbler.c
View file @
bce89698
...
...
@@ -1316,10 +1316,9 @@ int __init snd_pmac_tumbler_init(struct snd_pmac *chip)
request_module
(
"i2c-powermac"
);
#endif
/* CONFIG_KMOD */
mix
=
k
m
alloc
(
sizeof
(
*
mix
),
GFP_KERNEL
);
mix
=
k
z
alloc
(
sizeof
(
*
mix
),
GFP_KERNEL
);
if
(
!
mix
)
return
-
ENOMEM
;
memset
(
mix
,
0
,
sizeof
(
*
mix
));
mix
->
headphone_irq
=
-
1
;
chip
->
mixer_data
=
mix
;
...
...
sound/usb/usbaudio.c
View file @
bce89698
...
...
@@ -2260,10 +2260,9 @@ static int add_audio_endpoint(struct snd_usb_audio *chip, int stream, struct aud
}
/* create a new pcm */
as
=
k
m
alloc
(
sizeof
(
*
as
),
GFP_KERNEL
);
as
=
k
z
alloc
(
sizeof
(
*
as
),
GFP_KERNEL
);
if
(
!
as
)
return
-
ENOMEM
;
memset
(
as
,
0
,
sizeof
(
*
as
));
as
->
pcm_index
=
chip
->
pcm_devs
;
as
->
chip
=
chip
;
as
->
fmt_type
=
fp
->
fmt_type
;
...
...
@@ -2633,13 +2632,12 @@ static int parse_audio_endpoints(struct snd_usb_audio *chip, int iface_no)
csep
=
NULL
;
}
fp
=
k
m
alloc
(
sizeof
(
*
fp
),
GFP_KERNEL
);
fp
=
k
z
alloc
(
sizeof
(
*
fp
),
GFP_KERNEL
);
if
(
!
fp
)
{
snd_printk
(
KERN_ERR
"cannot malloc
\n
"
);
return
-
ENOMEM
;
}
memset
(
fp
,
0
,
sizeof
(
*
fp
));
fp
->
iface
=
iface_no
;
fp
->
altsetting
=
altno
;
fp
->
altset_idx
=
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment