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
2c3b9b50
Commit
2c3b9b50
authored
Dec 21, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/asoc' into for-linus
parents
a6c56f61
48c03ce7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
19 deletions
+3
-19
sound/soc/codecs/ak4642.c
sound/soc/codecs/ak4642.c
+1
-1
sound/soc/codecs/stac9766.c
sound/soc/codecs/stac9766.c
+1
-17
sound/soc/codecs/wm8974.c
sound/soc/codecs/wm8974.c
+1
-1
No files found.
sound/soc/codecs/ak4642.c
View file @
2c3b9b50
...
...
@@ -470,7 +470,7 @@ EXPORT_SYMBOL_GPL(soc_codec_dev_ak4642);
static
int
__init
ak4642_modinit
(
void
)
{
int
ret
;
int
ret
=
0
;
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
ret
=
i2c_add_driver
(
&
ak4642_i2c_driver
);
#endif
...
...
sound/soc/codecs/stac9766.c
View file @
2c3b9b50
...
...
@@ -191,6 +191,7 @@ static int ac97_analog_prepare(struct snd_pcm_substream *substream,
vra
=
stac9766_ac97_read
(
codec
,
AC97_EXTENDED_STATUS
);
vra
|=
0x1
;
/* enable variable rate audio */
vra
&=
~
0x4
;
/* disable SPDIF output */
stac9766_ac97_write
(
codec
,
AC97_EXTENDED_STATUS
,
vra
);
...
...
@@ -221,22 +222,6 @@ static int ac97_digital_prepare(struct snd_pcm_substream *substream,
return
stac9766_ac97_write
(
codec
,
reg
,
runtime
->
rate
);
}
static
int
ac97_digital_trigger
(
struct
snd_pcm_substream
*
substream
,
int
cmd
,
struct
snd_soc_dai
*
dai
)
{
struct
snd_soc_codec
*
codec
=
dai
->
codec
;
unsigned
short
vra
;
switch
(
cmd
)
{
case
SNDRV_PCM_TRIGGER_STOP
:
vra
=
stac9766_ac97_read
(
codec
,
AC97_EXTENDED_STATUS
);
vra
&=
!
0x04
;
stac9766_ac97_write
(
codec
,
AC97_EXTENDED_STATUS
,
vra
);
break
;
}
return
0
;
}
static
int
stac9766_set_bias_level
(
struct
snd_soc_codec
*
codec
,
enum
snd_soc_bias_level
level
)
{
...
...
@@ -315,7 +300,6 @@ static struct snd_soc_dai_ops stac9766_dai_ops_analog = {
static
struct
snd_soc_dai_ops
stac9766_dai_ops_digital
=
{
.
prepare
=
ac97_digital_prepare
,
.
trigger
=
ac97_digital_trigger
,
};
struct
snd_soc_dai
stac9766_dai
[]
=
{
...
...
sound/soc/codecs/wm8974.c
View file @
2c3b9b50
...
...
@@ -47,7 +47,7 @@ static const u16 wm8974_reg[WM8974_CACHEREGNUM] = {
};
#define WM8974_POWER1_BIASEN 0x08
#define WM8974_POWER1_BUFIOEN 0x
10
#define WM8974_POWER1_BUFIOEN 0x
04
struct
wm8974_priv
{
struct
snd_soc_codec
codec
;
...
...
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