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
nexedi
linux
Commits
e50a96e7
Commit
e50a96e7
authored
Apr 07, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/asoc' into for-linus
parents
8c941de1
5c15a686
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
sound/soc/codecs/ak4535.c
sound/soc/codecs/ak4535.c
+2
-1
sound/soc/fsl/fsl_dma.c
sound/soc/fsl/fsl_dma.c
+6
-6
No files found.
sound/soc/codecs/ak4535.c
View file @
e50a96e7
...
...
@@ -659,7 +659,8 @@ static int ak4535_remove(struct platform_device *pdev)
snd_soc_free_pcms
(
socdev
);
snd_soc_dapm_free
(
socdev
);
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
i2c_unregister_device
(
codec
->
control_data
);
if
(
codec
->
control_data
)
i2c_unregister_device
(
codec
->
control_data
);
i2c_del_driver
(
&
ak4535_i2c_driver
);
#endif
kfree
(
codec
->
private_data
);
...
...
sound/soc/fsl/fsl_dma.c
View file @
e50a96e7
...
...
@@ -300,7 +300,7 @@ static int fsl_dma_new(struct snd_card *card, struct snd_soc_dai *dai,
if
(
!
card
->
dev
->
coherent_dma_mask
)
card
->
dev
->
coherent_dma_mask
=
fsl_dma_dmamask
;
ret
=
snd_dma_alloc_pages
(
SNDRV_DMA_TYPE_DEV
,
pcm
->
dev
,
ret
=
snd_dma_alloc_pages
(
SNDRV_DMA_TYPE_DEV
,
card
->
dev
,
fsl_dma_hardware
.
buffer_bytes_max
,
&
pcm
->
streams
[
0
].
substream
->
dma_buffer
);
if
(
ret
)
{
...
...
@@ -310,7 +310,7 @@ static int fsl_dma_new(struct snd_card *card, struct snd_soc_dai *dai,
return
-
ENOMEM
;
}
ret
=
snd_dma_alloc_pages
(
SNDRV_DMA_TYPE_DEV
,
pcm
->
dev
,
ret
=
snd_dma_alloc_pages
(
SNDRV_DMA_TYPE_DEV
,
card
->
dev
,
fsl_dma_hardware
.
buffer_bytes_max
,
&
pcm
->
streams
[
1
].
substream
->
dma_buffer
);
if
(
ret
)
{
...
...
@@ -418,7 +418,7 @@ static int fsl_dma_open(struct snd_pcm_substream *substream)
return
-
EBUSY
;
}
dma_private
=
dma_alloc_coherent
(
substream
->
pcm
->
dev
,
dma_private
=
dma_alloc_coherent
(
substream
->
pcm
->
card
->
dev
,
sizeof
(
struct
fsl_dma_private
),
&
ld_buf_phys
,
GFP_KERNEL
);
if
(
!
dma_private
)
{
dev_err
(
substream
->
pcm
->
card
->
dev
,
...
...
@@ -445,7 +445,7 @@ static int fsl_dma_open(struct snd_pcm_substream *substream)
dev_err
(
substream
->
pcm
->
card
->
dev
,
"can't register ISR for IRQ %u (ret=%i)
\n
"
,
dma_private
->
irq
,
ret
);
dma_free_coherent
(
substream
->
pcm
->
dev
,
dma_free_coherent
(
substream
->
pcm
->
card
->
dev
,
sizeof
(
struct
fsl_dma_private
),
dma_private
,
dma_private
->
ld_buf_phys
);
return
ret
;
...
...
@@ -778,13 +778,13 @@ static int fsl_dma_close(struct snd_pcm_substream *substream)
free_irq
(
dma_private
->
irq
,
dma_private
);
if
(
dma_private
->
ld_buf_phys
)
{
dma_unmap_single
(
substream
->
pcm
->
dev
,
dma_unmap_single
(
substream
->
pcm
->
card
->
dev
,
dma_private
->
ld_buf_phys
,
sizeof
(
dma_private
->
link
),
DMA_TO_DEVICE
);
}
/* Deallocate the fsl_dma_private structure */
dma_free_coherent
(
substream
->
pcm
->
dev
,
dma_free_coherent
(
substream
->
pcm
->
card
->
dev
,
sizeof
(
struct
fsl_dma_private
),
dma_private
,
dma_private
->
ld_buf_phys
);
substream
->
runtime
->
private_data
=
NULL
;
...
...
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