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

V4L/DVB (3662): Don't set msp3400c-non-existent register

The driver tried to set a register that is not present on msp3400c devices.
Add the missing test.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
dc555aa6 75c4570c

+2 -1
+2 -1
drivers/media/video/msp3400-driver.c
··· 279 279 msp_write_dsp(client, 0x13, state->acb); 280 280 281 281 /* Sets I2S speed 0 = 1.024 Mbps, 1 = 2.048 Mbps */ 282 - msp_write_dem(client, 0x40, state->i2s_mode); 282 + if (state->has_i2s_conf) 283 + msp_write_dem(client, 0x40, state->i2s_mode); 283 284 } 284 285 285 286 void msp_set_mute(struct i2c_client *client)