Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Alex Tran and committed by
Mark Brown
960ef523 06aba212

+2
+2
sound/soc/codecs/tlv320dac33.c
··· 1480 1480 1481 1481 i2c_set_clientdata(client, dac33); 1482 1482 1483 + if (!dac33->burst_bclkdiv) 1484 + dac33->burst_bclkdiv = 8; 1483 1485 if (!dac33->mode1_latency) 1484 1486 dac33->mode1_latency = 10000; /* 10ms */ 1485 1487 dac33->irq = client->irq;