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
102477b6
Commit
102477b6
authored
Dec 06, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-3.2' into for-3.3
parents
a2760e4b
cefcc03f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
sound/soc/soc-utils.c
sound/soc/soc-utils.c
+30
-1
No files found.
sound/soc/soc-utils.c
View file @
102477b6
...
...
@@ -58,7 +58,36 @@ int snd_soc_params_to_bclk(struct snd_pcm_hw_params *params)
}
EXPORT_SYMBOL_GPL
(
snd_soc_params_to_bclk
);
static
struct
snd_soc_platform_driver
dummy_platform
;
static
const
struct
snd_pcm_hardware
dummy_dma_hardware
=
{
.
formats
=
0xffffffff
,
.
channels_min
=
1
,
.
channels_max
=
UINT_MAX
,
/* Random values to keep userspace happy when checking constraints */
.
info
=
SNDRV_PCM_INFO_INTERLEAVED
|
SNDRV_PCM_INFO_BLOCK_TRANSFER
,
.
buffer_bytes_max
=
128
*
1024
,
.
period_bytes_min
=
PAGE_SIZE
,
.
period_bytes_max
=
PAGE_SIZE
*
2
,
.
periods_min
=
2
,
.
periods_max
=
128
,
};
static
int
dummy_dma_open
(
struct
snd_pcm_substream
*
substream
)
{
snd_soc_set_runtime_hwparams
(
substream
,
&
dummy_dma_hardware
);
return
0
;
}
static
struct
snd_pcm_ops
dummy_dma_ops
=
{
.
open
=
dummy_dma_open
,
.
ioctl
=
snd_pcm_lib_ioctl
,
};
static
struct
snd_soc_platform_driver
dummy_platform
=
{
.
ops
=
&
dummy_dma_ops
,
};
static
__devinit
int
snd_soc_dummy_probe
(
struct
platform_device
*
pdev
)
{
...
...
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