mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 09:38:31 +07:00
ASoC: Fixes for tlv320aic31xx
A few fixes for issues not yet identified by the zero day tester due to the last pull request being rushed in order to clean up the problem with the git mismerge. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJTIfDTAAoJELSic+t+oim9KT8P/ifEuU4EX9+oSgXeoIMkufEe 6dneLoXlmsbfelxUA2yuTOtbS+mQgrn0TfcWHGIrID8gM1rYF1UZSxQX2OMYUVCz z+9/4Fh08vowTOEPWySAoJypHTAhyv5ep7FzD8k/X+qIiQRO8eBmW68qD54ISoW8 IX4QKvPTtfdrRElvZUehtBIjzbdLOIAXZ7NRqrvI3gY1lHuBCBtZPUvbcLSHJOzi 60QC/HbbRv2dVKytZC/oS6dnG3W+1KVtDhEI1DjJF5Oinj0s8tbFuq5zS1hvGhNb i0pi9hCnz9py1PN3Wu6S2omkr6V9BI6gDlQmkiKTK/RfF3Q1FwO2+GPvN/zRkWI7 hxm/H8mOa5wuyGDkDcm9qH8D5vX32cHwsGoQq1gdFXeCRwg8x+Ug1u8/csnEqsbf vW7xOgOAvhk5pDB8l0adb1FOYHbsBF76vot3pkY0V3k0tM+05iGbN+fdrI0rK0m4 TYFMvB6RdNuRebOJvuBKT+hBNoAwCsARiIVbC0fAQVIagZiMojXFvuFaprBFqDcf G9H46MknURx6iKyuaLwKRd1ZQMbuKFVsAvoNSONHSghxkqU4zgHLNLwYibWsADka MqoxIFtoKSZ0hXrJa+AFvZb7HhQWR46gnEvA9XCngG/p0HGiiHxsX3FoCHnqlBpm XJ+7fBbwu6W/1aF1XyF1 =2pCM -----END PGP SIGNATURE----- Merge tag 'tlv320aic31xx-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next ASoC: Fixes for tlv320aic31xx A few fixes for issues not yet identified by the zero day tester due to the last pull request being rushed in order to clean up the problem with the git mismerge.
This commit is contained in:
commit
5418bd2f57
@ -129,7 +129,7 @@ static const struct regmap_range_cfg aic31xx_ranges[] = {
|
||||
},
|
||||
};
|
||||
|
||||
struct regmap_config aic31xx_i2c_regmap = {
|
||||
static const struct regmap_config aic31xx_i2c_regmap = {
|
||||
.reg_bits = 8,
|
||||
.val_bits = 8,
|
||||
.writeable_reg = aic31xx_writeable,
|
||||
@ -321,9 +321,9 @@ static const struct snd_kcontrol_new ldac_in_control =
|
||||
static const struct snd_kcontrol_new rdac_in_control =
|
||||
SOC_DAPM_ENUM("DAC Right Input", rdac_in_enum);
|
||||
|
||||
int aic31xx_wait_bits(struct aic31xx_priv *aic31xx, unsigned int reg,
|
||||
unsigned int mask, unsigned int wbits, int sleep,
|
||||
int count)
|
||||
static int aic31xx_wait_bits(struct aic31xx_priv *aic31xx, unsigned int reg,
|
||||
unsigned int mask, unsigned int wbits, int sleep,
|
||||
int count)
|
||||
{
|
||||
unsigned int bits;
|
||||
int counter = count;
|
||||
@ -943,7 +943,6 @@ static void aic31xx_clk_on(struct snd_soc_codec *codec)
|
||||
|
||||
static void aic31xx_clk_off(struct snd_soc_codec *codec)
|
||||
{
|
||||
struct aic31xx_priv *aic31xx = snd_soc_codec_get_drvdata(codec);
|
||||
u8 mask = AIC31XX_PM_MASK;
|
||||
u8 off = 0;
|
||||
|
||||
@ -1050,18 +1049,9 @@ static int aic31xx_codec_probe(struct snd_soc_codec *codec)
|
||||
dev_dbg(aic31xx->dev, "## %s\n", __func__);
|
||||
|
||||
aic31xx = snd_soc_codec_get_drvdata(codec);
|
||||
codec->control_data = aic31xx->regmap;
|
||||
|
||||
aic31xx->codec = codec;
|
||||
|
||||
ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP);
|
||||
|
||||
if (ret != 0) {
|
||||
dev_err(codec->dev, "snd_soc_codec_set_cache_io failed %d\n",
|
||||
ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(aic31xx->supplies); i++) {
|
||||
aic31xx->disable_nb[i].nb.notifier_call =
|
||||
aic31xx_regulator_event;
|
||||
@ -1187,7 +1177,7 @@ static void aic31xx_pdata_from_of(struct aic31xx_priv *aic31xx)
|
||||
}
|
||||
#endif /* CONFIG_OF */
|
||||
|
||||
void aic31xx_device_init(struct aic31xx_priv *aic31xx)
|
||||
static void aic31xx_device_init(struct aic31xx_priv *aic31xx)
|
||||
{
|
||||
int ret, i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user