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
1f7f8e04
Commit
1f7f8e04
authored
Oct 24, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/samsung' into asoc-next
parents
a6f849f7
de0022d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
18 deletions
+11
-18
sound/soc/samsung/bells.c
sound/soc/samsung/bells.c
+1
-0
sound/soc/samsung/i2s.c
sound/soc/samsung/i2s.c
+7
-7
sound/soc/samsung/smdk_wm8994.c
sound/soc/samsung/smdk_wm8994.c
+3
-11
No files found.
sound/soc/samsung/bells.c
View file @
1f7f8e04
...
@@ -356,6 +356,7 @@ static struct snd_soc_dapm_widget bells_widgets[] = {
...
@@ -356,6 +356,7 @@ static struct snd_soc_dapm_widget bells_widgets[] = {
static
struct
snd_soc_dapm_route
bells_routes
[]
=
{
static
struct
snd_soc_dapm_route
bells_routes
[]
=
{
{
"Sub CLK_SYS"
,
NULL
,
"OPCLK"
},
{
"Sub CLK_SYS"
,
NULL
,
"OPCLK"
},
{
"CLKIN"
,
NULL
,
"OPCLK"
},
{
"DMIC"
,
NULL
,
"MICBIAS2"
},
{
"DMIC"
,
NULL
,
"MICBIAS2"
},
{
"IN2L"
,
NULL
,
"DMIC"
},
{
"IN2L"
,
NULL
,
"DMIC"
},
...
...
sound/soc/samsung/i2s.c
View file @
1f7f8e04
...
@@ -1055,7 +1055,7 @@ static struct i2s_dai *i2s_alloc_dai(struct platform_device *pdev, bool sec)
...
@@ -1055,7 +1055,7 @@ static struct i2s_dai *i2s_alloc_dai(struct platform_device *pdev, bool sec)
i2s
->
i2s_dai_drv
.
ops
=
&
samsung_i2s_dai_ops
;
i2s
->
i2s_dai_drv
.
ops
=
&
samsung_i2s_dai_ops
;
i2s
->
i2s_dai_drv
.
suspend
=
i2s_suspend
;
i2s
->
i2s_dai_drv
.
suspend
=
i2s_suspend
;
i2s
->
i2s_dai_drv
.
resume
=
i2s_resume
;
i2s
->
i2s_dai_drv
.
resume
=
i2s_resume
;
i2s
->
i2s_dai_drv
.
playback
.
channels_min
=
2
;
i2s
->
i2s_dai_drv
.
playback
.
channels_min
=
1
;
i2s
->
i2s_dai_drv
.
playback
.
channels_max
=
2
;
i2s
->
i2s_dai_drv
.
playback
.
channels_max
=
2
;
i2s
->
i2s_dai_drv
.
playback
.
rates
=
SAMSUNG_I2S_RATES
;
i2s
->
i2s_dai_drv
.
playback
.
rates
=
SAMSUNG_I2S_RATES
;
i2s
->
i2s_dai_drv
.
playback
.
formats
=
SAMSUNG_I2S_FMTS
;
i2s
->
i2s_dai_drv
.
playback
.
formats
=
SAMSUNG_I2S_FMTS
;
...
@@ -1138,9 +1138,9 @@ static int samsung_i2s_probe(struct platform_device *pdev)
...
@@ -1138,9 +1138,9 @@ static int samsung_i2s_probe(struct platform_device *pdev)
dev_err
(
&
pdev
->
dev
,
"Unable to get drvdata
\n
"
);
dev_err
(
&
pdev
->
dev
,
"Unable to get drvdata
\n
"
);
return
-
EFAULT
;
return
-
EFAULT
;
}
}
snd_soc_register_component
(
&
sec_dai
->
pdev
->
dev
,
devm_
snd_soc_register_component
(
&
sec_dai
->
pdev
->
dev
,
&
samsung_i2s_component
,
&
samsung_i2s_component
,
&
sec_dai
->
i2s_dai_drv
,
1
);
&
sec_dai
->
i2s_dai_drv
,
1
);
samsung_asoc_dma_platform_register
(
&
pdev
->
dev
);
samsung_asoc_dma_platform_register
(
&
pdev
->
dev
);
return
0
;
return
0
;
}
}
...
@@ -1253,8 +1253,9 @@ static int samsung_i2s_probe(struct platform_device *pdev)
...
@@ -1253,8 +1253,9 @@ static int samsung_i2s_probe(struct platform_device *pdev)
goto
err
;
goto
err
;
}
}
snd_soc_register_component
(
&
pri_dai
->
pdev
->
dev
,
&
samsung_i2s_component
,
devm_snd_soc_register_component
(
&
pri_dai
->
pdev
->
dev
,
&
pri_dai
->
i2s_dai_drv
,
1
);
&
samsung_i2s_component
,
&
pri_dai
->
i2s_dai_drv
,
1
);
pm_runtime_enable
(
&
pdev
->
dev
);
pm_runtime_enable
(
&
pdev
->
dev
);
...
@@ -1289,7 +1290,6 @@ static int samsung_i2s_remove(struct platform_device *pdev)
...
@@ -1289,7 +1290,6 @@ static int samsung_i2s_remove(struct platform_device *pdev)
i2s
->
sec_dai
=
NULL
;
i2s
->
sec_dai
=
NULL
;
samsung_asoc_dma_platform_unregister
(
&
pdev
->
dev
);
samsung_asoc_dma_platform_unregister
(
&
pdev
->
dev
);
snd_soc_unregister_component
(
&
pdev
->
dev
);
return
0
;
return
0
;
}
}
...
...
sound/soc/samsung/smdk_wm8994.c
View file @
1f7f8e04
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#include "../codecs/wm8994.h"
#include "../codecs/wm8994.h"
#include <sound/pcm_params.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <linux/module.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_device.h>
...
@@ -193,7 +194,7 @@ static int smdk_audio_probe(struct platform_device *pdev)
...
@@ -193,7 +194,7 @@ static int smdk_audio_probe(struct platform_device *pdev)
platform_set_drvdata
(
pdev
,
board
);
platform_set_drvdata
(
pdev
,
board
);
ret
=
snd_soc_register_card
(
card
);
ret
=
devm_snd_soc_register_card
(
&
pdev
->
dev
,
card
);
if
(
ret
)
if
(
ret
)
dev_err
(
&
pdev
->
dev
,
"snd_soc_register_card() failed:%d
\n
"
,
ret
);
dev_err
(
&
pdev
->
dev
,
"snd_soc_register_card() failed:%d
\n
"
,
ret
);
...
@@ -201,23 +202,14 @@ static int smdk_audio_probe(struct platform_device *pdev)
...
@@ -201,23 +202,14 @@ static int smdk_audio_probe(struct platform_device *pdev)
return
ret
;
return
ret
;
}
}
static
int
smdk_audio_remove
(
struct
platform_device
*
pdev
)
{
struct
snd_soc_card
*
card
=
platform_get_drvdata
(
pdev
);
snd_soc_unregister_card
(
card
);
return
0
;
}
static
struct
platform_driver
smdk_audio_driver
=
{
static
struct
platform_driver
smdk_audio_driver
=
{
.
driver
=
{
.
driver
=
{
.
name
=
"smdk-audio-wm8894"
,
.
name
=
"smdk-audio-wm8894"
,
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
of_match_table
=
of_match_ptr
(
samsung_wm8994_of_match
),
.
of_match_table
=
of_match_ptr
(
samsung_wm8994_of_match
),
.
pm
=
&
snd_soc_pm_ops
,
},
},
.
probe
=
smdk_audio_probe
,
.
probe
=
smdk_audio_probe
,
.
remove
=
smdk_audio_remove
,
};
};
module_platform_driver
(
smdk_audio_driver
);
module_platform_driver
(
smdk_audio_driver
);
...
...
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