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
3127b6aa
Commit
3127b6aa
authored
Sep 23, 2011
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/asoc' into for-linus
parents
362e4e49
f0e8ed85
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
30 deletions
+16
-30
sound/soc/blackfin/bf5xx-ad73311.c
sound/soc/blackfin/bf5xx-ad73311.c
+1
-1
sound/soc/codecs/wm8962.c
sound/soc/codecs/wm8962.c
+0
-26
sound/soc/soc-core.c
sound/soc/soc-core.c
+15
-3
No files found.
sound/soc/blackfin/bf5xx-ad73311.c
View file @
3127b6aa
...
...
@@ -128,7 +128,7 @@ static int snd_ad73311_configure(void)
return
0
;
}
static
int
bf5xx_probe
(
struct
platform_device
*
pdev
)
static
int
bf5xx_probe
(
struct
snd_soc_card
*
card
)
{
int
err
;
if
(
gpio_request
(
GPIO_SE
,
"AD73311_SE"
))
{
...
...
sound/soc/codecs/wm8962.c
View file @
3127b6aa
...
...
@@ -3479,31 +3479,6 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack)
}
EXPORT_SYMBOL_GPL
(
wm8962_mic_detect
);
#ifdef CONFIG_PM
static
int
wm8962_resume
(
struct
snd_soc_codec
*
codec
)
{
u16
*
reg_cache
=
codec
->
reg_cache
;
int
i
;
/* Restore the registers */
for
(
i
=
1
;
i
<
codec
->
driver
->
reg_cache_size
;
i
++
)
{
switch
(
i
)
{
case
WM8962_SOFTWARE_RESET
:
continue
;
default:
break
;
}
if
(
reg_cache
[
i
]
!=
wm8962_reg
[
i
])
snd_soc_write
(
codec
,
i
,
reg_cache
[
i
]);
}
return
0
;
}
#else
#define wm8962_resume NULL
#endif
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
static
int
beep_rates
[]
=
{
500
,
1000
,
2000
,
4000
,
...
...
@@ -4015,7 +3990,6 @@ static int wm8962_remove(struct snd_soc_codec *codec)
static
struct
snd_soc_codec_driver
soc_codec_dev_wm8962
=
{
.
probe
=
wm8962_probe
,
.
remove
=
wm8962_remove
,
.
resume
=
wm8962_resume
,
.
set_bias_level
=
wm8962_set_bias_level
,
.
reg_cache_size
=
WM8962_MAX_REGISTER
+
1
,
.
reg_word_size
=
sizeof
(
u16
),
...
...
sound/soc/soc-core.c
View file @
3127b6aa
...
...
@@ -30,6 +30,7 @@
#include <linux/bitops.h>
#include <linux/debugfs.h>
#include <linux/platform_device.h>
#include <linux/ctype.h>
#include <linux/slab.h>
#include <sound/ac97_codec.h>
#include <sound/core.h>
...
...
@@ -1434,9 +1435,20 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
"%s"
,
card
->
name
);
snprintf
(
card
->
snd_card
->
longname
,
sizeof
(
card
->
snd_card
->
longname
),
"%s"
,
card
->
long_name
?
card
->
long_name
:
card
->
name
);
if
(
card
->
driver_name
)
strlcpy
(
card
->
snd_card
->
driver
,
card
->
driver_name
,
sizeof
(
card
->
snd_card
->
driver
));
snprintf
(
card
->
snd_card
->
driver
,
sizeof
(
card
->
snd_card
->
driver
),
"%s"
,
card
->
driver_name
?
card
->
driver_name
:
card
->
name
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
card
->
snd_card
->
driver
);
i
++
)
{
switch
(
card
->
snd_card
->
driver
[
i
])
{
case
'_'
:
case
'-'
:
case
'\0'
:
break
;
default:
if
(
!
isalnum
(
card
->
snd_card
->
driver
[
i
]))
card
->
snd_card
->
driver
[
i
]
=
'_'
;
break
;
}
}
if
(
card
->
late_probe
)
{
ret
=
card
->
late_probe
(
card
);
...
...
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