mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
Merge tag 'media/v4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media fixes from Mauro Carvalho Chehab:
"A series of fixes for the media subsytem:
- The largest amount of fixes in this series is with regards to
comments that aren't kernel-doc, but start with "/**".
A new check added for 4.15 makes it to produce a *huge* amount of
new warnings (I'm compiling here with W=1). Most of the patches in
this series fix those.
No code changes - just comment changes at the source files
- rc: some fixed in order to better handle RC repetition codes
- v4l-async: use the v4l2_dev from the root notifier when matching
sub-devices
- v4l2-fwnode: Check subdev count after checking port
- ov 13858 and et8ek8: compilation fix with randconfigs
- usbtv: a trivial new USB ID addition
- dibusb-common: don't do DMA on stack on firmware load
- imx274: Fix error handling, add MAINTAINERS entry
- sir_ir: detect presence of port"
* tag 'media/v4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (50 commits)
media: imx274: Fix error handling, add MAINTAINERS entry
media: v4l: async: use the v4l2_dev from the root notifier when matching sub-devices
media: v4l2-fwnode: Check subdev count after checking port
media: et8ek8: select V4L2_FWNODE
media: ov13858: Select V4L2_FWNODE
media: rc: partial revert of "media: rc: per-protocol repeat period"
media: dvb: i2c transfers over usb cannot be done from stack
media: dvb-frontends: complete kernel-doc markups
media: docs: add documentation for frontend attach info
media: dvb_frontends: fix kernel-doc macros
media: drivers: remove "/**" from non-kernel-doc comments
media: lm3560: add a missing kernel-doc parameter
media: rcar_jpu: fix two kernel-doc markups
media: vsp1: add a missing kernel-doc parameter
media: soc_camera: fix a kernel-doc markup
media: mt2063: fix some kernel-doc warnings
media: radio-wl1273: fix a parameter name at kernel-doc macro
media: s3c-camif: add missing description at s3c_camif_find_format()
media: mtk-vpu: add description for wdt fields at struct mtk_vpu
media: vdec: fix some kernel-doc warnings
...
This commit is contained in:
commit
77071bc6c4
269 files changed
+3163
-2945
No files matched your search
@@ -0,0 +1,30 @@
|
||||
****************
|
||||
Frontend drivers
|
||||
****************
|
||||
|
||||
Frontend attach headers
|
||||
***********************
|
||||
|
||||
.. Keep it on alphabetic order
|
||||
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/a8293.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/af9013.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/ascot2e.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/cxd2820r.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/drxk.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/dvb-pll.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/helene.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/horus3a.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/ix2505v.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/m88ds3103.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/mb86a20s.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/mn88472.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/rtl2830.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/rtl2832.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/rtl2832_sdr.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/stb6000.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/tda10071.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/tda826x.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/zd1301_demod.h
|
||||
.. kernel-doc:: drivers/media/dvb-frontends/zl10036.h
|
||||
|
||||
@@ -41,4 +41,5 @@ For more details see the file COPYING in the source distribution of Linux.
|
||||
technisat
|
||||
ttusb-dec
|
||||
udev
|
||||
frontends
|
||||
contributors
|
||||
@@ -12643,6 +12643,14 @@ S: Maintained
|
||||
F: drivers/ssb/
|
||||
F: include/linux/ssb/
|
||||
|
||||
SONY IMX274 SENSOR DRIVER
|
||||
M: Leon Luo <leonl@leopardimaging.com>
|
||||
L: linux-media@vger.kernel.org
|
||||
T: git git://linuxtv.org/media_tree.git
|
||||
S: Maintained
|
||||
F: drivers/media/i2c/imx274.c
|
||||
F: Documentation/devicetree/bindings/media/i2c/imx274.txt
|
||||
|
||||
SONY MEMORYSTICK CARD SUPPORT
|
||||
M: Alex Dubov <oakad@yahoo.com>
|
||||
W: http://tifmxx.berlios.de/
|
||||
|
||||
@@ -521,13 +521,13 @@ static void list_add_locked(struct list_head *new, struct list_head *head,
|
||||
spin_unlock_irqrestore(lock, flags);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* register a client callback that called when device plugged in/unplugged
|
||||
* NOTE: if devices exist callback is called immediately for each device
|
||||
*
|
||||
* @param hotplug callback
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
int smscore_register_hotplug(hotplug_t hotplug)
|
||||
{
|
||||
@@ -562,7 +562,7 @@ int smscore_register_hotplug(hotplug_t hotplug)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(smscore_register_hotplug);
|
||||
|
||||
/**
|
||||
/*
|
||||
* unregister a client callback that called when device plugged in/unplugged
|
||||
*
|
||||
* @param hotplug callback
|
||||
@@ -636,7 +636,7 @@ smscore_buffer_t *smscore_createbuffer(u8 *buffer, void *common_buffer,
|
||||
return cb;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* creates coredev object for a device, prepares buffers,
|
||||
* creates buffer mappings, notifies registered hotplugs about new device.
|
||||
*
|
||||
@@ -644,7 +644,7 @@ smscore_buffer_t *smscore_createbuffer(u8 *buffer, void *common_buffer,
|
||||
* and handlers
|
||||
* @param coredev pointer to a value that receives created coredev object
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
int smscore_register_device(struct smsdevice_params_t *params,
|
||||
struct smscore_device_t **coredev,
|
||||
@@ -764,10 +764,10 @@ static int smscore_sendrequest_and_wait(struct smscore_device_t *coredev,
|
||||
0 : -ETIME;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Starts & enables IR operations
|
||||
*
|
||||
* @return 0 on success, < 0 on error.
|
||||
* return: 0 on success, < 0 on error.
|
||||
*/
|
||||
static int smscore_init_ir(struct smscore_device_t *coredev)
|
||||
{
|
||||
@@ -812,13 +812,13 @@ static int smscore_init_ir(struct smscore_device_t *coredev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* configures device features according to board configuration structure.
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
* smscore_register_device
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
static int smscore_configure_board(struct smscore_device_t *coredev)
|
||||
{
|
||||
@@ -861,13 +861,13 @@ static int smscore_configure_board(struct smscore_device_t *coredev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* sets initial device mode and notifies client hotplugs that device is ready
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
* smscore_register_device
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
int smscore_start_device(struct smscore_device_t *coredev)
|
||||
{
|
||||
@@ -1087,7 +1087,7 @@ static char *smscore_fw_lkup[][DEVICE_MODE_MAX] = {
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* get firmware file name from one of the two mechanisms : sms_boards or
|
||||
* smscore_fw_lkup.
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
@@ -1096,7 +1096,7 @@ static char *smscore_fw_lkup[][DEVICE_MODE_MAX] = {
|
||||
* @param lookup if 1, always get the fw filename from smscore_fw_lkup
|
||||
* table. if 0, try first to get from sms_boards
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
static char *smscore_get_fw_filename(struct smscore_device_t *coredev,
|
||||
int mode)
|
||||
@@ -1125,7 +1125,7 @@ static char *smscore_get_fw_filename(struct smscore_device_t *coredev,
|
||||
return fw[mode];
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* loads specified firmware into a buffer and calls device loadfirmware_handler
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
@@ -1133,7 +1133,7 @@ static char *smscore_get_fw_filename(struct smscore_device_t *coredev,
|
||||
* @param filename null-terminated string specifies firmware file name
|
||||
* @param loadfirmware_handler device handler that loads firmware
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
static int smscore_load_firmware_from_file(struct smscore_device_t *coredev,
|
||||
int mode,
|
||||
@@ -1182,14 +1182,14 @@ static int smscore_load_firmware_from_file(struct smscore_device_t *coredev,
|
||||
return rc;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* notifies all clients registered with the device, notifies hotplugs,
|
||||
* frees all buffers and coredev object
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
* smscore_register_device
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
void smscore_unregister_device(struct smscore_device_t *coredev)
|
||||
{
|
||||
@@ -1282,14 +1282,14 @@ static int smscore_detect_mode(struct smscore_device_t *coredev)
|
||||
return rc;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* send init device request and wait for response
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
* smscore_register_device
|
||||
* @param mode requested mode of operation
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
static int smscore_init_device(struct smscore_device_t *coredev, int mode)
|
||||
{
|
||||
@@ -1315,7 +1315,7 @@ static int smscore_init_device(struct smscore_device_t *coredev, int mode)
|
||||
return rc;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* calls device handler to change mode of operation
|
||||
* NOTE: stellar/usb may disconnect when changing mode
|
||||
*
|
||||
@@ -1323,7 +1323,7 @@ static int smscore_init_device(struct smscore_device_t *coredev, int mode)
|
||||
* smscore_register_device
|
||||
* @param mode requested mode of operation
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
int smscore_set_device_mode(struct smscore_device_t *coredev, int mode)
|
||||
{
|
||||
@@ -1411,13 +1411,13 @@ int smscore_set_device_mode(struct smscore_device_t *coredev, int mode)
|
||||
return rc;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* calls device handler to get current mode of operation
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
* smscore_register_device
|
||||
*
|
||||
* @return current mode
|
||||
* return: current mode
|
||||
*/
|
||||
int smscore_get_device_mode(struct smscore_device_t *coredev)
|
||||
{
|
||||
@@ -1425,7 +1425,7 @@ int smscore_get_device_mode(struct smscore_device_t *coredev)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(smscore_get_device_mode);
|
||||
|
||||
/**
|
||||
/*
|
||||
* find client by response id & type within the clients list.
|
||||
* return client handle or NULL.
|
||||
*
|
||||
@@ -1462,7 +1462,7 @@ found:
|
||||
return client;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* find client by response id/type, call clients onresponse handler
|
||||
* return buffer to pool on error
|
||||
*
|
||||
@@ -1615,13 +1615,13 @@ void smscore_onresponse(struct smscore_device_t *coredev,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(smscore_onresponse);
|
||||
|
||||
/**
|
||||
/*
|
||||
* return pointer to next free buffer descriptor from core pool
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
* smscore_register_device
|
||||
*
|
||||
* @return pointer to descriptor on success, NULL on error.
|
||||
* return: pointer to descriptor on success, NULL on error.
|
||||
*/
|
||||
|
||||
static struct smscore_buffer_t *get_entry(struct smscore_device_t *coredev)
|
||||
@@ -1648,7 +1648,7 @@ struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(smscore_getbuffer);
|
||||
|
||||
/**
|
||||
/*
|
||||
* return buffer descriptor to a pool
|
||||
*
|
||||
* @param coredev pointer to a coredev object returned by
|
||||
@@ -1693,7 +1693,7 @@ static int smscore_validate_client(struct smscore_device_t *coredev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* creates smsclient object, check that id is taken by another client
|
||||
*
|
||||
* @param coredev pointer to a coredev object from clients hotplug
|
||||
@@ -1705,7 +1705,7 @@ static int smscore_validate_client(struct smscore_device_t *coredev,
|
||||
* @param context client-specific context
|
||||
* @param client pointer to a value that receives created smsclient object
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
int smscore_register_client(struct smscore_device_t *coredev,
|
||||
struct smsclient_params_t *params,
|
||||
@@ -1740,7 +1740,7 @@ int smscore_register_client(struct smscore_device_t *coredev,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(smscore_register_client);
|
||||
|
||||
/**
|
||||
/*
|
||||
* frees smsclient object and all subclients associated with it
|
||||
*
|
||||
* @param client pointer to smsclient object returned by
|
||||
@@ -1771,7 +1771,7 @@ void smscore_unregister_client(struct smscore_client_t *client)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(smscore_unregister_client);
|
||||
|
||||
/**
|
||||
/*
|
||||
* verifies that source id is not taken by another client,
|
||||
* calls device handler to send requests to the device
|
||||
*
|
||||
@@ -1780,7 +1780,7 @@ EXPORT_SYMBOL_GPL(smscore_unregister_client);
|
||||
* @param buffer pointer to a request buffer
|
||||
* @param size size (in bytes) of request buffer
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
int smsclient_sendrequest(struct smscore_client_t *client,
|
||||
void *buffer, size_t size)
|
||||
|
||||
@@ -206,7 +206,7 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot,
|
||||
* @hlen: Number of bytes in haystack.
|
||||
* @needle: Buffer to find.
|
||||
* @nlen: Number of bytes in needle.
|
||||
* @return Pointer into haystack needle was found at, or NULL if not found.
|
||||
* return: Pointer into haystack needle was found at, or NULL if not found.
|
||||
*/
|
||||
static char *findstr(char *haystack, int hlen, char *needle, int nlen)
|
||||
{
|
||||
@@ -226,7 +226,7 @@ static char *findstr(char *haystack, int hlen, char *needle, int nlen)
|
||||
/* ************************************************************************** */
|
||||
/* EN50221 physical interface functions */
|
||||
|
||||
/**
|
||||
/*
|
||||
* dvb_ca_en50221_check_camstatus - Check CAM status.
|
||||
*/
|
||||
static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot)
|
||||
@@ -275,9 +275,9 @@ static int dvb_ca_en50221_check_camstatus(struct dvb_ca_private *ca, int slot)
|
||||
* @ca: CA instance.
|
||||
* @slot: Slot on interface.
|
||||
* @waitfor: Flags to wait for.
|
||||
* @timeout_ms: Timeout in milliseconds.
|
||||
* @timeout_hz: Timeout in milliseconds.
|
||||
*
|
||||
* @return 0 on success, nonzero on error.
|
||||
* return: 0 on success, nonzero on error.
|
||||
*/
|
||||
static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
|
||||
u8 waitfor, int timeout_hz)
|
||||
@@ -325,7 +325,7 @@ static int dvb_ca_en50221_wait_if_status(struct dvb_ca_private *ca, int slot,
|
||||
* @ca: CA instance.
|
||||
* @slot: Slot id.
|
||||
*
|
||||
* @return 0 on success, nonzero on failure.
|
||||
* return: 0 on success, nonzero on failure.
|
||||
*/
|
||||
static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot)
|
||||
{
|
||||
@@ -397,11 +397,11 @@ static int dvb_ca_en50221_link_init(struct dvb_ca_private *ca, int slot)
|
||||
* @ca: CA instance.
|
||||
* @slot: Slot id.
|
||||
* @address: Address to read from. Updated.
|
||||
* @tupleType: Tuple id byte. Updated.
|
||||
* @tupleLength: Tuple length. Updated.
|
||||
* @tuple_type: Tuple id byte. Updated.
|
||||
* @tuple_length: Tuple length. Updated.
|
||||
* @tuple: Dest buffer for tuple (must be 256 bytes). Updated.
|
||||
*
|
||||
* @return 0 on success, nonzero on error.
|
||||
* return: 0 on success, nonzero on error.
|
||||
*/
|
||||
static int dvb_ca_en50221_read_tuple(struct dvb_ca_private *ca, int slot,
|
||||
int *address, int *tuple_type,
|
||||
@@ -455,7 +455,7 @@ static int dvb_ca_en50221_read_tuple(struct dvb_ca_private *ca, int slot,
|
||||
* @ca: CA instance.
|
||||
* @slot: Slot id.
|
||||
*
|
||||
* @return 0 on success, <0 on failure.
|
||||
* return: 0 on success, <0 on failure.
|
||||
*/
|
||||
static int dvb_ca_en50221_parse_attributes(struct dvb_ca_private *ca, int slot)
|
||||
{
|
||||
@@ -632,10 +632,11 @@ static int dvb_ca_en50221_set_configoption(struct dvb_ca_private *ca, int slot)
|
||||
* @ca: CA instance.
|
||||
* @slot: Slot to read from.
|
||||
* @ebuf: If non-NULL, the data will be written to this buffer. If NULL,
|
||||
* the data will be added into the buffering system as a normal fragment.
|
||||
* the data will be added into the buffering system as a normal
|
||||
* fragment.
|
||||
* @ecount: Size of ebuf. Ignored if ebuf is NULL.
|
||||
*
|
||||
* @return Number of bytes read, or < 0 on error
|
||||
* return: Number of bytes read, or < 0 on error
|
||||
*/
|
||||
static int dvb_ca_en50221_read_data(struct dvb_ca_private *ca, int slot,
|
||||
u8 *ebuf, int ecount)
|
||||
@@ -784,11 +785,11 @@ exit:
|
||||
*
|
||||
* @ca: CA instance.
|
||||
* @slot: Slot to write to.
|
||||
* @ebuf: The data in this buffer is treated as a complete link-level packet to
|
||||
* be written.
|
||||
* @count: Size of ebuf.
|
||||
* @buf: The data in this buffer is treated as a complete link-level packet to
|
||||
* be written.
|
||||
* @bytes_write: Size of ebuf.
|
||||
*
|
||||
* @return Number of bytes written, or < 0 on error.
|
||||
* return: Number of bytes written, or < 0 on error.
|
||||
*/
|
||||
static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot,
|
||||
u8 *buf, int bytes_write)
|
||||
@@ -933,7 +934,7 @@ static int dvb_ca_en50221_slot_shutdown(struct dvb_ca_private *ca, int slot)
|
||||
/**
|
||||
* dvb_ca_en50221_camchange_irq - A CAMCHANGE IRQ has occurred.
|
||||
*
|
||||
* @ca: CA instance.
|
||||
* @pubca: CA instance.
|
||||
* @slot: Slot concerned.
|
||||
* @change_type: One of the DVB_CA_CAMCHANGE_* values.
|
||||
*/
|
||||
@@ -963,7 +964,7 @@ EXPORT_SYMBOL(dvb_ca_en50221_camchange_irq);
|
||||
/**
|
||||
* dvb_ca_en50221_camready_irq - A CAMREADY IRQ has occurred.
|
||||
*
|
||||
* @ca: CA instance.
|
||||
* @pubca: CA instance.
|
||||
* @slot: Slot concerned.
|
||||
*/
|
||||
void dvb_ca_en50221_camready_irq(struct dvb_ca_en50221 *pubca, int slot)
|
||||
@@ -983,7 +984,7 @@ EXPORT_SYMBOL(dvb_ca_en50221_camready_irq);
|
||||
/**
|
||||
* dvb_ca_en50221_frda_irq - An FR or DA IRQ has occurred.
|
||||
*
|
||||
* @ca: CA instance.
|
||||
* @pubca: CA instance.
|
||||
* @slot: Slot concerned.
|
||||
*/
|
||||
void dvb_ca_en50221_frda_irq(struct dvb_ca_en50221 *pubca, int slot)
|
||||
@@ -1091,7 +1092,7 @@ static void dvb_ca_en50221_thread_update_delay(struct dvb_ca_private *ca)
|
||||
*
|
||||
* @ca: CA instance.
|
||||
* @slot: Slot to process.
|
||||
* @return: 0 .. no change
|
||||
* return:: 0 .. no change
|
||||
* 1 .. CAM state changed
|
||||
*/
|
||||
|
||||
@@ -1296,7 +1297,7 @@ static void dvb_ca_en50221_thread_state_machine(struct dvb_ca_private *ca,
|
||||
mutex_unlock(&sl->slot_lock);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Kernel thread which monitors CA slots for CAM changes, and performs data
|
||||
* transfers.
|
||||
*/
|
||||
@@ -1336,12 +1337,11 @@ static int dvb_ca_en50221_thread(void *data)
|
||||
* Real ioctl implementation.
|
||||
* NOTE: CA_SEND_MSG/CA_GET_MSG ioctls have userspace buffers passed to them.
|
||||
*
|
||||
* @inode: Inode concerned.
|
||||
* @file: File concerned.
|
||||
* @cmd: IOCTL command.
|
||||
* @arg: Associated argument.
|
||||
* @parg: Associated argument.
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
static int dvb_ca_en50221_io_do_ioctl(struct file *file,
|
||||
unsigned int cmd, void *parg)
|
||||
@@ -1420,12 +1420,11 @@ out_unlock:
|
||||
/**
|
||||
* Wrapper for ioctl implementation.
|
||||
*
|
||||
* @inode: Inode concerned.
|
||||
* @file: File concerned.
|
||||
* @cmd: IOCTL command.
|
||||
* @arg: Associated argument.
|
||||
*
|
||||
* @return 0 on success, <0 on error.
|
||||
* return: 0 on success, <0 on error.
|
||||
*/
|
||||
static long dvb_ca_en50221_io_ioctl(struct file *file,
|
||||
unsigned int cmd, unsigned long arg)
|
||||
@@ -1441,7 +1440,7 @@ static long dvb_ca_en50221_io_ioctl(struct file *file,
|
||||
* @count: Size of source buffer.
|
||||
* @ppos: Position in file (ignored).
|
||||
*
|
||||
* @return Number of bytes read, or <0 on error.
|
||||
* return: Number of bytes read, or <0 on error.
|
||||
*/
|
||||
static ssize_t dvb_ca_en50221_io_write(struct file *file,
|
||||
const char __user *buf, size_t count,
|
||||
@@ -1536,7 +1535,7 @@ exit:
|
||||
return status;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Condition for waking up in dvb_ca_en50221_io_read_condition
|
||||
*/
|
||||
static int dvb_ca_en50221_io_read_condition(struct dvb_ca_private *ca,
|
||||
@@ -1593,7 +1592,7 @@ nextslot:
|
||||
* @count: Size of destination buffer.
|
||||
* @ppos: Position in file (ignored).
|
||||
*
|
||||
* @return Number of bytes read, or <0 on error.
|
||||
* return: Number of bytes read, or <0 on error.
|
||||
*/
|
||||
static ssize_t dvb_ca_en50221_io_read(struct file *file, char __user *buf,
|
||||
size_t count, loff_t *ppos)
|
||||
@@ -1702,7 +1701,7 @@ exit:
|
||||
* @inode: Inode concerned.
|
||||
* @file: File concerned.
|
||||
*
|
||||
* @return 0 on success, <0 on failure.
|
||||
* return: 0 on success, <0 on failure.
|
||||
*/
|
||||
static int dvb_ca_en50221_io_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
@@ -1752,7 +1751,7 @@ static int dvb_ca_en50221_io_open(struct inode *inode, struct file *file)
|
||||
* @inode: Inode concerned.
|
||||
* @file: File concerned.
|
||||
*
|
||||
* @return 0 on success, <0 on failure.
|
||||
* return: 0 on success, <0 on failure.
|
||||
*/
|
||||
static int dvb_ca_en50221_io_release(struct inode *inode, struct file *file)
|
||||
{
|
||||
@@ -1781,7 +1780,7 @@ static int dvb_ca_en50221_io_release(struct inode *inode, struct file *file)
|
||||
* @file: File concerned.
|
||||
* @wait: poll wait table.
|
||||
*
|
||||
* @return Standard poll mask.
|
||||
* return: Standard poll mask.
|
||||
*/
|
||||
static unsigned int dvb_ca_en50221_io_poll(struct file *file, poll_table *wait)
|
||||
{
|
||||
@@ -1838,11 +1837,11 @@ static const struct dvb_device dvbdev_ca = {
|
||||
* Initialise a new DVB CA EN50221 interface device.
|
||||
*
|
||||
* @dvb_adapter: DVB adapter to attach the new CA device to.
|
||||
* @ca: The dvb_ca instance.
|
||||
* @pubca: The dvb_ca instance.
|
||||
* @flags: Flags describing the CA device (DVB_CA_FLAG_*).
|
||||
* @slot_count: Number of slots supported.
|
||||
*
|
||||
* @return 0 on success, nonzero on failure
|
||||
* return: 0 on success, nonzero on failure
|
||||
*/
|
||||
int dvb_ca_en50221_init(struct dvb_adapter *dvb_adapter,
|
||||
struct dvb_ca_en50221 *pubca, int flags, int slot_count)
|
||||
@@ -1929,8 +1928,7 @@ EXPORT_SYMBOL(dvb_ca_en50221_init);
|
||||
/**
|
||||
* Release a DVB CA EN50221 interface device.
|
||||
*
|
||||
* @ca_dev: The dvb_device_t instance for the CA device.
|
||||
* @ca: The associated dvb_ca instance.
|
||||
* @pubca: The associated dvb_ca instance.
|
||||
*/
|
||||
void dvb_ca_en50221_release(struct dvb_ca_en50221 *pubca)
|
||||
{
|
||||
|
||||
@@ -369,11 +369,14 @@ static void dvb_frontend_swzigzag_update_delay(struct dvb_frontend_private *fepr
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs automatic twiddling of frontend parameters.
|
||||
* dvb_frontend_swzigzag_autotune - Performs automatic twiddling of frontend
|
||||
* parameters.
|
||||
*
|
||||
* @param fe The frontend concerned.
|
||||
* @param check_wrapped Checks if an iteration has completed. DO NOT SET ON THE FIRST ATTEMPT
|
||||
* @returns Number of complete iterations that have been performed.
|
||||
* @fe: The frontend concerned.
|
||||
* @check_wrapped: Checks if an iteration has completed.
|
||||
* DO NOT SET ON THE FIRST ATTEMPT.
|
||||
*
|
||||
* return: Number of complete iterations that have been performed.
|
||||
*/
|
||||
static int dvb_frontend_swzigzag_autotune(struct dvb_frontend *fe, int check_wrapped)
|
||||
{
|
||||
@@ -1253,7 +1256,7 @@ dtv_property_legacy_params_sync(struct dvb_frontend *fe,
|
||||
* dtv_get_frontend - calls a callback for retrieving DTV parameters
|
||||
* @fe: struct dvb_frontend pointer
|
||||
* @c: struct dtv_frontend_properties pointer (DVBv5 cache)
|
||||
* @p_out struct dvb_frontend_parameters pointer (DVBv3 FE struct)
|
||||
* @p_out: struct dvb_frontend_parameters pointer (DVBv3 FE struct)
|
||||
*
|
||||
* This routine calls either the DVBv3 or DVBv5 get_frontend call.
|
||||
* If c is not null, it will update the DVBv5 cache struct pointed by it.
|
||||
|
||||
@@ -125,7 +125,7 @@ struct dvb_net_priv {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Determine the packet's protocol ID. The rule here is that we
|
||||
* assume 802.3 if the type field is short enough to be a length.
|
||||
* This is normal practice and works for any 'now in use' protocol.
|
||||
@@ -155,7 +155,7 @@ static __be16 dvb_net_eth_type_trans(struct sk_buff *skb,
|
||||
|
||||
rawp = skb->data;
|
||||
|
||||
/**
|
||||
/*
|
||||
* This is a magic hack to spot IPX packets. Older Novell breaks
|
||||
* the protocol design and runs IPX over 802.3 without an 802.2 LLC
|
||||
* layer. We look for FFFF which isn't a used 802.2 SSAP/DSAP. This
|
||||
@@ -164,7 +164,7 @@ static __be16 dvb_net_eth_type_trans(struct sk_buff *skb,
|
||||
if (*(unsigned short *)rawp == 0xFFFF)
|
||||
return htons(ETH_P_802_3);
|
||||
|
||||
/**
|
||||
/*
|
||||
* Real 802.2 LLC
|
||||
*/
|
||||
return htons(ETH_P_802_2);
|
||||
@@ -215,7 +215,8 @@ static int ule_exthdr_padding(struct dvb_net_priv *p)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** Handle ULE extension headers.
|
||||
/*
|
||||
* Handle ULE extension headers.
|
||||
* Function is called after a successful CRC32 verification of an ULE SNDU to complete its decoding.
|
||||
* Returns: >= 0: nr. of bytes consumed by next extension header
|
||||
* -1: Mandatory extension header that is not recognized or TEST SNDU; discard.
|
||||
@@ -291,7 +292,7 @@ static int handle_ule_extensions( struct dvb_net_priv *p )
|
||||
}
|
||||
|
||||
|
||||
/** Prepare for a new ULE SNDU: reset the decoder state. */
|
||||
/* Prepare for a new ULE SNDU: reset the decoder state. */
|
||||
static inline void reset_ule( struct dvb_net_priv *p )
|
||||
{
|
||||
p->ule_skb = NULL;
|
||||
@@ -304,7 +305,7 @@ static inline void reset_ule( struct dvb_net_priv *p )
|
||||
p->ule_bridged = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Decode ULE SNDUs according to draft-ietf-ipdvb-ule-03.txt from a sequence of
|
||||
* TS cells of a single PID.
|
||||
*/
|
||||
@@ -1005,7 +1006,7 @@ static int dvb_net_sec_callback(const u8 *buffer1, size_t buffer1_len,
|
||||
{
|
||||
struct net_device *dev = filter->priv;
|
||||
|
||||
/**
|
||||
/*
|
||||
* we rely on the DVB API definition where exactly one complete
|
||||
* section is delivered in buffer1
|
||||
*/
|
||||
|
||||
@@ -38,6 +38,13 @@
|
||||
* @api_version: Firmware API version.
|
||||
* @gpio: GPIOs.
|
||||
* @get_dvb_frontend: Get DVB frontend callback.
|
||||
*
|
||||
* AF9013/5 GPIOs (mostly guessed):
|
||||
* * demod#1-gpio#0 - set demod#2 i2c-addr for dual devices
|
||||
* * demod#1-gpio#1 - xtal setting (?)
|
||||
* * demod#1-gpio#3 - tuner#1
|
||||
* * demod#2-gpio#0 - tuner#2
|
||||
* * demod#2-gpio#1 - xtal setting (?)
|
||||
*/
|
||||
struct af9013_platform_data {
|
||||
/*
|
||||
@@ -89,16 +96,15 @@ struct af9013_platform_data {
|
||||
#define AF9013_TS_PARALLEL AF9013_TS_MODE_PARALLEL
|
||||
#define AF9013_TS_SERIAL AF9013_TS_MODE_SERIAL
|
||||
|
||||
/*
|
||||
* AF9013/5 GPIOs (mostly guessed)
|
||||
* demod#1-gpio#0 - set demod#2 i2c-addr for dual devices
|
||||
* demod#1-gpio#1 - xtal setting (?)
|
||||
* demod#1-gpio#3 - tuner#1
|
||||
* demod#2-gpio#0 - tuner#2
|
||||
* demod#2-gpio#1 - xtal setting (?)
|
||||
*/
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_AF9013)
|
||||
/**
|
||||
* Attach an af9013 demod
|
||||
*
|
||||
* @config: pointer to &struct af9013_config with demod configuration.
|
||||
* @i2c: i2c adapter to use.
|
||||
*
|
||||
* return: FE pointer on success, NULL on failure.
|
||||
*/
|
||||
extern struct dvb_frontend *af9013_attach(const struct af9013_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
#else
|
||||
|
||||
@@ -41,6 +41,15 @@ struct ascot2e_config {
|
||||
};
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_ASCOT2E)
|
||||
/**
|
||||
* Attach an ascot2e tuner
|
||||
*
|
||||
* @fe: frontend to be attached
|
||||
* @config: pointer to &struct ascot2e_config with tuner configuration.
|
||||
* @i2c: i2c adapter to use.
|
||||
*
|
||||
* return: FE pointer on success, NULL on failure.
|
||||
*/
|
||||
extern struct dvb_frontend *ascot2e_attach(struct dvb_frontend *fe,
|
||||
const struct ascot2e_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
* @gpio_chip_base: GPIO.
|
||||
* @get_dvb_frontend: Get DVB frontend.
|
||||
*/
|
||||
|
||||
struct cxd2820r_platform_data {
|
||||
u8 ts_mode;
|
||||
bool ts_clk_inv;
|
||||
@@ -62,6 +61,17 @@ struct cxd2820r_platform_data {
|
||||
bool attach_in_use;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct cxd2820r_config - configuration for cxd2020r demod
|
||||
*
|
||||
* @i2c_address: Demodulator I2C address. Driver determines DVB-C slave I2C
|
||||
* address automatically from master address.
|
||||
* Default: none, must set. Values: 0x6c, 0x6d.
|
||||
* @ts_mode: TS output mode. Default: none, must set. Values: FIXME?
|
||||
* @ts_clock_inv: TS clock inverted. Default: 0. Values: 0, 1.
|
||||
* @if_agc_polarity: Default: 0. Values: 0, 1
|
||||
* @spec_inv: Spectrum inversion. Default: 0. Values: 0, 1.
|
||||
*/
|
||||
struct cxd2820r_config {
|
||||
/* Demodulator I2C address.
|
||||
* Driver determines DVB-C slave I2C address automatically from master
|
||||
@@ -98,6 +108,18 @@ struct cxd2820r_config {
|
||||
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_CXD2820R)
|
||||
/**
|
||||
* Attach a cxd2820r demod
|
||||
*
|
||||
* @config: pointer to &struct cxd2820r_config with demod configuration.
|
||||
* @i2c: i2c adapter to use.
|
||||
* @gpio_chip_base: if zero, disables GPIO setting. Otherwise, if
|
||||
* CONFIG_GPIOLIB is set dynamically allocate
|
||||
* gpio base; if is not set, use its value to
|
||||
* setup the GPIO pins.
|
||||
*
|
||||
* return: FE pointer on success, NULL on failure.
|
||||
*/
|
||||
extern struct dvb_frontend *cxd2820r_attach(
|
||||
const struct cxd2820r_config *config,
|
||||
struct i2c_adapter *i2c,
|
||||
|
||||
@@ -52,7 +52,7 @@ struct i2c_device_addr {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* \def IS_I2C_10BIT( addr )
|
||||
* \brief Determine if I2C address 'addr' is a 10 bits address or not.
|
||||
* \param addr The I2C address.
|
||||
@@ -67,7 +67,7 @@ struct i2c_device_addr {
|
||||
Exported FUNCTIONS
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \fn drxbsp_i2c_init()
|
||||
* \brief Initialize I2C communication module.
|
||||
* \return drx_status_t Return status.
|
||||
@@ -76,7 +76,7 @@ Exported FUNCTIONS
|
||||
*/
|
||||
drx_status_t drxbsp_i2c_init(void);
|
||||
|
||||
/**
|
||||
/*
|
||||
* \fn drxbsp_i2c_term()
|
||||
* \brief Terminate I2C communication module.
|
||||
* \return drx_status_t Return status.
|
||||
@@ -85,7 +85,7 @@ Exported FUNCTIONS
|
||||
*/
|
||||
drx_status_t drxbsp_i2c_term(void);
|
||||
|
||||
/**
|
||||
/*
|
||||
* \fn drx_status_t drxbsp_i2c_write_read( struct i2c_device_addr *w_dev_addr,
|
||||
* u16 w_count,
|
||||
* u8 *wData,
|
||||
@@ -121,7 +121,7 @@ Exported FUNCTIONS
|
||||
struct i2c_device_addr *r_dev_addr,
|
||||
u16 r_count, u8 *r_data);
|
||||
|
||||
/**
|
||||
/*
|
||||
* \fn drxbsp_i2c_error_text()
|
||||
* \brief Returns a human readable error.
|
||||
* Counter part of numerical drx_i2c_error_g.
|
||||
@@ -130,7 +130,7 @@ Exported FUNCTIONS
|
||||
*/
|
||||
char *drxbsp_i2c_error_text(void);
|
||||
|
||||
/**
|
||||
/*
|
||||
* \var drx_i2c_error_g;
|
||||
* \brief I2C specific error codes, platform dependent.
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -69,15 +69,15 @@ TYPEDEFS
|
||||
|
||||
struct drxjscu_cmd {
|
||||
u16 command;
|
||||
/**< Command number */
|
||||
/*< Command number */
|
||||
u16 parameter_len;
|
||||
/**< Data length in byte */
|
||||
/*< Data length in byte */
|
||||
u16 result_len;
|
||||
/**< result length in byte */
|
||||
/*< result length in byte */
|
||||
u16 *parameter;
|
||||
/**< General purpous param */
|
||||
/*< General purpous param */
|
||||
u16 *result;
|
||||
/**< General purpous param */};
|
||||
/*< General purpous param */};
|
||||
|
||||
/*============================================================================*/
|
||||
/*============================================================================*/
|
||||
@@ -130,7 +130,7 @@ TYPEDEFS
|
||||
|
||||
DRXJ_CFG_MAX /* dummy, never to be used */};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct enum drxj_cfg_smart_ant_io * smart antenna i/o.
|
||||
*/
|
||||
enum drxj_cfg_smart_ant_io {
|
||||
@@ -138,7 +138,7 @@ enum drxj_cfg_smart_ant_io {
|
||||
DRXJ_SMT_ANT_INPUT
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_cfg_smart_ant * Set smart antenna.
|
||||
*/
|
||||
struct drxj_cfg_smart_ant {
|
||||
@@ -146,7 +146,7 @@ enum drxj_cfg_smart_ant_io {
|
||||
u16 ctrl_data;
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct DRXJAGCSTATUS_t
|
||||
* AGC status information from the DRXJ-IQM-AF.
|
||||
*/
|
||||
@@ -158,7 +158,7 @@ struct drxj_agc_status {
|
||||
|
||||
/* DRXJ_CFG_AGC_RF, DRXJ_CFG_AGC_IF */
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct enum drxj_agc_ctrl_mode * Available AGCs modes in the DRXJ.
|
||||
*/
|
||||
enum drxj_agc_ctrl_mode {
|
||||
@@ -166,7 +166,7 @@ struct drxj_agc_status {
|
||||
DRX_AGC_CTRL_USER,
|
||||
DRX_AGC_CTRL_OFF};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_cfg_agc * Generic interface for all AGCs present on the DRXJ.
|
||||
*/
|
||||
struct drxj_cfg_agc {
|
||||
@@ -182,7 +182,7 @@ struct drxj_agc_status {
|
||||
|
||||
/* DRXJ_CFG_PRE_SAW */
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_cfg_pre_saw * Interface to configure pre SAW sense.
|
||||
*/
|
||||
struct drxj_cfg_pre_saw {
|
||||
@@ -192,14 +192,14 @@ struct drxj_agc_status {
|
||||
|
||||
/* DRXJ_CFG_AFE_GAIN */
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_cfg_afe_gain * Interface to configure gain of AFE (LNA + PGA).
|
||||
*/
|
||||
struct drxj_cfg_afe_gain {
|
||||
enum drx_standard standard; /* standard to which these settings apply */
|
||||
u16 gain; /* gain in 0.1 dB steps, DRXJ range 140 .. 335 */};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct drxjrs_errors
|
||||
* Available failure information in DRXJ_FEC_RS.
|
||||
*
|
||||
@@ -208,25 +208,25 @@ struct drxj_agc_status {
|
||||
*/
|
||||
struct drxjrs_errors {
|
||||
u16 nr_bit_errors;
|
||||
/**< no of pre RS bit errors */
|
||||
/*< no of pre RS bit errors */
|
||||
u16 nr_symbol_errors;
|
||||
/**< no of pre RS symbol errors */
|
||||
/*< no of pre RS symbol errors */
|
||||
u16 nr_packet_errors;
|
||||
/**< no of pre RS packet errors */
|
||||
/*< no of pre RS packet errors */
|
||||
u16 nr_failures;
|
||||
/**< no of post RS failures to decode */
|
||||
/*< no of post RS failures to decode */
|
||||
u16 nr_snc_par_fail_count;
|
||||
/**< no of post RS bit erros */
|
||||
/*< no of post RS bit erros */
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_cfg_vsb_misc * symbol error rate
|
||||
*/
|
||||
struct drxj_cfg_vsb_misc {
|
||||
u32 symb_error;
|
||||
/**< symbol error rate sps */};
|
||||
/*< symbol error rate sps */};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /enum enum drxj_mpeg_output_clock_rate * Mpeg output clock rate.
|
||||
*
|
||||
*/
|
||||
@@ -234,7 +234,7 @@ struct drxj_agc_status {
|
||||
DRXJ_MPEG_START_WIDTH_1CLKCYC,
|
||||
DRXJ_MPEG_START_WIDTH_8CLKCYC};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /enum enum drxj_mpeg_output_clock_rate * Mpeg output clock rate.
|
||||
*
|
||||
*/
|
||||
@@ -247,20 +247,20 @@ struct drxj_agc_status {
|
||||
DRXJ_MPEGOUTPUT_CLOCK_RATE_25313K,
|
||||
DRXJ_MPEGOUTPUT_CLOCK_RATE_21696K};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct DRXJCfgMisc_t
|
||||
* Change TEI bit of MPEG output
|
||||
* reverse MPEG output bit order
|
||||
* set MPEG output clock rate
|
||||
*/
|
||||
struct drxj_cfg_mpeg_output_misc {
|
||||
bool disable_tei_handling; /**< if true pass (not change) TEI bit */
|
||||
bool bit_reverse_mpeg_outout; /**< if true, parallel: msb on MD0; serial: lsb out first */
|
||||
bool disable_tei_handling; /*< if true pass (not change) TEI bit */
|
||||
bool bit_reverse_mpeg_outout; /*< if true, parallel: msb on MD0; serial: lsb out first */
|
||||
enum drxj_mpeg_output_clock_rate mpeg_output_clock_rate;
|
||||
/**< set MPEG output clock rate that overwirtes the derived one from symbol rate */
|
||||
enum drxj_mpeg_start_width mpeg_start_width; /**< set MPEG output start width */};
|
||||
/*< set MPEG output clock rate that overwirtes the derived one from symbol rate */
|
||||
enum drxj_mpeg_start_width mpeg_start_width; /*< set MPEG output start width */};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /enum enum drxj_xtal_freq * Supported external crystal reference frequency.
|
||||
*/
|
||||
enum drxj_xtal_freq {
|
||||
@@ -269,21 +269,21 @@ struct drxj_agc_status {
|
||||
DRXJ_XTAL_FREQ_20P25MHZ,
|
||||
DRXJ_XTAL_FREQ_4MHZ};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /enum enum drxj_xtal_freq * Supported external crystal reference frequency.
|
||||
*/
|
||||
enum drxji2c_speed {
|
||||
DRXJ_I2C_SPEED_400KBPS,
|
||||
DRXJ_I2C_SPEED_100KBPS};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_cfg_hw_cfg * Get hw configuration, such as crystal reference frequency, I2C speed, etc...
|
||||
*/
|
||||
struct drxj_cfg_hw_cfg {
|
||||
enum drxj_xtal_freq xtal_freq;
|
||||
/**< crystal reference frequency */
|
||||
/*< crystal reference frequency */
|
||||
enum drxji2c_speed i2c_speed;
|
||||
/**< 100 or 400 kbps */};
|
||||
/*< 100 or 400 kbps */};
|
||||
|
||||
/*
|
||||
* DRXJ_CFG_ATV_MISC
|
||||
@@ -352,7 +352,7 @@ struct drxj_cfg_oob_misc {
|
||||
* DRXJ_CFG_ATV_OUTPUT
|
||||
*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* /enum DRXJAttenuation_t
|
||||
* Attenuation setting for SIF AGC.
|
||||
*
|
||||
@@ -363,7 +363,7 @@ struct drxj_cfg_oob_misc {
|
||||
DRXJ_SIF_ATTENUATION_6DB,
|
||||
DRXJ_SIF_ATTENUATION_9DB};
|
||||
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_cfg_atv_output * SIF attenuation setting.
|
||||
*
|
||||
*/
|
||||
@@ -398,7 +398,7 @@ struct drxj_cfg_atv_output {
|
||||
/*============================================================================*/
|
||||
|
||||
/*========================================*/
|
||||
/**
|
||||
/*
|
||||
* /struct struct drxj_data * DRXJ specific attributes.
|
||||
*
|
||||
* Global data container for DRXJ specific data.
|
||||
@@ -406,93 +406,93 @@ struct drxj_cfg_atv_output {
|
||||
*/
|
||||
struct drxj_data {
|
||||
/* device capabilties (determined during drx_open()) */
|
||||
bool has_lna; /**< true if LNA (aka PGA) present */
|
||||
bool has_oob; /**< true if OOB supported */
|
||||
bool has_ntsc; /**< true if NTSC supported */
|
||||
bool has_btsc; /**< true if BTSC supported */
|
||||
bool has_smatx; /**< true if mat_tx is available */
|
||||
bool has_smarx; /**< true if mat_rx is available */
|
||||
bool has_gpio; /**< true if GPIO is available */
|
||||
bool has_irqn; /**< true if IRQN is available */
|
||||
bool has_lna; /*< true if LNA (aka PGA) present */
|
||||
bool has_oob; /*< true if OOB supported */
|
||||
bool has_ntsc; /*< true if NTSC supported */
|
||||
bool has_btsc; /*< true if BTSC supported */
|
||||
bool has_smatx; /*< true if mat_tx is available */
|
||||
bool has_smarx; /*< true if mat_rx is available */
|
||||
bool has_gpio; /*< true if GPIO is available */
|
||||
bool has_irqn; /*< true if IRQN is available */
|
||||
/* A1/A2/A... */
|
||||
u8 mfx; /**< metal fix */
|
||||
u8 mfx; /*< metal fix */
|
||||
|
||||
/* tuner settings */
|
||||
bool mirror_freq_spect_oob;/**< tuner inversion (true = tuner mirrors the signal */
|
||||
bool mirror_freq_spect_oob;/*< tuner inversion (true = tuner mirrors the signal */
|
||||
|
||||
/* standard/channel settings */
|
||||
enum drx_standard standard; /**< current standard information */
|
||||
enum drx_standard standard; /*< current standard information */
|
||||
enum drx_modulation constellation;
|
||||
/**< current constellation */
|
||||
s32 frequency; /**< center signal frequency in KHz */
|
||||
/*< current constellation */
|
||||
s32 frequency; /*< center signal frequency in KHz */
|
||||
enum drx_bandwidth curr_bandwidth;
|
||||
/**< current channel bandwidth */
|
||||
enum drx_mirror mirror; /**< current channel mirror */
|
||||
/*< current channel bandwidth */
|
||||
enum drx_mirror mirror; /*< current channel mirror */
|
||||
|
||||
/* signal quality information */
|
||||
u32 fec_bits_desired; /**< BER accounting period */
|
||||
u16 fec_vd_plen; /**< no of trellis symbols: VD SER measurement period */
|
||||
u16 qam_vd_prescale; /**< Viterbi Measurement Prescale */
|
||||
u16 qam_vd_period; /**< Viterbi Measurement period */
|
||||
u16 fec_rs_plen; /**< defines RS BER measurement period */
|
||||
u16 fec_rs_prescale; /**< ReedSolomon Measurement Prescale */
|
||||
u16 fec_rs_period; /**< ReedSolomon Measurement period */
|
||||
bool reset_pkt_err_acc; /**< Set a flag to reset accumulated packet error */
|
||||
u16 pkt_err_acc_start; /**< Set a flag to reset accumulated packet error */
|
||||
u32 fec_bits_desired; /*< BER accounting period */
|
||||
u16 fec_vd_plen; /*< no of trellis symbols: VD SER measurement period */
|
||||
u16 qam_vd_prescale; /*< Viterbi Measurement Prescale */
|
||||
u16 qam_vd_period; /*< Viterbi Measurement period */
|
||||
u16 fec_rs_plen; /*< defines RS BER measurement period */
|
||||
u16 fec_rs_prescale; /*< ReedSolomon Measurement Prescale */
|
||||
u16 fec_rs_period; /*< ReedSolomon Measurement period */
|
||||
bool reset_pkt_err_acc; /*< Set a flag to reset accumulated packet error */
|
||||
u16 pkt_err_acc_start; /*< Set a flag to reset accumulated packet error */
|
||||
|
||||
/* HI configuration */
|
||||
u16 hi_cfg_timing_div; /**< HI Configure() parameter 2 */
|
||||
u16 hi_cfg_bridge_delay; /**< HI Configure() parameter 3 */
|
||||
u16 hi_cfg_wake_up_key; /**< HI Configure() parameter 4 */
|
||||
u16 hi_cfg_ctrl; /**< HI Configure() parameter 5 */
|
||||
u16 hi_cfg_transmit; /**< HI Configure() parameter 6 */
|
||||
u16 hi_cfg_timing_div; /*< HI Configure() parameter 2 */
|
||||
u16 hi_cfg_bridge_delay; /*< HI Configure() parameter 3 */
|
||||
u16 hi_cfg_wake_up_key; /*< HI Configure() parameter 4 */
|
||||
u16 hi_cfg_ctrl; /*< HI Configure() parameter 5 */
|
||||
u16 hi_cfg_transmit; /*< HI Configure() parameter 6 */
|
||||
|
||||
/* UIO configuration */
|
||||
enum drxuio_mode uio_sma_rx_mode;/**< current mode of SmaRx pin */
|
||||
enum drxuio_mode uio_sma_tx_mode;/**< current mode of SmaTx pin */
|
||||
enum drxuio_mode uio_gpio_mode; /**< current mode of ASEL pin */
|
||||
enum drxuio_mode uio_irqn_mode; /**< current mode of IRQN pin */
|
||||
enum drxuio_mode uio_sma_rx_mode;/*< current mode of SmaRx pin */
|
||||
enum drxuio_mode uio_sma_tx_mode;/*< current mode of SmaTx pin */
|
||||
enum drxuio_mode uio_gpio_mode; /*< current mode of ASEL pin */
|
||||
enum drxuio_mode uio_irqn_mode; /*< current mode of IRQN pin */
|
||||
|
||||
/* IQM fs frequecy shift and inversion */
|
||||
u32 iqm_fs_rate_ofs; /**< frequency shifter setting after setchannel */
|
||||
bool pos_image; /**< Ture: positive image */
|
||||
u32 iqm_fs_rate_ofs; /*< frequency shifter setting after setchannel */
|
||||
bool pos_image; /*< Ture: positive image */
|
||||
/* IQM RC frequecy shift */
|
||||
u32 iqm_rc_rate_ofs; /**< frequency shifter setting after setchannel */
|
||||
u32 iqm_rc_rate_ofs; /*< frequency shifter setting after setchannel */
|
||||
|
||||
/* ATV configuration */
|
||||
u32 atv_cfg_changed_flags; /**< flag: flags cfg changes */
|
||||
s16 atv_top_equ0[DRXJ_COEF_IDX_MAX]; /**< shadow of ATV_TOP_EQU0__A */
|
||||
s16 atv_top_equ1[DRXJ_COEF_IDX_MAX]; /**< shadow of ATV_TOP_EQU1__A */
|
||||
s16 atv_top_equ2[DRXJ_COEF_IDX_MAX]; /**< shadow of ATV_TOP_EQU2__A */
|
||||
s16 atv_top_equ3[DRXJ_COEF_IDX_MAX]; /**< shadow of ATV_TOP_EQU3__A */
|
||||
bool phase_correction_bypass;/**< flag: true=bypass */
|
||||
s16 atv_top_vid_peak; /**< shadow of ATV_TOP_VID_PEAK__A */
|
||||
u16 atv_top_noise_th; /**< shadow of ATV_TOP_NOISE_TH__A */
|
||||
bool enable_cvbs_output; /**< flag CVBS ouput enable */
|
||||
bool enable_sif_output; /**< flag SIF ouput enable */
|
||||
u32 atv_cfg_changed_flags; /*< flag: flags cfg changes */
|
||||
s16 atv_top_equ0[DRXJ_COEF_IDX_MAX]; /*< shadow of ATV_TOP_EQU0__A */
|
||||
s16 atv_top_equ1[DRXJ_COEF_IDX_MAX]; /*< shadow of ATV_TOP_EQU1__A */
|
||||
s16 atv_top_equ2[DRXJ_COEF_IDX_MAX]; /*< shadow of ATV_TOP_EQU2__A */
|
||||
s16 atv_top_equ3[DRXJ_COEF_IDX_MAX]; /*< shadow of ATV_TOP_EQU3__A */
|
||||
bool phase_correction_bypass;/*< flag: true=bypass */
|
||||
s16 atv_top_vid_peak; /*< shadow of ATV_TOP_VID_PEAK__A */
|
||||
u16 atv_top_noise_th; /*< shadow of ATV_TOP_NOISE_TH__A */
|
||||
bool enable_cvbs_output; /*< flag CVBS ouput enable */
|
||||
bool enable_sif_output; /*< flag SIF ouput enable */
|
||||
enum drxjsif_attenuation sif_attenuation;
|
||||
/**< current SIF att setting */
|
||||
/*< current SIF att setting */
|
||||
/* Agc configuration for QAM and VSB */
|
||||
struct drxj_cfg_agc qam_rf_agc_cfg; /**< qam RF AGC config */
|
||||
struct drxj_cfg_agc qam_if_agc_cfg; /**< qam IF AGC config */
|
||||
struct drxj_cfg_agc vsb_rf_agc_cfg; /**< vsb RF AGC config */
|
||||
struct drxj_cfg_agc vsb_if_agc_cfg; /**< vsb IF AGC config */
|
||||
struct drxj_cfg_agc qam_rf_agc_cfg; /*< qam RF AGC config */
|
||||
struct drxj_cfg_agc qam_if_agc_cfg; /*< qam IF AGC config */
|
||||
struct drxj_cfg_agc vsb_rf_agc_cfg; /*< vsb RF AGC config */
|
||||
struct drxj_cfg_agc vsb_if_agc_cfg; /*< vsb IF AGC config */
|
||||
|
||||
/* PGA gain configuration for QAM and VSB */
|
||||
u16 qam_pga_cfg; /**< qam PGA config */
|
||||
u16 vsb_pga_cfg; /**< vsb PGA config */
|
||||
u16 qam_pga_cfg; /*< qam PGA config */
|
||||
u16 vsb_pga_cfg; /*< vsb PGA config */
|
||||
|
||||
/* Pre SAW configuration for QAM and VSB */
|
||||
struct drxj_cfg_pre_saw qam_pre_saw_cfg;
|
||||
/**< qam pre SAW config */
|
||||
/*< qam pre SAW config */
|
||||
struct drxj_cfg_pre_saw vsb_pre_saw_cfg;
|
||||
/**< qam pre SAW config */
|
||||
/*< qam pre SAW config */
|
||||
|
||||
/* Version information */
|
||||
char v_text[2][12]; /**< allocated text versions */
|
||||
struct drx_version v_version[2]; /**< allocated versions structs */
|
||||
char v_text[2][12]; /*< allocated text versions */
|
||||
struct drx_version v_version[2]; /*< allocated versions structs */
|
||||
struct drx_version_list v_list_elements[2];
|
||||
/**< allocated version list */
|
||||
/*< allocated version list */
|
||||
|
||||
/* smart antenna configuration */
|
||||
bool smart_ant_inverted;
|
||||
@@ -502,25 +502,25 @@ struct drxj_cfg_atv_output {
|
||||
bool oob_power_on;
|
||||
|
||||
/* MPEG static bitrate setting */
|
||||
u32 mpeg_ts_static_bitrate; /**< bitrate static MPEG output */
|
||||
bool disable_te_ihandling; /**< MPEG TS TEI handling */
|
||||
bool bit_reverse_mpeg_outout;/**< MPEG output bit order */
|
||||
u32 mpeg_ts_static_bitrate; /*< bitrate static MPEG output */
|
||||
bool disable_te_ihandling; /*< MPEG TS TEI handling */
|
||||
bool bit_reverse_mpeg_outout;/*< MPEG output bit order */
|
||||
enum drxj_mpeg_output_clock_rate mpeg_output_clock_rate;
|
||||
/**< MPEG output clock rate */
|
||||
/*< MPEG output clock rate */
|
||||
enum drxj_mpeg_start_width mpeg_start_width;
|
||||
/**< MPEG Start width */
|
||||
/*< MPEG Start width */
|
||||
|
||||
/* Pre SAW & Agc configuration for ATV */
|
||||
struct drxj_cfg_pre_saw atv_pre_saw_cfg;
|
||||
/**< atv pre SAW config */
|
||||
struct drxj_cfg_agc atv_rf_agc_cfg; /**< atv RF AGC config */
|
||||
struct drxj_cfg_agc atv_if_agc_cfg; /**< atv IF AGC config */
|
||||
u16 atv_pga_cfg; /**< atv pga config */
|
||||
/*< atv pre SAW config */
|
||||
struct drxj_cfg_agc atv_rf_agc_cfg; /*< atv RF AGC config */
|
||||
struct drxj_cfg_agc atv_if_agc_cfg; /*< atv IF AGC config */
|
||||
u16 atv_pga_cfg; /*< atv pga config */
|
||||
|
||||
u32 curr_symbol_rate;
|
||||
|
||||
/* pin-safe mode */
|
||||
bool pdr_safe_mode; /**< PDR safe mode activated */
|
||||
bool pdr_safe_mode; /*< PDR safe mode activated */
|
||||
u16 pdr_safe_restore_val_gpio;
|
||||
u16 pdr_safe_restore_val_v_sync;
|
||||
u16 pdr_safe_restore_val_sma_rx;
|
||||
@@ -531,12 +531,12 @@ struct drxj_cfg_atv_output {
|
||||
enum drxj_cfg_oob_lo_power oob_lo_pow;
|
||||
|
||||
struct drx_aud_data aud_data;
|
||||
/**< audio storage */};
|
||||
/*< audio storage */};
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
Access MACROS
|
||||
-------------------------------------------------------------------------*/
|
||||
/**
|
||||
/*
|
||||
* \brief Compilable references to attributes
|
||||
* \param d pointer to demod instance
|
||||
*
|
||||
@@ -554,7 +554,7 @@ Access MACROS
|
||||
DEFINES
|
||||
-------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \def DRXJ_NTSC_CARRIER_FREQ_OFFSET
|
||||
* \brief Offset from picture carrier to centre frequency in kHz, in RF domain
|
||||
*
|
||||
@@ -569,7 +569,7 @@ DEFINES
|
||||
*/
|
||||
#define DRXJ_NTSC_CARRIER_FREQ_OFFSET ((s32)(1750))
|
||||
|
||||
/**
|
||||
/*
|
||||
* \def DRXJ_PAL_SECAM_BG_CARRIER_FREQ_OFFSET
|
||||
* \brief Offset from picture carrier to centre frequency in kHz, in RF domain
|
||||
*
|
||||
@@ -585,7 +585,7 @@ DEFINES
|
||||
*/
|
||||
#define DRXJ_PAL_SECAM_BG_CARRIER_FREQ_OFFSET ((s32)(2375))
|
||||
|
||||
/**
|
||||
/*
|
||||
* \def DRXJ_PAL_SECAM_DKIL_CARRIER_FREQ_OFFSET
|
||||
* \brief Offset from picture carrier to centre frequency in kHz, in RF domain
|
||||
*
|
||||
@@ -601,7 +601,7 @@ DEFINES
|
||||
*/
|
||||
#define DRXJ_PAL_SECAM_DKIL_CARRIER_FREQ_OFFSET ((s32)(2775))
|
||||
|
||||
/**
|
||||
/*
|
||||
* \def DRXJ_PAL_SECAM_LP_CARRIER_FREQ_OFFSET
|
||||
* \brief Offset from picture carrier to centre frequency in kHz, in RF domain
|
||||
*
|
||||
@@ -616,7 +616,7 @@ DEFINES
|
||||
*/
|
||||
#define DRXJ_PAL_SECAM_LP_CARRIER_FREQ_OFFSET ((s32)(-3255))
|
||||
|
||||
/**
|
||||
/*
|
||||
* \def DRXJ_FM_CARRIER_FREQ_OFFSET
|
||||
* \brief Offset from sound carrier to centre frequency in kHz, in RF domain
|
||||
*
|
||||
|
||||
@@ -20,17 +20,18 @@
|
||||
* @antenna_dvbt: GPIO bit for changing antenna to DVB-C. A value of 1
|
||||
* means that 1=DVBC, 0 = DVBT. Zero means the opposite.
|
||||
* @mpeg_out_clk_strength: DRXK Mpeg output clock drive strength.
|
||||
* @chunk_size: maximum size for I2C messages
|
||||
* @microcode_name: Name of the firmware file with the microcode
|
||||
* @qam_demod_parameter_count: The number of parameters used for the command
|
||||
* to set the demodulator parameters. All
|
||||
* firmwares are using the 2-parameter commmand.
|
||||
* An exception is the "drxk_a3.mc" firmware,
|
||||
* An exception is the ``drxk_a3.mc`` firmware,
|
||||
* which uses the 4-parameter command.
|
||||
* A value of 0 (default) or lower indicates that
|
||||
* the correct number of parameters will be
|
||||
* automatically detected.
|
||||
*
|
||||
* On the *_gpio vars, bit 0 is UIO-1, bit 1 is UIO-2 and bit 2 is
|
||||
* On the ``*_gpio`` vars, bit 0 is UIO-1, bit 1 is UIO-2 and bit 2 is
|
||||
* UIO-3.
|
||||
*/
|
||||
struct drxk_config {
|
||||
@@ -52,6 +53,14 @@ struct drxk_config {
|
||||
};
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_DRXK)
|
||||
/**
|
||||
* Attach a drxk demod
|
||||
*
|
||||
* @config: pointer to &struct drxk_config with demod configuration.
|
||||
* @i2c: i2c adapter to use.
|
||||
*
|
||||
* return: FE pointer on success, NULL on failure.
|
||||
*/
|
||||
extern struct dvb_frontend *drxk_attach(const struct drxk_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
#else
|
||||
|
||||
@@ -207,9 +207,9 @@ static inline u32 log10times100(u32 value)
|
||||
return (100L * intlog10(value)) >> 24;
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/***************************************************************************/
|
||||
/* I2C **********************************************************************/
|
||||
/****************************************************************************/
|
||||
/***************************************************************************/
|
||||
|
||||
static int drxk_i2c_lock(struct drxk_state *state)
|
||||
{
|
||||
@@ -3444,7 +3444,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief Activate DVBT specific presets
|
||||
* \param demod instance of demodulator.
|
||||
* \return DRXStatus_t.
|
||||
@@ -3484,7 +3484,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief Initialize channelswitch-independent settings for DVBT.
|
||||
* \param demod instance of demodulator.
|
||||
* \return DRXStatus_t.
|
||||
@@ -3696,7 +3696,7 @@ error:
|
||||
}
|
||||
|
||||
/*============================================================================*/
|
||||
/**
|
||||
/*
|
||||
* \brief start dvbt demodulating for channel.
|
||||
* \param demod instance of demodulator.
|
||||
* \return DRXStatus_t.
|
||||
@@ -3732,7 +3732,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief Set up dvbt demodulator for channel.
|
||||
* \param demod instance of demodulator.
|
||||
* \return DRXStatus_t.
|
||||
@@ -4086,7 +4086,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief Retrieve lock status .
|
||||
* \param demod Pointer to demodulator instance.
|
||||
* \param lockStat Pointer to lock status structure.
|
||||
@@ -4148,7 +4148,7 @@ static int power_up_qam(struct drxk_state *state)
|
||||
}
|
||||
|
||||
|
||||
/** Power Down QAM */
|
||||
/* Power Down QAM */
|
||||
static int power_down_qam(struct drxk_state *state)
|
||||
{
|
||||
u16 data = 0;
|
||||
@@ -4186,7 +4186,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief Setup of the QAM Measurement intervals for signal quality
|
||||
* \param demod instance of demod.
|
||||
* \param modulation current modulation.
|
||||
@@ -4461,7 +4461,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief QAM32 specific setup
|
||||
* \param demod instance of demod.
|
||||
* \return DRXStatus_t.
|
||||
@@ -4657,7 +4657,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief QAM64 specific setup
|
||||
* \param demod instance of demod.
|
||||
* \return DRXStatus_t.
|
||||
@@ -4852,7 +4852,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief QAM128 specific setup
|
||||
* \param demod: instance of demod.
|
||||
* \return DRXStatus_t.
|
||||
@@ -5049,7 +5049,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief QAM256 specific setup
|
||||
* \param demod: instance of demod.
|
||||
* \return DRXStatus_t.
|
||||
@@ -5244,7 +5244,7 @@ error:
|
||||
|
||||
|
||||
/*============================================================================*/
|
||||
/**
|
||||
/*
|
||||
* \brief Reset QAM block.
|
||||
* \param demod: instance of demod.
|
||||
* \param channel: pointer to channel data.
|
||||
@@ -5272,7 +5272,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief Set QAM symbolrate.
|
||||
* \param demod: instance of demod.
|
||||
* \param channel: pointer to channel data.
|
||||
@@ -5341,7 +5341,7 @@ error:
|
||||
|
||||
/*============================================================================*/
|
||||
|
||||
/**
|
||||
/*
|
||||
* \brief Get QAM lock status.
|
||||
* \param demod: instance of demod.
|
||||
* \param channel: pointer to channel data.
|
||||
|
||||
@@ -30,16 +30,17 @@
|
||||
#define DVB_PLL_TDEE4 18
|
||||
#define DVB_PLL_THOMSON_DTT7520X 19
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_PLL)
|
||||
/**
|
||||
* Attach a dvb-pll to the supplied frontend structure.
|
||||
*
|
||||
* @param fe Frontend to attach to.
|
||||
* @param pll_addr i2c address of the PLL (if used).
|
||||
* @param i2c i2c adapter to use (set to NULL if not used).
|
||||
* @param pll_desc_id dvb_pll_desc to use.
|
||||
* @return Frontend pointer on success, NULL on failure
|
||||
* @fe: Frontend to attach to.
|
||||
* @pll_addr: i2c address of the PLL (if used).
|
||||
* @i2c: i2c adapter to use (set to NULL if not used).
|
||||
* @pll_desc_id: dvb_pll_desc to use.
|
||||
*
|
||||
* return: Frontend pointer on success, NULL on failure
|
||||
*/
|
||||
#if IS_REACHABLE(CONFIG_DVB_PLL)
|
||||
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
|
||||
int pll_addr,
|
||||
struct i2c_adapter *i2c,
|
||||
|
||||
@@ -38,6 +38,7 @@ enum helene_xtal {
|
||||
* @set_tuner_priv: Callback function private context
|
||||
* @set_tuner_callback: Callback function that notifies the parent driver
|
||||
* which tuner is active now
|
||||
* @xtal: Cristal frequency as described by &enum helene_xtal
|
||||
*/
|
||||
struct helene_config {
|
||||
u8 i2c_address;
|
||||
@@ -48,9 +49,31 @@ struct helene_config {
|
||||
};
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_HELENE)
|
||||
/**
|
||||
* Attach a helene tuner (terrestrial and cable standards)
|
||||
*
|
||||
* @fe: frontend to be attached
|
||||
* @config: pointer to &struct helene_config with tuner configuration.
|
||||
* @i2c: i2c adapter to use.
|
||||
*
|
||||
* return: FE pointer on success, NULL on failure.
|
||||
*/
|
||||
extern struct dvb_frontend *helene_attach(struct dvb_frontend *fe,
|
||||
const struct helene_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
|
||||
/**
|
||||
* Attach a helene tuner (satellite standards)
|
||||
*
|
||||
* @fe: frontend to be attached
|
||||
* @config: pointer to &struct helene_config with tuner configuration.
|
||||
* @i2c: i2c adapter to use.
|
||||
*
|
||||
* return: FE pointer on success, NULL on failure.
|
||||
*/
|
||||
extern struct dvb_frontend *helene_attach_s(struct dvb_frontend *fe,
|
||||
const struct helene_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
#else
|
||||
static inline struct dvb_frontend *helene_attach(struct dvb_frontend *fe,
|
||||
const struct helene_config *config,
|
||||
@@ -59,13 +82,6 @@ static inline struct dvb_frontend *helene_attach(struct dvb_frontend *fe,
|
||||
pr_warn("%s: driver disabled by Kconfig\n", __func__);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_HELENE)
|
||||
extern struct dvb_frontend *helene_attach_s(struct dvb_frontend *fe,
|
||||
const struct helene_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
#else
|
||||
static inline struct dvb_frontend *helene_attach_s(struct dvb_frontend *fe,
|
||||
const struct helene_config *config,
|
||||
struct i2c_adapter *i2c)
|
||||
|
||||
@@ -41,6 +41,15 @@ struct horus3a_config {
|
||||
};
|
||||
|
||||
#if IS_REACHABLE(CONFIG_DVB_HORUS3A)
|
||||
/**
|
||||
* Attach a horus3a tuner
|
||||
*
|
||||
* @fe: frontend to be attached
|
||||
* @config: pointer to &struct helene_config with tuner configuration.
|
||||
* @i2c: i2c adapter to use.
|
||||
*
|
||||
* return: FE pointer on success, NULL on failure.
|
||||
*/
|
||||
extern struct dvb_frontend *horus3a_attach(struct dvb_frontend *fe,
|
||||
const struct horus3a_config *config,
|
||||
struct i2c_adapter *i2c);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
/*
|
||||
* Driver for Sharp IX2505V (marked B0017) DVB-S silicon tuner
|
||||
*
|
||||
* Copyright (C) 2010 Malcolm Priestley
|
||||
@@ -36,7 +36,7 @@ struct ix2505v_state {
|
||||
u32 frequency;
|
||||
};
|
||||
|
||||
/**
|
||||
/*
|
||||
* Data read format of the Sharp IX2505V B0017
|
||||
*
|
||||
* byte1: 1 | 1 | 0 | 0 | 0 | MA1 | MA0 | 1
|
||||
@@ -99,7 +99,7 @@ static void ix2505v_release(struct dvb_frontend *fe)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Data write format of the Sharp IX2505V B0017
|
||||
*
|
||||
* byte1: 1 | 1 | 0 | 0 | 0 | 0(MA1)| 0(MA0)| 0
|
||||
|
||||
Loaded 20 of 269 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user