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
b72ea212
Commit
b72ea212
authored
Dec 02, 2012
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/ak4642' into asoc-next
parents
c298d185
2f391251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
sound/soc/codecs/ak4642.c
sound/soc/codecs/ak4642.c
+2
-21
No files found.
sound/soc/codecs/ak4642.c
View file @
b72ea212
...
@@ -194,12 +194,6 @@ static const struct snd_soc_dapm_route ak4642_intercon[] = {
...
@@ -194,12 +194,6 @@ static const struct snd_soc_dapm_route ak4642_intercon[] = {
{
"LINEOUT Mixer"
,
"DACL"
,
"DAC"
},
{
"LINEOUT Mixer"
,
"DACL"
,
"DAC"
},
};
};
/* codec private data */
struct
ak4642_priv
{
unsigned
int
sysclk
;
enum
snd_soc_control_type
control_type
;
};
/*
/*
* ak4642 register cache
* ak4642 register cache
*/
*/
...
@@ -468,10 +462,9 @@ static int ak4642_resume(struct snd_soc_codec *codec)
...
@@ -468,10 +462,9 @@ static int ak4642_resume(struct snd_soc_codec *codec)
static
int
ak4642_probe
(
struct
snd_soc_codec
*
codec
)
static
int
ak4642_probe
(
struct
snd_soc_codec
*
codec
)
{
{
struct
ak4642_priv
*
ak4642
=
snd_soc_codec_get_drvdata
(
codec
);
int
ret
;
int
ret
;
ret
=
snd_soc_codec_set_cache_io
(
codec
,
8
,
8
,
ak4642
->
control_type
);
ret
=
snd_soc_codec_set_cache_io
(
codec
,
8
,
8
,
SND_SOC_I2C
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
dev_err
(
codec
->
dev
,
"Failed to set cache I/O: %d
\n
"
,
ret
);
dev_err
(
codec
->
dev
,
"Failed to set cache I/O: %d
\n
"
,
ret
);
return
ret
;
return
ret
;
...
@@ -523,21 +516,9 @@ static struct snd_soc_codec_driver soc_codec_dev_ak4648 = {
...
@@ -523,21 +516,9 @@ static struct snd_soc_codec_driver soc_codec_dev_ak4648 = {
static
__devinit
int
ak4642_i2c_probe
(
struct
i2c_client
*
i2c
,
static
__devinit
int
ak4642_i2c_probe
(
struct
i2c_client
*
i2c
,
const
struct
i2c_device_id
*
id
)
const
struct
i2c_device_id
*
id
)
{
{
struct
ak4642_priv
*
ak4642
;
return
snd_soc_register_codec
(
&
i2c
->
dev
,
int
ret
;
ak4642
=
devm_kzalloc
(
&
i2c
->
dev
,
sizeof
(
struct
ak4642_priv
),
GFP_KERNEL
);
if
(
!
ak4642
)
return
-
ENOMEM
;
i2c_set_clientdata
(
i2c
,
ak4642
);
ak4642
->
control_type
=
SND_SOC_I2C
;
ret
=
snd_soc_register_codec
(
&
i2c
->
dev
,
(
struct
snd_soc_codec_driver
*
)
id
->
driver_data
,
(
struct
snd_soc_codec_driver
*
)
id
->
driver_data
,
&
ak4642_dai
,
1
);
&
ak4642_dai
,
1
);
return
ret
;
}
}
static
__devexit
int
ak4642_i2c_remove
(
struct
i2c_client
*
client
)
static
__devexit
int
ak4642_i2c_remove
(
struct
i2c_client
*
client
)
...
...
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