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
d9b3e4c5
Commit
d9b3e4c5
authored
Apr 07, 2011
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-2.6.39' into for-2.6.40
parents
fb631eae
baa81603
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8994.c
+16
-0
sound/soc/soc-core.c
sound/soc/soc-core.c
+3
-1
No files found.
sound/soc/codecs/wm8994.c
View file @
d9b3e4c5
...
...
@@ -2977,20 +2977,36 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec)
wm8994_set_bias_level
(
codec
,
SND_SOC_BIAS_STANDBY
);
/* Latch volume updates (right only; we always do left then right). */
snd_soc_update_bits
(
codec
,
WM8994_AIF1_DAC1_LEFT_VOLUME
,
WM8994_AIF1DAC1_VU
,
WM8994_AIF1DAC1_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF1_DAC1_RIGHT_VOLUME
,
WM8994_AIF1DAC1_VU
,
WM8994_AIF1DAC1_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF1_DAC2_LEFT_VOLUME
,
WM8994_AIF1DAC2_VU
,
WM8994_AIF1DAC2_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF1_DAC2_RIGHT_VOLUME
,
WM8994_AIF1DAC2_VU
,
WM8994_AIF1DAC2_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF2_DAC_LEFT_VOLUME
,
WM8994_AIF2DAC_VU
,
WM8994_AIF2DAC_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF2_DAC_RIGHT_VOLUME
,
WM8994_AIF2DAC_VU
,
WM8994_AIF2DAC_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF1_ADC1_LEFT_VOLUME
,
WM8994_AIF1ADC1_VU
,
WM8994_AIF1ADC1_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF1_ADC1_RIGHT_VOLUME
,
WM8994_AIF1ADC1_VU
,
WM8994_AIF1ADC1_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF1_ADC2_LEFT_VOLUME
,
WM8994_AIF1ADC2_VU
,
WM8994_AIF1ADC2_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF1_ADC2_RIGHT_VOLUME
,
WM8994_AIF1ADC2_VU
,
WM8994_AIF1ADC2_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF2_ADC_LEFT_VOLUME
,
WM8994_AIF2ADC_VU
,
WM8994_AIF1ADC2_VU
);
snd_soc_update_bits
(
codec
,
WM8994_AIF2_ADC_RIGHT_VOLUME
,
WM8994_AIF2ADC_VU
,
WM8994_AIF1ADC2_VU
);
snd_soc_update_bits
(
codec
,
WM8994_DAC1_LEFT_VOLUME
,
WM8994_DAC1_VU
,
WM8994_DAC1_VU
);
snd_soc_update_bits
(
codec
,
WM8994_DAC1_RIGHT_VOLUME
,
WM8994_DAC1_VU
,
WM8994_DAC1_VU
);
snd_soc_update_bits
(
codec
,
WM8994_DAC2_LEFT_VOLUME
,
WM8994_DAC2_VU
,
WM8994_DAC2_VU
);
snd_soc_update_bits
(
codec
,
WM8994_DAC2_RIGHT_VOLUME
,
WM8994_DAC2_VU
,
WM8994_DAC2_VU
);
...
...
sound/soc/soc-core.c
View file @
d9b3e4c5
...
...
@@ -629,6 +629,7 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
runtime
->
hw
.
rates
|=
codec_dai_drv
->
capture
.
rates
;
}
ret
=
-
EINVAL
;
snd_pcm_limit_hw_rates
(
runtime
);
if
(
!
runtime
->
hw
.
rates
)
{
printk
(
KERN_ERR
"asoc: %s <-> %s No matching rates
\n
"
,
...
...
@@ -640,7 +641,8 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
codec_dai
->
name
,
cpu_dai
->
name
);
goto
config_err
;
}
if
(
!
runtime
->
hw
.
channels_min
||
!
runtime
->
hw
.
channels_max
)
{
if
(
!
runtime
->
hw
.
channels_min
||
!
runtime
->
hw
.
channels_max
||
runtime
->
hw
.
channels_min
>
runtime
->
hw
.
channels_max
)
{
printk
(
KERN_ERR
"asoc: %s <-> %s No matching channels
\n
"
,
codec_dai
->
name
,
cpu_dai
->
name
);
goto
config_err
;
...
...
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