mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
ASoC: codecs: tlv320dac33: Add default value for burst_bclkdiv
Add default value for field burst_bclkdiv as initializing it to 0 is incorrect, potentially leading to a divide by 0 issue. Valid range is 2-17 per TI datasheet. 8 was chosen as a dummy value. Reference <https://www.ti.com/lit/ds/symlink/tlv320dac32.pdf>. Signed-off-by: Alex Tran <alex.t.tran@gmail.com> Message-ID: <20250901184008.1249535-1-alex.t.tran@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
06aba2126b
commit
960ef523cf
|
|
@ -1480,6 +1480,8 @@ static int dac33_i2c_probe(struct i2c_client *client)
|
|||
|
||||
i2c_set_clientdata(client, dac33);
|
||||
|
||||
if (!dac33->burst_bclkdiv)
|
||||
dac33->burst_bclkdiv = 8;
|
||||
if (!dac33->mode1_latency)
|
||||
dac33->mode1_latency = 10000; /* 10ms */
|
||||
dac33->irq = client->irq;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user