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
8d98f224
Commit
8d98f224
authored
Apr 16, 2009
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.30' into for-2.6.31
parents
3ba191ce
002fbad8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
19 deletions
+25
-19
sound/soc/omap/omap-mcbsp.c
sound/soc/omap/omap-mcbsp.c
+5
-2
sound/soc/omap/osk5912.c
sound/soc/omap/osk5912.c
+2
-2
sound/soc/pxa/pxa-ssp.c
sound/soc/pxa/pxa-ssp.c
+1
-0
sound/soc/s3c24xx/jive_wm8750.c
sound/soc/s3c24xx/jive_wm8750.c
+6
-6
sound/soc/s3c24xx/s3c-i2s-v2.c
sound/soc/s3c24xx/s3c-i2s-v2.c
+10
-8
sound/soc/s3c24xx/s3c2412-i2s.c
sound/soc/s3c24xx/s3c2412-i2s.c
+1
-1
No files found.
sound/soc/omap/omap-mcbsp.c
View file @
8d98f224
...
...
@@ -290,7 +290,7 @@ static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
case
SND_SOC_DAIFMT_DSP_A
:
case
SND_SOC_DAIFMT_DSP_B
:
regs
->
srgr2
|=
FPER
(
wlen
*
channels
-
1
);
regs
->
srgr1
|=
FWID
(
wlen
*
channels
-
2
);
regs
->
srgr1
|=
FWID
(
0
);
break
;
}
...
...
@@ -309,6 +309,7 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
{
struct
omap_mcbsp_data
*
mcbsp_data
=
to_mcbsp
(
cpu_dai
->
private_data
);
struct
omap_mcbsp_reg_cfg
*
regs
=
&
mcbsp_data
->
regs
;
unsigned
int
temp_fmt
=
fmt
;
if
(
mcbsp_data
->
configured
)
return
0
;
...
...
@@ -342,6 +343,8 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
/* 0-bit data delay */
regs
->
rcr2
|=
RDATDLY
(
0
);
regs
->
xcr2
|=
XDATDLY
(
0
);
/* Invert FS polarity configuration */
temp_fmt
^=
SND_SOC_DAIFMT_NB_IF
;
break
;
default:
/* Unsupported data format */
...
...
@@ -365,7 +368,7 @@ static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
}
/* Set bit clock (CLKX/CLKR) and FS polarities */
switch
(
fmt
&
SND_SOC_DAIFMT_INV_MASK
)
{
switch
(
temp_
fmt
&
SND_SOC_DAIFMT_INV_MASK
)
{
case
SND_SOC_DAIFMT_NB_NF
:
/*
* Normal BCLK + FS.
...
...
sound/soc/omap/osk5912.c
View file @
8d98f224
...
...
@@ -62,7 +62,7 @@ static int osk_hw_params(struct snd_pcm_substream *substream,
/* Set codec DAI configuration */
err
=
snd_soc_dai_set_fmt
(
codec_dai
,
SND_SOC_DAIFMT_DSP_B
|
SND_SOC_DAIFMT_NB_
I
F
|
SND_SOC_DAIFMT_NB_
N
F
|
SND_SOC_DAIFMT_CBM_CFM
);
if
(
err
<
0
)
{
printk
(
KERN_ERR
"can't set codec DAI configuration
\n
"
);
...
...
@@ -72,7 +72,7 @@ static int osk_hw_params(struct snd_pcm_substream *substream,
/* Set cpu DAI configuration */
err
=
snd_soc_dai_set_fmt
(
cpu_dai
,
SND_SOC_DAIFMT_DSP_B
|
SND_SOC_DAIFMT_NB_
I
F
|
SND_SOC_DAIFMT_NB_
N
F
|
SND_SOC_DAIFMT_CBM_CFM
);
if
(
err
<
0
)
{
printk
(
KERN_ERR
"can't set cpu DAI configuration
\n
"
);
...
...
sound/soc/pxa/pxa-ssp.c
View file @
8d98f224
...
...
@@ -815,6 +815,7 @@ static int pxa_ssp_probe(struct platform_device *pdev,
goto
err_priv
;
}
priv
->
dai_fmt
=
(
unsigned
int
)
-
1
;
dai
->
private_data
=
priv
;
return
0
;
...
...
sound/soc/s3c24xx/jive_wm8750.c
View file @
8d98f224
...
...
@@ -69,8 +69,8 @@ static int jive_hw_params(struct snd_pcm_substream *substream,
break
;
}
s3c_i2sv2_calc_rate
(
&
div
,
NULL
,
params_rate
(
params
),
s3c2412_get_iisclk
());
s3c_i2sv2_
iis_
calc_rate
(
&
div
,
NULL
,
params_rate
(
params
),
s3c2412_get_iisclk
());
/* set codec DAI configuration */
ret
=
snd_soc_dai_set_fmt
(
codec_dai
,
SND_SOC_DAIFMT_I2S
|
...
...
@@ -145,8 +145,9 @@ static struct snd_soc_dai_link jive_dai = {
};
/* jive audio machine driver */
static
struct
snd_soc_
machine
snd_soc_machine_jive
=
{
static
struct
snd_soc_
card
snd_soc_machine_jive
=
{
.
name
=
"Jive"
,
.
platform
=
&
s3c24xx_soc_platform
,
.
dai_link
=
&
jive_dai
,
.
num_links
=
1
,
};
...
...
@@ -157,9 +158,8 @@ static struct wm8750_setup_data jive_wm8750_setup = {
/* jive audio subsystem */
static
struct
snd_soc_device
jive_snd_devdata
=
{
.
machine
=
&
snd_soc_machine_jive
,
.
platform
=
&
s3c24xx_soc_platform
,
.
codec_dev
=
&
soc_codec_dev_wm8750_spi
,
.
card
=
&
snd_soc_machine_jive
,
.
codec_dev
=
&
soc_codec_dev_wm8750
,
.
codec_data
=
&
jive_wm8750_setup
,
};
...
...
sound/soc/s3c24xx/s3c-i2s-v2.c
View file @
8d98f224
...
...
@@ -473,9 +473,9 @@ static int s3c2412_i2s_set_clkdiv(struct snd_soc_dai *cpu_dai,
/* default table of all avaialable root fs divisors */
static
unsigned
int
iis_fs_tab
[]
=
{
256
,
512
,
384
,
768
};
int
s3c
241
2_iis_calc_rate
(
struct
s3c_i2sv2_rate_calc
*
info
,
unsigned
int
*
fstab
,
unsigned
int
rate
,
struct
clk
*
clk
)
int
s3c
_i2sv
2_iis_calc_rate
(
struct
s3c_i2sv2_rate_calc
*
info
,
unsigned
int
*
fstab
,
unsigned
int
rate
,
struct
clk
*
clk
)
{
unsigned
long
clkrate
=
clk_get_rate
(
clk
);
unsigned
int
div
;
...
...
@@ -531,7 +531,7 @@ int s3c2412_iis_calc_rate(struct s3c_i2sv2_rate_calc *info,
return
0
;
}
EXPORT_SYMBOL_GPL
(
s3c
241
2_iis_calc_rate
);
EXPORT_SYMBOL_GPL
(
s3c
_i2sv
2_iis_calc_rate
);
int
s3c_i2sv2_probe
(
struct
platform_device
*
pdev
,
struct
snd_soc_dai
*
dai
,
...
...
@@ -624,10 +624,12 @@ static int s3c2412_i2s_resume(struct snd_soc_dai *dai)
int
s3c_i2sv2_register_dai
(
struct
snd_soc_dai
*
dai
)
{
dai
->
ops
.
trigger
=
s3c2412_i2s_trigger
;
dai
->
ops
.
hw_params
=
s3c2412_i2s_hw_params
;
dai
->
ops
.
set_fmt
=
s3c2412_i2s_set_fmt
;
dai
->
ops
.
set_clkdiv
=
s3c2412_i2s_set_clkdiv
;
struct
snd_soc_dai_ops
*
ops
=
dai
->
ops
;
ops
->
trigger
=
s3c2412_i2s_trigger
;
ops
->
hw_params
=
s3c2412_i2s_hw_params
;
ops
->
set_fmt
=
s3c2412_i2s_set_fmt
;
ops
->
set_clkdiv
=
s3c2412_i2s_set_clkdiv
;
dai
->
suspend
=
s3c2412_i2s_suspend
;
dai
->
resume
=
s3c2412_i2s_resume
;
...
...
sound/soc/s3c24xx/s3c2412-i2s.c
View file @
8d98f224
...
...
@@ -33,8 +33,8 @@
#include <plat/regs-s3c2412-iis.h>
#include <plat/regs-gpio.h>
#include <plat/audio.h>
#include <mach/regs-gpio.h>
#include <mach/dma.h>
#include "s3c24xx-pcm.h"
...
...
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