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

TOMOYO Linux Cross Reference
Linux/sound/soc/codecs/rt1316-sdw.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/soc/codecs/rt1316-sdw.h (Version linux-6.12-rc7) and /sound/soc/codecs/rt1316-sdw.h (Version linux-5.18.19)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*                                                  2 /*
  3  * rt1316-sdw.h -- RT1316 SDCA ALSA SoC audio       3  * rt1316-sdw.h -- RT1316 SDCA ALSA SoC audio driver header
  4  *                                                  4  *
  5  * Copyright(c) 2021 Realtek Semiconductor Cor      5  * Copyright(c) 2021 Realtek Semiconductor Corp.
  6  */                                                 6  */
  7                                                     7 
  8 #ifndef __RT1316_SDW_H__                            8 #ifndef __RT1316_SDW_H__
  9 #define __RT1316_SDW_H__                            9 #define __RT1316_SDW_H__
 10                                                    10 
 11 #include <linux/regmap.h>                          11 #include <linux/regmap.h>
 12 #include <linux/soundwire/sdw.h>                   12 #include <linux/soundwire/sdw.h>
 13 #include <linux/soundwire/sdw_type.h>              13 #include <linux/soundwire/sdw_type.h>
 14 #include <linux/soundwire/sdw_registers.h>         14 #include <linux/soundwire/sdw_registers.h>
 15 #include <sound/soc.h>                             15 #include <sound/soc.h>
 16                                                    16 
 17 /* RT1316 SDCA Control - function number */        17 /* RT1316 SDCA Control - function number */
 18 #define FUNC_NUM_SMART_AMP 0x04                    18 #define FUNC_NUM_SMART_AMP 0x04
 19                                                    19 
 20 /* RT1316 SDCA entity */                           20 /* RT1316 SDCA entity */
 21 #define RT1316_SDCA_ENT_PDE23 0x31                 21 #define RT1316_SDCA_ENT_PDE23 0x31
 22 #define RT1316_SDCA_ENT_PDE27 0x32                 22 #define RT1316_SDCA_ENT_PDE27 0x32
 23 #define RT1316_SDCA_ENT_PDE22 0x33                 23 #define RT1316_SDCA_ENT_PDE22 0x33
 24 #define RT1316_SDCA_ENT_PDE24 0x34                 24 #define RT1316_SDCA_ENT_PDE24 0x34
 25 #define RT1316_SDCA_ENT_XU24 0x24                  25 #define RT1316_SDCA_ENT_XU24 0x24
 26 #define RT1316_SDCA_ENT_FU21 0x03                  26 #define RT1316_SDCA_ENT_FU21 0x03
 27 #define RT1316_SDCA_ENT_UDMPU21 0x02               27 #define RT1316_SDCA_ENT_UDMPU21 0x02
 28                                                    28 
 29 /* RT1316 SDCA control */                          29 /* RT1316 SDCA control */
 30 #define RT1316_SDCA_CTL_SAMPLE_FREQ_INDEX 0x10     30 #define RT1316_SDCA_CTL_SAMPLE_FREQ_INDEX 0x10
 31 #define RT1316_SDCA_CTL_REQ_POWER_STATE 0x01       31 #define RT1316_SDCA_CTL_REQ_POWER_STATE 0x01
 32 #define RT1316_SDCA_CTL_BYPASS 0x01                32 #define RT1316_SDCA_CTL_BYPASS 0x01
 33 #define RT1316_SDCA_CTL_FU_MUTE 0x01               33 #define RT1316_SDCA_CTL_FU_MUTE 0x01
 34 #define RT1316_SDCA_CTL_FU_VOLUME 0x02             34 #define RT1316_SDCA_CTL_FU_VOLUME 0x02
 35 #define RT1316_SDCA_CTL_UDMPU_CLUSTER 0x10         35 #define RT1316_SDCA_CTL_UDMPU_CLUSTER 0x10
 36                                                    36 
 37 /* RT1316 SDCA channel */                          37 /* RT1316 SDCA channel */
 38 #define CH_L 0x01                                  38 #define CH_L 0x01
 39 #define CH_R 0x02                                  39 #define CH_R 0x02
 40                                                    40 
 41 struct rt1316_sdw_priv {                           41 struct rt1316_sdw_priv {
 42         struct snd_soc_component *component;       42         struct snd_soc_component *component;
 43         struct regmap *regmap;                     43         struct regmap *regmap;
 44         struct sdw_slave *sdw_slave;               44         struct sdw_slave *sdw_slave;
                                                   >>  45         enum sdw_slave_status status;
 45         struct sdw_bus_params params;              46         struct sdw_bus_params params;
 46         bool hw_init;                              47         bool hw_init;
 47         bool first_hw_init;                        48         bool first_hw_init;
 48         unsigned char *bq_params;              !!  49 };
 49         unsigned int bq_params_cnt;            !!  50 
                                                   >>  51 struct sdw_stream_data {
                                                   >>  52         struct sdw_stream_runtime *sdw_stream;
 50 };                                                 53 };
 51                                                    54 
 52 #endif /* __RT1316_SDW_H__ */                      55 #endif /* __RT1316_SDW_H__ */
 53                                                    56 

~ [ 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