#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/kref.h>
#include <linux/usb.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include "stk11xx.h"
#include "stk11xx-dev.h"
Go to the source code of this file.
Functions | |
int | dev_stka821_initialize_device (struct usb_stk11xx *dev) |
This function permits to initialize the device. | |
int | dev_stka821_configure_device (struct usb_stk11xx *dev, int step) |
This function permits to configure the device. | |
int | dev_stka821_camera_asleep (struct usb_stk11xx *dev) |
Wake-up the camera. | |
int | dev_stka821_init_camera (struct usb_stk11xx *dev) |
This function initializes the device for the stream. | |
int | dev_stka821_sensor_settings (struct usb_stk11xx *dev) |
This function permits to set default sensor settings. | |
int | dev_stka821_camera_settings (struct usb_stk11xx *dev) |
This function permits to modify the settings of the camera. | |
int | dev_stka821_set_camera_quality (struct usb_stk11xx *dev) |
This function permits to modify the settings of the camera. | |
int | dev_stka821_set_camera_fps (struct usb_stk11xx *dev) |
This function permits to modify the settings of the camera. | |
int | dev_stka821_start_stream (struct usb_stk11xx *dev) |
This function sets the device to start the stream. | |
int | dev_stka821_reconf_camera (struct usb_stk11xx *dev) |
Reconfigure the camera before the stream. | |
int | dev_stka821_stop_stream (struct usb_stk11xx *dev) |
This function sets the device to stop the stream. |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Definition in file stk11xx-dev-a821.c.
int dev_stka821_camera_asleep | ( | struct usb_stk11xx * | dev | ) |
Wake-up the camera.
dev | Device structure |
Definition at line 583 of file stk11xx-dev-a821.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_asleep(), dev_stka821_init_camera(), and dev_stka821_initialize_device().
int dev_stka821_camera_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
Definition at line 738 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_camera_settings(), and dev_stka821_init_camera().
int dev_stka821_configure_device | ( | struct usb_stk11xx * | dev, | |
int | step | |||
) |
This function permits to configure the device.
dev | Device structure | |
step | The step of configuration [0-11] |
We don't know the meaning of these steps ! We only replay the USB log.
Definition at line 316 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), dev_stka821_sensor_settings(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stka821_init_camera(), dev_stka821_initialize_device(), and dev_stka821_reconf_camera().
int dev_stka821_init_camera | ( | struct usb_stk11xx * | dev | ) |
This function initializes the device for the stream.
dev | Device structure |
Definition at line 613 of file stk11xx-dev-a821.c.
References dev_stk11xx_camera_off(), dev_stka821_camera_asleep(), dev_stka821_camera_settings(), dev_stka821_configure_device(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_init_camera().
int dev_stka821_initialize_device | ( | struct usb_stk11xx * | dev | ) |
This function permits to initialize the device.
dev | Device structure |
This function is written from the USB log.
Definition at line 70 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), dev_stka821_camera_asleep(), dev_stka821_configure_device(), STK_DEBUG, STK_INFO, usb_stk11xx_read_registry(), usb_stk11xx_set_feature(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_initialize_device().
int dev_stka821_reconf_camera | ( | struct usb_stk11xx * | dev | ) |
Reconfigure the camera before the stream.
dev | Device structure |
Definition at line 875 of file stk11xx-dev-a821.c.
References dev_stk11xx_camera_settings(), and dev_stka821_configure_device().
Referenced by dev_stk11xx_reconf_camera().
int dev_stka821_sensor_settings | ( | struct usb_stk11xx * | dev | ) |
This function permits to set default sensor settings.
dev | Device structure |
Definition at line 662 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), STK_ERROR, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stka821_configure_device().
int dev_stka821_set_camera_fps | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
Definition at line 829 of file stk11xx-dev-a821.c.
Referenced by dev_stk11xx_set_camera_fps().
int dev_stka821_set_camera_quality | ( | struct usb_stk11xx * | dev | ) |
This function permits to modify the settings of the camera.
dev | Device structure |
Definition at line 795 of file stk11xx-dev-a821.c.
References dev_stk11xx_check_device(), STK_DEBUG, usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_set_camera_quality().
int dev_stka821_start_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to start the stream.
dev | Device structure |
Definition at line 845 of file stk11xx-dev-a821.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_start_stream().
int dev_stka821_stop_stream | ( | struct usb_stk11xx * | dev | ) |
This function sets the device to stop the stream.
dev | Device structure |
Definition at line 895 of file stk11xx-dev-a821.c.
References usb_stk11xx_read_registry(), and usb_stk11xx_write_registry().
Referenced by dev_stk11xx_stop_stream().