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
8ef2292e
Commit
8ef2292e
authored
Aug 22, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/spdif' into asoc-next
parents
30901860
fc606148
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
sound/soc/codecs/spdif_receiver.c
sound/soc/codecs/spdif_receiver.c
+16
-1
sound/soc/codecs/spdif_transmitter.c
sound/soc/codecs/spdif_transmitter.c
+16
-2
No files found.
sound/soc/codecs/spdif_receiver.c
View file @
8ef2292e
...
@@ -23,11 +23,26 @@
...
@@ -23,11 +23,26 @@
#include <sound/initval.h>
#include <sound/initval.h>
#include <linux/of.h>
#include <linux/of.h>
static
const
struct
snd_soc_dapm_widget
dir_widgets
[]
=
{
SND_SOC_DAPM_INPUT
(
"spdif-in"
),
};
static
const
struct
snd_soc_dapm_route
dir_routes
[]
=
{
{
"Capture"
,
NULL
,
"spdif-in"
},
};
#define STUB_RATES SNDRV_PCM_RATE_8000_192000
#define STUB_RATES SNDRV_PCM_RATE_8000_192000
#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE)
static
struct
snd_soc_codec_driver
soc_codec_spdif_dir
;
static
struct
snd_soc_codec_driver
soc_codec_spdif_dir
=
{
.
dapm_widgets
=
dir_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
dir_widgets
),
.
dapm_routes
=
dir_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
dir_routes
),
};
static
struct
snd_soc_dai_driver
dir_stub_dai
=
{
static
struct
snd_soc_dai_driver
dir_stub_dai
=
{
.
name
=
"dir-hifi"
,
.
name
=
"dir-hifi"
,
...
...
sound/soc/codecs/spdif_transmitter.c
View file @
8ef2292e
...
@@ -25,10 +25,24 @@
...
@@ -25,10 +25,24 @@
#define DRV_NAME "spdif-dit"
#define DRV_NAME "spdif-dit"
#define STUB_RATES SNDRV_PCM_RATE_8000_96000
#define STUB_RATES SNDRV_PCM_RATE_8000_96000
#define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE
#define STUB_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE)
static
const
struct
snd_soc_dapm_widget
dit_widgets
[]
=
{
SND_SOC_DAPM_OUTPUT
(
"spdif-out"
),
};
static
const
struct
snd_soc_dapm_route
dit_routes
[]
=
{
{
"spdif-out"
,
NULL
,
"Playback"
},
};
static
struct
snd_soc_codec_driver
soc_codec_spdif_dit
;
static
struct
snd_soc_codec_driver
soc_codec_spdif_dit
=
{
.
dapm_widgets
=
dit_widgets
,
.
num_dapm_widgets
=
ARRAY_SIZE
(
dit_widgets
),
.
dapm_routes
=
dit_routes
,
.
num_dapm_routes
=
ARRAY_SIZE
(
dit_routes
),
};
static
struct
snd_soc_dai_driver
dit_stub_dai
=
{
static
struct
snd_soc_dai_driver
dit_stub_dai
=
{
.
name
=
"dit-hifi"
,
.
name
=
"dit-hifi"
,
...
...
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