“39c715b71740c4a78ba4769fb54826929bac03cb”上不存在“arch/x86/lib/delay.c”
提交 934cd5b7 编写于 作者: T Takashi Iwai

ALSA: bt87x: Constify hw_constraints

snd_pcm_hw_constraint_list(), *_ratnums() and *_ratdens() receive the
const pointers.  Constify the corresponding static objects for better
hardening.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 3e2fd04f
...@@ -401,13 +401,13 @@ static int snd_bt87x_set_digital_hw(struct snd_bt87x *chip, struct snd_pcm_runti ...@@ -401,13 +401,13 @@ static int snd_bt87x_set_digital_hw(struct snd_bt87x *chip, struct snd_pcm_runti
static int snd_bt87x_set_analog_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime) static int snd_bt87x_set_analog_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime)
{ {
static struct snd_ratnum analog_clock = { static const struct snd_ratnum analog_clock = {
.num = ANALOG_CLOCK, .num = ANALOG_CLOCK,
.den_min = CLOCK_DIV_MIN, .den_min = CLOCK_DIV_MIN,
.den_max = CLOCK_DIV_MAX, .den_max = CLOCK_DIV_MAX,
.den_step = 1 .den_step = 1
}; };
static struct snd_pcm_hw_constraint_ratnums constraint_rates = { static const struct snd_pcm_hw_constraint_ratnums constraint_rates = {
.nrats = 1, .nrats = 1,
.rats = &analog_clock .rats = &analog_clock
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册