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
52593de4
Commit
52593de4
authored
May 29, 2010
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/asoc' into for-linus
parents
d2192121
274a24c1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
23 deletions
+26
-23
sound/soc/codecs/wm8350.c
sound/soc/codecs/wm8350.c
+2
-2
sound/soc/codecs/wm8400.c
sound/soc/codecs/wm8400.c
+9
-9
sound/soc/codecs/wm8990.c
sound/soc/codecs/wm8990.c
+9
-9
sound/soc/imx/imx-pcm-dma-mx2.c
sound/soc/imx/imx-pcm-dma-mx2.c
+4
-3
sound/soc/sh/siu_dai.c
sound/soc/sh/siu_dai.c
+2
-0
No files found.
sound/soc/codecs/wm8350.c
View file @
52593de4
...
...
@@ -426,8 +426,8 @@ static const struct soc_enum wm8350_enum[] = {
SOC_ENUM_SINGLE
(
WM8350_INPUT_MIXER_VOLUME
,
15
,
2
,
wm8350_lr
),
};
static
DECLARE_TLV_DB_
LINEAR
(
pre_amp_tlv
,
-
1200
,
3525
);
static
DECLARE_TLV_DB_
LINEAR
(
out_pga_tlv
,
-
5700
,
60
0
);
static
DECLARE_TLV_DB_
SCALE
(
pre_amp_tlv
,
-
1200
,
3525
,
0
);
static
DECLARE_TLV_DB_
SCALE
(
out_pga_tlv
,
-
5700
,
600
,
0
);
static
DECLARE_TLV_DB_SCALE
(
dac_pcm_tlv
,
-
7163
,
36
,
1
);
static
DECLARE_TLV_DB_SCALE
(
adc_pcm_tlv
,
-
12700
,
50
,
1
);
static
DECLARE_TLV_DB_SCALE
(
out_mix_tlv
,
-
1500
,
300
,
1
);
...
...
sound/soc/codecs/wm8400.c
View file @
52593de4
...
...
@@ -107,21 +107,21 @@ static void wm8400_codec_reset(struct snd_soc_codec *codec)
wm8400_reset_codec_reg_cache
(
wm8400
->
wm8400
);
}
static
const
DECLARE_TLV_DB_
LINEAR
(
rec_mix_tlv
,
-
1500
,
60
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
rec_mix_tlv
,
-
1500
,
600
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
in_pga_tlv
,
-
1650
,
300
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
in_pga_tlv
,
-
1650
,
3000
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_mix_tlv
,
-
210
0
,
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_mix_tlv
,
-
2100
,
0
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_pga_tlv
,
-
7300
,
60
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_pga_tlv
,
-
7300
,
600
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_omix_tlv
,
-
60
0
,
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_omix_tlv
,
-
600
,
0
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_dac_tlv
,
-
7163
,
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_dac_tlv
,
-
7163
,
0
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
in_adc_tlv
,
-
7163
,
1763
);
static
const
DECLARE_TLV_DB_
SCALE
(
in_adc_tlv
,
-
7163
,
1763
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_sidetone_tlv
,
-
360
0
,
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_sidetone_tlv
,
-
3600
,
0
,
0
);
static
int
wm8400_outpga_put_volsw_vu
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
...
...
@@ -440,7 +440,7 @@ static int outmixer_event (struct snd_soc_dapm_widget *w,
/* INMIX dB values */
static
const
unsigned
int
in_mix_tlv
[]
=
{
TLV_DB_RANGE_HEAD
(
1
),
0
,
7
,
TLV_DB_
LINEAR_ITEM
(
-
1200
,
60
0
),
0
,
7
,
TLV_DB_
SCALE_ITEM
(
-
1200
,
600
,
0
),
};
/* Left In PGA Connections */
...
...
sound/soc/codecs/wm8990.c
View file @
52593de4
...
...
@@ -111,21 +111,21 @@ static const u16 wm8990_reg[] = {
#define wm8990_reset(c) snd_soc_write(c, WM8990_RESET, 0)
static
const
DECLARE_TLV_DB_
LINEAR
(
rec_mix_tlv
,
-
1500
,
60
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
rec_mix_tlv
,
-
1500
,
600
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
in_pga_tlv
,
-
1650
,
300
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
in_pga_tlv
,
-
1650
,
3000
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_mix_tlv
,
0
,
-
210
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_mix_tlv
,
0
,
-
2100
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_pga_tlv
,
-
7300
,
60
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_pga_tlv
,
-
7300
,
600
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_omix_tlv
,
-
60
0
,
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_omix_tlv
,
-
600
,
0
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_dac_tlv
,
-
7163
,
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_dac_tlv
,
-
7163
,
0
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
in_adc_tlv
,
-
7163
,
1763
);
static
const
DECLARE_TLV_DB_
SCALE
(
in_adc_tlv
,
-
7163
,
1763
,
0
);
static
const
DECLARE_TLV_DB_
LINEAR
(
out_sidetone_tlv
,
-
360
0
,
0
);
static
const
DECLARE_TLV_DB_
SCALE
(
out_sidetone_tlv
,
-
3600
,
0
,
0
);
static
int
wm899x_outpga_put_volsw_vu
(
struct
snd_kcontrol
*
kcontrol
,
struct
snd_ctl_elem_value
*
ucontrol
)
...
...
@@ -451,7 +451,7 @@ static int outmixer_event(struct snd_soc_dapm_widget *w,
/* INMIX dB values */
static
const
unsigned
int
in_mix_tlv
[]
=
{
TLV_DB_RANGE_HEAD
(
1
),
0
,
7
,
TLV_DB_
LINEAR_ITEM
(
-
1200
,
60
0
),
0
,
7
,
TLV_DB_
SCALE_ITEM
(
-
1200
,
600
,
0
),
};
/* Left In PGA Connections */
...
...
sound/soc/imx/imx-pcm-dma-mx2.c
View file @
52593de4
...
...
@@ -73,7 +73,8 @@ static void snd_imx_dma_err_callback(int channel, void *data, int err)
{
struct
snd_pcm_substream
*
substream
=
data
;
struct
snd_soc_pcm_runtime
*
rtd
=
substream
->
private_data
;
struct
imx_pcm_dma_params
*
dma_params
=
rtd
->
dai
->
cpu_dai
->
dma_data
;
struct
imx_pcm_dma_params
*
dma_params
=
snd_soc_dai_get_dma_data
(
rtd
->
dai
->
cpu_dai
,
substream
);
struct
snd_pcm_runtime
*
runtime
=
substream
->
runtime
;
struct
imx_pcm_runtime_data
*
iprtd
=
runtime
->
private_data
;
int
ret
;
...
...
@@ -102,7 +103,7 @@ static int imx_ssi_dma_alloc(struct snd_pcm_substream *substream)
struct
imx_pcm_runtime_data
*
iprtd
=
runtime
->
private_data
;
int
ret
;
dma_params
=
snd_soc_get_dma_data
(
rtd
->
dai
->
cpu_dai
,
substream
);
dma_params
=
snd_soc_
dai_
get_dma_data
(
rtd
->
dai
->
cpu_dai
,
substream
);
iprtd
->
dma
=
imx_dma_request_by_prio
(
DRV_NAME
,
DMA_PRIO_HIGH
);
if
(
iprtd
->
dma
<
0
)
{
...
...
@@ -212,7 +213,7 @@ static int snd_imx_pcm_prepare(struct snd_pcm_substream *substream)
struct
imx_pcm_runtime_data
*
iprtd
=
runtime
->
private_data
;
int
err
;
dma_params
=
snd_soc_get_dma_data
(
rtd
->
dai
->
cpu_dai
,
substream
);
dma_params
=
snd_soc_
dai_
get_dma_data
(
rtd
->
dai
->
cpu_dai
,
substream
);
iprtd
->
substream
=
substream
;
iprtd
->
buf
=
(
unsigned
int
*
)
substream
->
dma_buffer
.
area
;
...
...
sound/soc/sh/siu_dai.c
View file @
52593de4
...
...
@@ -588,6 +588,8 @@ static int siu_dai_prepare(struct snd_pcm_substream *substream,
ret
=
siu_dai_spbstart
(
port_info
);
if
(
ret
<
0
)
goto
fail
;
}
else
{
ret
=
0
;
}
port_info
->
play_cap
|=
self
;
...
...
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