Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e7ced413
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e7ced413
编写于
10月 21, 2014
作者:
T
Takashi Iwai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ALSA: bebob: More constify text arrays
Signed-off-by:
N
Takashi Iwai
<
tiwai@suse.de
>
上级
7f471fd4
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
19 deletion
+19
-19
sound/firewire/bebob/bebob.h
sound/firewire/bebob/bebob.h
+2
-2
sound/firewire/bebob/bebob_focusrite.c
sound/firewire/bebob/bebob_focusrite.c
+5
-5
sound/firewire/bebob/bebob_maudio.c
sound/firewire/bebob/bebob_maudio.c
+9
-9
sound/firewire/bebob/bebob_terratec.c
sound/firewire/bebob/bebob_terratec.c
+2
-2
sound/firewire/bebob/bebob_yamaha.c
sound/firewire/bebob/bebob_yamaha.c
+1
-1
未找到文件。
sound/firewire/bebob/bebob.h
浏览文件 @
e7ced413
...
...
@@ -52,7 +52,7 @@ extern const unsigned int snd_bebob_rate_table[SND_BEBOB_STRM_FMT_ENTRIES];
#define SND_BEBOB_CLOCK_INTERNAL "Internal"
struct
snd_bebob_clock_spec
{
unsigned
int
num
;
char
*
const
*
labels
;
c
onst
c
har
*
const
*
labels
;
int
(
*
get
)(
struct
snd_bebob
*
bebob
,
unsigned
int
*
id
);
};
struct
snd_bebob_rate_spec
{
...
...
@@ -61,7 +61,7 @@ struct snd_bebob_rate_spec {
};
struct
snd_bebob_meter_spec
{
unsigned
int
num
;
char
*
const
*
labels
;
c
onst
c
har
*
const
*
labels
;
int
(
*
get
)(
struct
snd_bebob
*
bebob
,
u32
*
target
,
unsigned
int
size
);
};
struct
snd_bebob_spec
{
...
...
sound/firewire/bebob/bebob_focusrite.c
浏览文件 @
e7ced413
...
...
@@ -101,11 +101,11 @@ saffire_write_quad(struct snd_bebob *bebob, u64 offset, u32 value)
&
data
,
sizeof
(
__be32
),
0
);
}
static
char
*
const
saffirepro_26_clk_src_labels
[]
=
{
static
c
onst
c
har
*
const
saffirepro_26_clk_src_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
,
"S/PDIF"
,
"ADAT1"
,
"ADAT2"
,
"Word Clock"
};
static
char
*
const
saffirepro_10_clk_src_labels
[]
=
{
static
c
onst
c
har
*
const
saffirepro_10_clk_src_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
,
"S/PDIF"
,
"Word Clock"
};
static
int
...
...
@@ -161,7 +161,7 @@ saffirepro_both_clk_src_get(struct snd_bebob *bebob, unsigned int *id)
}
struct
snd_bebob_spec
saffire_le_spec
;
static
char
*
const
saffire_both_clk_src_labels
[]
=
{
static
c
onst
c
har
*
const
saffire_both_clk_src_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
,
"S/PDIF"
};
static
int
...
...
@@ -176,12 +176,12 @@ saffire_both_clk_src_get(struct snd_bebob *bebob, unsigned int *id)
return
err
;
};
static
char
*
const
saffire_le_meter_labels
[]
=
{
static
c
onst
c
har
*
const
saffire_le_meter_labels
[]
=
{
ANA_IN
,
ANA_IN
,
DIG_IN
,
ANA_OUT
,
ANA_OUT
,
ANA_OUT
,
ANA_OUT
,
STM_IN
,
STM_IN
};
static
char
*
const
saffire_meter_labels
[]
=
{
static
c
onst
c
har
*
const
saffire_meter_labels
[]
=
{
ANA_IN
,
ANA_IN
,
STM_IN
,
STM_IN
,
STM_IN
,
STM_IN
,
STM_IN
,
};
...
...
sound/firewire/bebob/bebob_maudio.c
浏览文件 @
e7ced413
...
...
@@ -340,7 +340,7 @@ static int special_set_rate(struct snd_bebob *bebob, unsigned int rate)
}
/* Clock source control for special firmware */
static
char
*
const
special_clk_labels
[]
=
{
static
c
onst
c
har
*
const
special_clk_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
" with Digital Mute"
,
"Digital"
,
"Word Clock"
,
SND_BEBOB_CLOCK_INTERNAL
};
static
int
special_clk_get
(
struct
snd_bebob
*
bebob
,
unsigned
int
*
id
)
...
...
@@ -438,7 +438,7 @@ static struct snd_kcontrol_new special_sync_ctl = {
};
/* Digital input interface control for special firmware */
static
char
*
const
special_dig_in_iface_labels
[]
=
{
static
c
onst
c
har
*
const
special_dig_in_iface_labels
[]
=
{
"S/PDIF Optical"
,
"S/PDIF Coaxial"
,
"ADAT Optical"
};
static
int
special_dig_in_iface_ctl_info
(
struct
snd_kcontrol
*
kctl
,
...
...
@@ -539,7 +539,7 @@ static struct snd_kcontrol_new special_dig_in_iface_ctl = {
};
/* Digital output interface control for special firmware */
static
char
*
const
special_dig_out_iface_labels
[]
=
{
static
c
onst
c
har
*
const
special_dig_out_iface_labels
[]
=
{
"S/PDIF Optical and Coaxial"
,
"ADAT Optical"
};
static
int
special_dig_out_iface_ctl_info
(
struct
snd_kcontrol
*
kctl
,
...
...
@@ -631,7 +631,7 @@ static int add_special_controls(struct snd_bebob *bebob)
}
/* Hardware metering for special firmware */
static
char
*
const
special_meter_labels
[]
=
{
static
c
onst
c
har
*
const
special_meter_labels
[]
=
{
ANA_IN
,
ANA_IN
,
ANA_IN
,
ANA_IN
,
SPDIF_IN
,
ADAT_IN
,
ADAT_IN
,
ADAT_IN
,
ADAT_IN
,
...
...
@@ -671,30 +671,30 @@ special_meter_get(struct snd_bebob *bebob, u32 *target, unsigned int size)
}
/* last 4 bytes are omitted because it's clock info. */
static
char
*
const
fw410_meter_labels
[]
=
{
static
c
onst
c
har
*
const
fw410_meter_labels
[]
=
{
ANA_IN
,
DIG_IN
,
ANA_OUT
,
ANA_OUT
,
ANA_OUT
,
ANA_OUT
,
DIG_OUT
,
HP_OUT
};
static
char
*
const
audiophile_meter_labels
[]
=
{
static
c
onst
c
har
*
const
audiophile_meter_labels
[]
=
{
ANA_IN
,
DIG_IN
,
ANA_OUT
,
ANA_OUT
,
DIG_OUT
,
HP_OUT
,
AUX_OUT
,
};
static
char
*
const
solo_meter_labels
[]
=
{
static
c
onst
c
har
*
const
solo_meter_labels
[]
=
{
ANA_IN
,
DIG_IN
,
STRM_IN
,
STRM_IN
,
ANA_OUT
,
DIG_OUT
};
/* no clock info */
static
char
*
const
ozonic_meter_labels
[]
=
{
static
c
onst
c
har
*
const
ozonic_meter_labels
[]
=
{
ANA_IN
,
ANA_IN
,
STRM_IN
,
STRM_IN
,
ANA_OUT
,
ANA_OUT
};
/* TODO: need testers. these positions are based on authour's assumption */
static
char
*
const
nrv10_meter_labels
[]
=
{
static
c
onst
c
har
*
const
nrv10_meter_labels
[]
=
{
ANA_IN
,
ANA_IN
,
ANA_IN
,
ANA_IN
,
DIG_IN
,
ANA_OUT
,
ANA_OUT
,
ANA_OUT
,
ANA_OUT
,
...
...
sound/firewire/bebob/bebob_terratec.c
浏览文件 @
e7ced413
...
...
@@ -8,7 +8,7 @@
#include "./bebob.h"
static
char
*
const
phase88_rack_clk_src_labels
[]
=
{
static
c
onst
c
har
*
const
phase88_rack_clk_src_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
,
"Digital In"
,
"Word Clock"
};
static
int
...
...
@@ -29,7 +29,7 @@ phase88_rack_clk_src_get(struct snd_bebob *bebob, unsigned int *id)
return
err
;
}
static
char
*
const
phase24_series_clk_src_labels
[]
=
{
static
c
onst
c
har
*
const
phase24_series_clk_src_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
,
"Digital In"
};
static
int
...
...
sound/firewire/bebob/bebob_yamaha.c
浏览文件 @
e7ced413
...
...
@@ -28,7 +28,7 @@
* reccomend users to close ffado-mixer at 192.0kHz if mixer is needless.
*/
static
char
*
const
clk_src_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
,
"SPDIF"
};
static
c
onst
c
har
*
const
clk_src_labels
[]
=
{
SND_BEBOB_CLOCK_INTERNAL
,
"SPDIF"
};
static
int
clk_src_get
(
struct
snd_bebob
*
bebob
,
unsigned
int
*
id
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录