diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-03-28 23:32:52 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2006-03-28 23:32:52 +0200 |
commit | a6e71fa22c0c223dd7fd3507737228c848f3bfb0 (patch) | |
tree | 881482476b5b20c4e05c31c811ae9fd50539cdef /linux | |
parent | 903c36ebf540db31e1dc1348e3b13d91ba79faee (diff) | |
download | mediapointer-dvb-s2-a6e71fa22c0c223dd7fd3507737228c848f3bfb0.tar.gz mediapointer-dvb-s2-a6e71fa22c0c223dd7fd3507737228c848f3bfb0.tar.bz2 |
Don't set msp3400c-non-existent register
From: Hans Verkuil <hverkuil@xs4all.nl>
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>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 65c99edd8..b52e5bdea 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -298,7 +298,8 @@ void msp_set_scart(struct i2c_client *client, int in, int out) msp_write_dsp(client, 0x13, state->acb); /* Sets I2S speed 0 = 1.024 Mbps, 1 = 2.048 Mbps */ - msp_write_dem(client, 0x40, state->i2s_mode); + if (state->has_i2s_conf) + msp_write_dem(client, 0x40, state->i2s_mode); } void msp_set_mute(struct i2c_client *client) |