aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vivid/vivid-sdr-common.h
blob: b9b27fafa53f015f9b5d6c2e15abdd64a10a7056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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

Privacy Policy