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
6ccd7441
Commit
6ccd7441
authored
Nov 15, 2010
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.37' into for-2.6.38
parents
3c9e28e7
bcbb2433
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
19 deletions
+5
-19
sound/soc/s3c24xx/rx1950_uda1380.c
sound/soc/s3c24xx/rx1950_uda1380.c
+3
-17
sound/soc/soc-dapm.c
sound/soc/soc-dapm.c
+2
-2
No files found.
sound/soc/s3c24xx/rx1950_uda1380.c
View file @
6ccd7441
...
...
@@ -50,7 +50,6 @@ static unsigned int rates[] = {
16000
,
44100
,
48000
,
88200
,
};
static
struct
snd_pcm_hw_constraint_list
hw_rates
=
{
...
...
@@ -130,7 +129,6 @@ static const struct snd_soc_dapm_route audio_map[] = {
};
static
struct
platform_device
*
s3c24xx_snd_device
;
static
struct
clk
*
xtal
;
static
int
rx1950_startup
(
struct
snd_pcm_substream
*
substream
)
{
...
...
@@ -179,10 +177,8 @@ static int rx1950_hw_params(struct snd_pcm_substream *substream,
case
44100
:
case
88200
:
clk_source
=
S3C24XX_CLKSRC_MPLL
;
fs_mode
=
S3C2410_IISMOD_256FS
;
div
=
clk_get_rate
(
xtal
)
/
(
256
*
rate
);
if
(
clk_get_rate
(
xtal
)
%
(
256
*
rate
)
>
(
128
*
rate
))
div
++
;
fs_mode
=
S3C2410_IISMOD_384FS
;
div
=
1
;
break
;
default:
printk
(
KERN_ERR
"%s: rate %d is not supported
\n
"
,
...
...
@@ -210,7 +206,7 @@ static int rx1950_hw_params(struct snd_pcm_substream *substream,
/* set MCLK division for sample rate */
ret
=
snd_soc_dai_set_clkdiv
(
cpu_dai
,
S3C24XX_DIV_MCLK
,
S3C2410_IISMOD_384FS
);
fs_mode
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -296,17 +292,8 @@ static int __init rx1950_init(void)
goto
err_plat_add
;
}
xtal
=
clk_get
(
&
s3c24xx_snd_device
->
dev
,
"xtal"
);
if
(
IS_ERR
(
xtal
))
{
ret
=
PTR_ERR
(
xtal
);
platform_device_unregister
(
s3c24xx_snd_device
);
goto
err_clk
;
}
return
0
;
err_clk:
err_plat_add:
err_plat_alloc:
err_gpio_conf:
...
...
@@ -321,7 +308,6 @@ static void __exit rx1950_exit(void)
platform_device_unregister
(
s3c24xx_snd_device
);
snd_soc_jack_free_gpios
(
&
hp_jack
,
ARRAY_SIZE
(
hp_jack_gpios
),
hp_jack_gpios
);
clk_put
(
xtal
);
gpio_free
(
S3C2410_GPA
(
1
));
}
...
...
sound/soc/soc-dapm.c
View file @
6ccd7441
...
...
@@ -706,12 +706,12 @@ static int dapm_seq_compare(struct snd_soc_dapm_widget *a,
struct
snd_soc_dapm_widget
*
b
,
int
sort
[])
{
if
(
a
->
codec
!=
b
->
codec
)
return
(
unsigned
long
)
a
-
(
unsigned
long
)
b
;
if
(
sort
[
a
->
id
]
!=
sort
[
b
->
id
])
return
sort
[
a
->
id
]
-
sort
[
b
->
id
];
if
(
a
->
reg
!=
b
->
reg
)
return
a
->
reg
-
b
->
reg
;
if
(
a
->
codec
!=
b
->
codec
)
return
(
unsigned
long
)
a
->
codec
-
(
unsigned
long
)
b
->
codec
;
return
0
;
}
...
...
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