~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/media/drv-intf/tea575x.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/media/drv-intf/tea575x.h (Version linux-6.11.5) and /include/media/drv-intf/tea575x.h (Version linux-4.13.16)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 #ifndef __SOUND_TEA575X_TUNER_H                     1 #ifndef __SOUND_TEA575X_TUNER_H
  3 #define __SOUND_TEA575X_TUNER_H                     2 #define __SOUND_TEA575X_TUNER_H
  4                                                     3 
  5 /*                                                  4 /*
  6  *   ALSA driver for TEA5757/5759 Philips AM/F      5  *   ALSA driver for TEA5757/5759 Philips AM/FM tuner chips
  7  *                                                  6  *
  8  *      Copyright (c) 2004 Jaroslav Kysela <pe      7  *      Copyright (c) 2004 Jaroslav Kysela <perex@perex.cz>
                                                   >>   8  *
                                                   >>   9  *   This program is free software; you can redistribute it and/or modify
                                                   >>  10  *   it under the terms of the GNU General Public License as published by
                                                   >>  11  *   the Free Software Foundation; either version 2 of the License, or
                                                   >>  12  *   (at your option) any later version.
                                                   >>  13  *
                                                   >>  14  *   This program is distributed in the hope that it will be useful,
                                                   >>  15  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                                                   >>  16  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                                                   >>  17  *   GNU General Public License for more details.
                                                   >>  18  *
  9  */                                                19  */
 10                                                    20 
 11 #include <linux/videodev2.h>                       21 #include <linux/videodev2.h>
 12 #include <media/v4l2-ctrls.h>                      22 #include <media/v4l2-ctrls.h>
 13 #include <media/v4l2-dev.h>                        23 #include <media/v4l2-dev.h>
 14 #include <media/v4l2-device.h>                     24 #include <media/v4l2-device.h>
 15                                                    25 
 16 #define TEA575X_FMIF    10700                      26 #define TEA575X_FMIF    10700
 17 #define TEA575X_AMIF      450                      27 #define TEA575X_AMIF      450
 18                                                    28 
 19 #define TEA575X_DATA    (1 << 0)                   29 #define TEA575X_DATA    (1 << 0)
 20 #define TEA575X_CLK     (1 << 1)                   30 #define TEA575X_CLK     (1 << 1)
 21 #define TEA575X_WREN    (1 << 2)                   31 #define TEA575X_WREN    (1 << 2)
 22 #define TEA575X_MOST    (1 << 3)                   32 #define TEA575X_MOST    (1 << 3)
 23                                                    33 
 24 struct snd_tea575x;                                34 struct snd_tea575x;
 25                                                    35 
 26 struct snd_tea575x_ops {                           36 struct snd_tea575x_ops {
 27         /* Drivers using snd_tea575x must eith     37         /* Drivers using snd_tea575x must either define read_ and write_val */
 28         void (*write_val)(struct snd_tea575x *     38         void (*write_val)(struct snd_tea575x *tea, u32 val);
 29         u32 (*read_val)(struct snd_tea575x *te     39         u32 (*read_val)(struct snd_tea575x *tea);
 30         /* Or define the 3 pin functions */        40         /* Or define the 3 pin functions */
 31         void (*set_pins)(struct snd_tea575x *t     41         void (*set_pins)(struct snd_tea575x *tea, u8 pins);
 32         u8 (*get_pins)(struct snd_tea575x *tea     42         u8 (*get_pins)(struct snd_tea575x *tea);
 33         void (*set_direction)(struct snd_tea57     43         void (*set_direction)(struct snd_tea575x *tea, bool output);
 34 };                                                 44 };
 35                                                    45 
 36 struct snd_tea575x {                               46 struct snd_tea575x {
 37         struct v4l2_device *v4l2_dev;              47         struct v4l2_device *v4l2_dev;
 38         struct v4l2_file_operations fops;          48         struct v4l2_file_operations fops;
 39         struct video_device vd;         /* vid     49         struct video_device vd;         /* video device */
 40         int radio_nr;                   /* rad     50         int radio_nr;                   /* radio_nr */
 41         bool tea5759;                   /* 575     51         bool tea5759;                   /* 5759 chip is present */
 42         bool has_am;                    /* Dev     52         bool has_am;                    /* Device can tune to AM freqs */
 43         bool cannot_read_data;          /* Dev     53         bool cannot_read_data;          /* Device cannot read the data pin */
 44         bool cannot_mute;               /* Dev     54         bool cannot_mute;               /* Device cannot mute */
 45         bool mute;                      /* Dev     55         bool mute;                      /* Device is muted? */
 46         bool stereo;                    /* rec     56         bool stereo;                    /* receiving stereo */
 47         bool tuned;                     /* tun     57         bool tuned;                     /* tuned to a station */
 48         unsigned int val;               /* hw      58         unsigned int val;               /* hw value */
 49         u32 band;                       /* 0:      59         u32 band;                       /* 0: FM, 1: FM-Japan, 2: AM */
 50         u32 freq;                       /* fre     60         u32 freq;                       /* frequency */
 51         struct mutex mutex;                        61         struct mutex mutex;
 52         const struct snd_tea575x_ops *ops;         62         const struct snd_tea575x_ops *ops;
 53         void *private_data;                        63         void *private_data;
 54         u8 card[32];                               64         u8 card[32];
 55         u8 bus_info[32];                           65         u8 bus_info[32];
 56         struct v4l2_ctrl_handler ctrl_handler;     66         struct v4l2_ctrl_handler ctrl_handler;
 57         int (*ext_init)(struct snd_tea575x *te     67         int (*ext_init)(struct snd_tea575x *tea);
 58 };                                                 68 };
 59                                                    69 
 60 int snd_tea575x_enum_freq_bands(struct snd_tea     70 int snd_tea575x_enum_freq_bands(struct snd_tea575x *tea,
 61                                         struct     71                                         struct v4l2_frequency_band *band);
 62 int snd_tea575x_g_tuner(struct snd_tea575x *te     72 int snd_tea575x_g_tuner(struct snd_tea575x *tea, struct v4l2_tuner *v);
 63 int snd_tea575x_s_hw_freq_seek(struct file *fi     73 int snd_tea575x_s_hw_freq_seek(struct file *file, struct snd_tea575x *tea,
 64                                 const struct v     74                                 const struct v4l2_hw_freq_seek *a);
 65 int snd_tea575x_hw_init(struct snd_tea575x *te     75 int snd_tea575x_hw_init(struct snd_tea575x *tea);
 66 int snd_tea575x_init(struct snd_tea575x *tea,      76 int snd_tea575x_init(struct snd_tea575x *tea, struct module *owner);
 67 void snd_tea575x_exit(struct snd_tea575x *tea)     77 void snd_tea575x_exit(struct snd_tea575x *tea);
 68 void snd_tea575x_set_freq(struct snd_tea575x *     78 void snd_tea575x_set_freq(struct snd_tea575x *tea);
 69                                                    79 
 70 #endif /* __SOUND_TEA575X_TUNER_H */               80 #endif /* __SOUND_TEA575X_TUNER_H */
 71                                                    81 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php