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
40bac28e
Commit
40bac28e
authored
Mar 26, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/fix/spear' into asoc-next
parents
5f948722
59d9cc2a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sound/soc/spear/spear_pcm.c
sound/soc/spear/spear_pcm.c
+6
-6
No files found.
sound/soc/spear/spear_pcm.c
View file @
40bac28e
...
...
@@ -149,9 +149,9 @@ static void spear_pcm_free(struct snd_pcm *pcm)
static
u64
spear_pcm_dmamask
=
DMA_BIT_MASK
(
32
);
static
int
spear_pcm_new
(
struct
snd_card
*
card
,
struct
snd_soc_dai
*
dai
,
struct
snd_pcm
*
pcm
)
static
int
spear_pcm_new
(
struct
snd_soc_pcm_runtime
*
rtd
)
{
struct
snd_card
*
card
=
rtd
->
card
->
snd_card
;
int
ret
;
if
(
!
card
->
dev
->
dma_mask
)
...
...
@@ -159,16 +159,16 @@ static int spear_pcm_new(struct snd_card *card,
if
(
!
card
->
dev
->
coherent_dma_mask
)
card
->
dev
->
coherent_dma_mask
=
DMA_BIT_MASK
(
32
);
if
(
dai
->
driver
->
playback
.
channels_min
)
{
ret
=
spear_pcm_preallocate_dma_buffer
(
pcm
,
if
(
rtd
->
cpu_
dai
->
driver
->
playback
.
channels_min
)
{
ret
=
spear_pcm_preallocate_dma_buffer
(
rtd
->
pcm
,
SNDRV_PCM_STREAM_PLAYBACK
,
spear_pcm_hardware
.
buffer_bytes_max
);
if
(
ret
)
return
ret
;
}
if
(
dai
->
driver
->
capture
.
channels_min
)
{
ret
=
spear_pcm_preallocate_dma_buffer
(
pcm
,
if
(
rtd
->
cpu_
dai
->
driver
->
capture
.
channels_min
)
{
ret
=
spear_pcm_preallocate_dma_buffer
(
rtd
->
pcm
,
SNDRV_PCM_STREAM_CAPTURE
,
spear_pcm_hardware
.
buffer_bytes_max
);
if
(
ret
)
...
...
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