V4L/DVB (9622): tvaudio: Improve comments and remove a unneeded prototype
Some comments are not clear enough. Improve it to allow a better understanding of the driver behavior. While there, remove an unneeded struct prototype. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
494264379d
commit
41f5230f3f
1 changed files with 7 additions and 12 deletions
|
@ -106,7 +106,6 @@ struct CHIPDESC {
|
||||||
int inputmute;
|
int inputmute;
|
||||||
int inputmask;
|
int inputmask;
|
||||||
};
|
};
|
||||||
static struct CHIPDESC chiplist[];
|
|
||||||
|
|
||||||
/* current state of the chip */
|
/* current state of the chip */
|
||||||
struct CHIPSTATE {
|
struct CHIPSTATE {
|
||||||
|
@ -1856,11 +1855,13 @@ static int chip_command(struct i2c_client *client,
|
||||||
case VIDIOC_S_FREQUENCY:
|
case VIDIOC_S_FREQUENCY:
|
||||||
chip->mode = 0; /* automatic */
|
chip->mode = 0; /* automatic */
|
||||||
|
|
||||||
/* For chips that provide getmode, setmode and checkmode,
|
/* For chips that provide getmode and setmode, and doesn't
|
||||||
a kthread is created to automatically to set the audio
|
automatically follows the stereo carrier, a kthread is
|
||||||
standard. In this case, start with MONO and wait 2 seconds
|
created to set the audio standard. In this case, when then
|
||||||
for the decoding to stablize. Then, run kthread to change
|
the video channel is changed, tvaudio starts on MONO mode.
|
||||||
to stereo, if carrier detected.
|
After waiting for 2 seconds, the kernel thread is called,
|
||||||
|
to follow whatever audio standard is pointed by the
|
||||||
|
audio carrier.
|
||||||
*/
|
*/
|
||||||
if (chip->thread) {
|
if (chip->thread) {
|
||||||
desc->setmode(chip,V4L2_TUNER_MODE_MONO);
|
desc->setmode(chip,V4L2_TUNER_MODE_MONO);
|
||||||
|
@ -1905,9 +1906,3 @@ static struct v4l2_i2c_driver_data v4l2_i2c_data = {
|
||||||
.legacy_probe = chip_legacy_probe,
|
.legacy_probe = chip_legacy_probe,
|
||||||
.id_table = chip_id,
|
.id_table = chip_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
* Local variables:
|
|
||||||
* c-basic-offset: 8
|
|
||||||
* End:
|
|
||||||
*/
|
|
||||||
|
|
Reference in a new issue