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
0e76ee41
Commit
0e76ee41
authored
Aug 04, 2014
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'asoc/topic/pcm1792' into asoc-next
parents
3a2ac12f
3aae2799
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
sound/soc/codecs/pcm1792a.c
sound/soc/codecs/pcm1792a.c
+3
-0
sound/soc/codecs/pcm1792a.h
sound/soc/codecs/pcm1792a.h
+2
-1
No files found.
sound/soc/codecs/pcm1792a.c
View file @
0e76ee41
...
...
@@ -36,6 +36,7 @@
#define PCM1792A_DAC_VOL_LEFT 0x10
#define PCM1792A_DAC_VOL_RIGHT 0x11
#define PCM1792A_FMT_CONTROL 0x12
#define PCM1792A_MODE_CONTROL 0x13
#define PCM1792A_SOFT_MUTE PCM1792A_FMT_CONTROL
#define PCM1792A_FMT_MASK 0x70
...
...
@@ -164,6 +165,8 @@ static const struct snd_kcontrol_new pcm1792a_controls[] = {
SOC_DOUBLE_R_RANGE_TLV
(
"DAC Playback Volume"
,
PCM1792A_DAC_VOL_LEFT
,
PCM1792A_DAC_VOL_RIGHT
,
0
,
0xf
,
0xff
,
0
,
pcm1792a_dac_tlv
),
SOC_SINGLE
(
"DAC Invert Output Switch"
,
PCM1792A_MODE_CONTROL
,
7
,
1
,
0
),
SOC_SINGLE
(
"DAC Rolloff Filter Switch"
,
PCM1792A_MODE_CONTROL
,
1
,
1
,
0
),
};
static
const
struct
snd_soc_dapm_widget
pcm1792a_dapm_widgets
[]
=
{
...
...
sound/soc/codecs/pcm1792a.h
View file @
0e76ee41
...
...
@@ -18,7 +18,8 @@
#define __PCM1792A_H__
#define PCM1792A_RATES (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_8000_48000 | \
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000)
SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | \
SNDRV_PCM_RATE_192000)
#define PCM1792A_FORMATS (SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_S16_LE)
...
...
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