diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-10-20 23:52:40 +0200 |
---|---|---|
committer | Hans Verkuil <hans.verkuil@cisco.com> | 2015-12-18 09:54:45 +0100 |
commit | c0d2262161694c430037a39c143cbcbddc8ac703 (patch) | |
tree | d9ed070983d920a7ce5b4ef2687c7860194bb534 /drivers/media/platform/vivid/vivid-sdr-common.h | |
parent | 52d60eb7e6d6429a766ea1b8f67e01c3b2dcd3c5 (diff) |
vivid: wip for sdr output
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'drivers/media/platform/vivid/vivid-sdr-common.h')
-rw-r--r-- | drivers/media/platform/vivid/vivid-sdr-common.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/media/platform/vivid/vivid-sdr-common.h b/drivers/media/platform/vivid/vivid-sdr-common.h new file mode 100644 index 000000000000..b9b27fafa53f --- /dev/null +++ b/drivers/media/platform/vivid/vivid-sdr-common.h @@ -0,0 +1,35 @@ +/* + * vivid-sdr-common.h - software defined radio support functions. + * + * Copyright 2015 Cisco Systems, Inc. and/or its affiliates. All rights reserved. + * + * This program is free software; you may redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +#ifndef _VIVID_SDR_COMMON_H_ +#define _VIVID_SDR_COMMON_H_ + +/* SDR stream formats */ +struct vivid_sdr_fmt { + u32 pixelformat; + u32 buffersize; +}; + +const struct vivid_sdr_fmt *vivid_sdr_get_format(struct vivid_dev *dev, u32 pixelformat); + +int vivid_sdr_enum_freq_bands(struct file *file, void *fh, struct v4l2_frequency_band *band); +int vivid_enum_fmt_sdr(struct file *file, void *fh, struct v4l2_fmtdesc *f); +int vivid_try_fmt_sdr(struct file *file, void *fh, struct v4l2_format *f); + +#endif |