Formatting in snd_audiopci.c
This commit is contained in:
@@ -156,10 +156,12 @@ typedef struct es137x_t {
|
|||||||
} es137x_t;
|
} es137x_t;
|
||||||
|
|
||||||
static const double akm4531_att_2dbstep_5bits[] = {
|
static const double akm4531_att_2dbstep_5bits[] = {
|
||||||
|
// clang-format off
|
||||||
25.0, 32.0, 41.0, 51.0, 65.0, 82.0, 103.0, 130.0,
|
25.0, 32.0, 41.0, 51.0, 65.0, 82.0, 103.0, 130.0,
|
||||||
164.0, 206.0, 260.0, 327.0, 412.0, 519.0, 653.0, 822.0,
|
164.0, 206.0, 260.0, 327.0, 412.0, 519.0, 653.0, 822.0,
|
||||||
1036.0, 1304.0, 1641.0, 2067.0, 2602.0, 3276.0, 4125.0, 5192.0,
|
1036.0, 1304.0, 1641.0, 2067.0, 2602.0, 3276.0, 4125.0, 5192.0,
|
||||||
6537.0, 8230.0, 10362.0, 13044.0, 16422.0, 20674.0, 26027.0, 32767.0
|
6537.0, 8230.0, 10362.0, 13044.0, 16422.0, 20674.0, 26027.0, 32767.0
|
||||||
|
// clang-format on
|
||||||
};
|
};
|
||||||
|
|
||||||
static double akm4531_gain_2dbstep_5bits[0x20];
|
static double akm4531_gain_2dbstep_5bits[0x20];
|
||||||
@@ -382,7 +384,9 @@ akm4531_reset(es137x_t *dev)
|
|||||||
codec->registers[0x16] = 0x3;
|
codec->registers[0x16] = 0x3;
|
||||||
}
|
}
|
||||||
|
|
||||||
static double lerp(double v0, double v1, double t) {
|
static double
|
||||||
|
lerp(double v0, double v1, double t)
|
||||||
|
{
|
||||||
return (1. - t) * v0 + t * v1;
|
return (1. - t) * v0 + t * v1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user