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

TOMOYO Linux Cross Reference
Linux/sound/pci/oxygen/xonar_dg.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/pci/oxygen/xonar_dg.h (Architecture m68k) and /sound/pci/oxygen/xonar_dg.h (Architecture ppc)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef XONAR_DG_H_INCLUDED                         2 #ifndef XONAR_DG_H_INCLUDED
  3 #define XONAR_DG_H_INCLUDED                         3 #define XONAR_DG_H_INCLUDED
  4                                                     4 
  5 #include "oxygen.h"                                 5 #include "oxygen.h"
  6                                                     6 
  7 #define GPIO_MAGIC              0x0008              7 #define GPIO_MAGIC              0x0008
  8 #define GPIO_HP_DETECT          0x0010              8 #define GPIO_HP_DETECT          0x0010
  9 #define GPIO_INPUT_ROUTE        0x0060              9 #define GPIO_INPUT_ROUTE        0x0060
 10 #define GPIO_HP_REAR            0x0080             10 #define GPIO_HP_REAR            0x0080
 11 #define GPIO_OUTPUT_ENABLE      0x0100             11 #define GPIO_OUTPUT_ENABLE      0x0100
 12                                                    12 
 13 #define CAPTURE_SRC_MIC         0                  13 #define CAPTURE_SRC_MIC         0
 14 #define CAPTURE_SRC_FP_MIC      1                  14 #define CAPTURE_SRC_FP_MIC      1
 15 #define CAPTURE_SRC_LINE        2                  15 #define CAPTURE_SRC_LINE        2
 16 #define CAPTURE_SRC_AUX         3                  16 #define CAPTURE_SRC_AUX         3
 17                                                    17 
 18 #define PLAYBACK_DST_HP         0                  18 #define PLAYBACK_DST_HP         0
 19 #define PLAYBACK_DST_HP_FP      1                  19 #define PLAYBACK_DST_HP_FP      1
 20 #define PLAYBACK_DST_MULTICH    2                  20 #define PLAYBACK_DST_MULTICH    2
 21                                                    21 
 22 enum cs4245_shadow_operation {                     22 enum cs4245_shadow_operation {
 23         CS4245_SAVE_TO_SHADOW,                     23         CS4245_SAVE_TO_SHADOW,
 24         CS4245_LOAD_FROM_SHADOW                    24         CS4245_LOAD_FROM_SHADOW
 25 };                                                 25 };
 26                                                    26 
 27 struct dg {                                        27 struct dg {
 28         /* shadow copy of the CS4245 register      28         /* shadow copy of the CS4245 register space */
 29         unsigned char cs4245_shadow[17];           29         unsigned char cs4245_shadow[17];
 30         /* output select: headphone/speakers *     30         /* output select: headphone/speakers */
 31         unsigned char output_sel;                  31         unsigned char output_sel;
 32         /* volumes for all capture sources */      32         /* volumes for all capture sources */
 33         char input_vol[4][2];                      33         char input_vol[4][2];
 34         /* input select: mic/fp mic/line/aux *     34         /* input select: mic/fp mic/line/aux */
 35         unsigned char input_sel;                   35         unsigned char input_sel;
 36 };                                                 36 };
 37                                                    37 
 38 /* Xonar DG control routines */                    38 /* Xonar DG control routines */
 39 int cs4245_write_spi(struct oxygen *chip, u8 r     39 int cs4245_write_spi(struct oxygen *chip, u8 reg);
 40 int cs4245_read_spi(struct oxygen *chip, u8 re     40 int cs4245_read_spi(struct oxygen *chip, u8 reg);
 41 int cs4245_shadow_control(struct oxygen *chip,     41 int cs4245_shadow_control(struct oxygen *chip, enum cs4245_shadow_operation op);
 42 void dg_init(struct oxygen *chip);                 42 void dg_init(struct oxygen *chip);
 43 void set_cs4245_dac_params(struct oxygen *chip     43 void set_cs4245_dac_params(struct oxygen *chip,
 44                                   struct snd_p     44                                   struct snd_pcm_hw_params *params);
 45 void set_cs4245_adc_params(struct oxygen *chip     45 void set_cs4245_adc_params(struct oxygen *chip,
 46                                   struct snd_p     46                                   struct snd_pcm_hw_params *params);
 47 unsigned int adjust_dg_dac_routing(struct oxyg     47 unsigned int adjust_dg_dac_routing(struct oxygen *chip,
 48                                           unsi     48                                           unsigned int play_routing);
 49 void dump_cs4245_registers(struct oxygen *chip     49 void dump_cs4245_registers(struct oxygen *chip,
 50                                 struct snd_inf     50                                 struct snd_info_buffer *buffer);
 51 void dg_suspend(struct oxygen *chip);              51 void dg_suspend(struct oxygen *chip);
 52 void dg_resume(struct oxygen *chip);               52 void dg_resume(struct oxygen *chip);
 53 void dg_cleanup(struct oxygen *chip);              53 void dg_cleanup(struct oxygen *chip);
 54                                                    54 
 55 extern const struct oxygen_model model_xonar_d     55 extern const struct oxygen_model model_xonar_dg;
 56                                                    56 
 57 #endif                                             57 #endif
 58                                                    58 

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