From 4d93017b78b84f0e38f348ba71a4e0206d753c09 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sun, 19 Mar 2006 01:31:00 +0100 Subject: Cleanup audio input handling From: Hans Verkuil Cleanup audio input handling in bttv and tvaudio: - inputs were specified that were never used - mute was handled as a special input which led to confusing code - confusing naming made it difficult to see if the setting was for i2c or gpio. The old audiochip.h input names moved to tvaudio.h. Currently this is used both by tvaudio and msp3400 until the msp3400 implements the new msp3400-specific inputs. Detect in bttv the tvaudio and msp3400 i2c clients and use these client pointers to set the inputs directly instead of broadcasting the command. Removed AUDC_SET_INPUT. Now replaced by VIDIOC_S_AUDIO. This will be replaced again later by the new ROUTING commands. Removed VIDIOC_G_AUDIO implementations in i2c drivers: this command is a user level command and not to be used internally. It wasn't called at all anyway. Signed-off-by: Hans Verkuil --- test/ioctl-test.c | 1 - 1 file changed, 1 deletion(-) (limited to 'test') diff --git a/test/ioctl-test.c b/test/ioctl-test.c index 48df2f456..e150e46da 100644 --- a/test/ioctl-test.c +++ b/test/ioctl-test.c @@ -166,7 +166,6 @@ int ioctls[] = { #ifdef INTERNAL /* V4L2 internal ioctls */ AUDC_SET_RADIO,/* no args */ - AUDC_SET_INPUT,/* int */ TDA9887_SET_CONFIG,/* int */ TUNER_SET_STANDBY,/* int */ TUNER_SET_TYPE_ADDR,/* int */ -- cgit v1.2.3