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

TOMOYO Linux Cross Reference
Linux/sound/pci/ice1712/vt1720_mobo.c

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/ice1712/vt1720_mobo.c (Architecture alpha) and /sound/pci/ice1712/vt1720_mobo.c (Architecture mips)


  1 // SPDX-License-Identifier: GPL-2.0-or-later        1 // SPDX-License-Identifier: GPL-2.0-or-later
  2 /*                                                  2 /*
  3  *   ALSA driver for VT1720/VT1724 (Envy24PT/E      3  *   ALSA driver for VT1720/VT1724 (Envy24PT/Envy24HT)
  4  *                                                  4  *
  5  *   Lowlevel functions for VT1720-based mothe      5  *   Lowlevel functions for VT1720-based motherboards
  6  *                                                  6  *
  7  *      Copyright (c) 2004 Takashi Iwai <tiwai      7  *      Copyright (c) 2004 Takashi Iwai <tiwai@suse.de>
  8  */                                                 8  */      
  9                                                     9 
 10 #include <linux/delay.h>                           10 #include <linux/delay.h>
 11 #include <linux/interrupt.h>                       11 #include <linux/interrupt.h>
 12 #include <linux/init.h>                            12 #include <linux/init.h>
 13 #include <sound/core.h>                            13 #include <sound/core.h>
 14                                                    14 
 15 #include "ice1712.h"                               15 #include "ice1712.h"
 16 #include "envy24ht.h"                              16 #include "envy24ht.h"
 17 #include "vt1720_mobo.h"                           17 #include "vt1720_mobo.h"
 18                                                    18 
 19                                                    19 
 20 static int k8x800_init(struct snd_ice1712 *ice     20 static int k8x800_init(struct snd_ice1712 *ice)
 21 {                                                  21 {
 22         ice->vt1720 = 1;                           22         ice->vt1720 = 1;
 23                                                    23 
 24         /* VT1616 codec */                         24         /* VT1616 codec */
 25         ice->num_total_dacs = 6;                   25         ice->num_total_dacs = 6;
 26         ice->num_total_adcs = 2;                   26         ice->num_total_adcs = 2;
 27                                                    27 
 28         /* WM8728 codec */                         28         /* WM8728 codec */
 29         /* FIXME: TODO */                          29         /* FIXME: TODO */
 30                                                    30 
 31         return 0;                                  31         return 0;
 32 }                                                  32 }
 33                                                    33 
 34 static int k8x800_add_controls(struct snd_ice1     34 static int k8x800_add_controls(struct snd_ice1712 *ice)
 35 {                                                  35 {
 36         /* FIXME: needs some quirks for VT1616     36         /* FIXME: needs some quirks for VT1616? */
 37         return 0;                                  37         return 0;
 38 }                                                  38 }
 39                                                    39 
 40 /* EEPROM image */                                 40 /* EEPROM image */
 41                                                    41 
 42 static const unsigned char k8x800_eeprom[] = {     42 static const unsigned char k8x800_eeprom[] = {
 43         [ICE_EEP2_SYSCONF]     = 0x01,  /* clo     43         [ICE_EEP2_SYSCONF]     = 0x01,  /* clock 256, 1ADC, 2DACs */
 44         [ICE_EEP2_ACLINK]      = 0x02,  /* ACL     44         [ICE_EEP2_ACLINK]      = 0x02,  /* ACLINK, packed */
 45         [ICE_EEP2_I2S]         = 0x00,  /* - *     45         [ICE_EEP2_I2S]         = 0x00,  /* - */
 46         [ICE_EEP2_SPDIF]       = 0x00,  /* - *     46         [ICE_EEP2_SPDIF]       = 0x00,  /* - */
 47         [ICE_EEP2_GPIO_DIR]    = 0xff,             47         [ICE_EEP2_GPIO_DIR]    = 0xff,
 48         [ICE_EEP2_GPIO_DIR1]   = 0xff,             48         [ICE_EEP2_GPIO_DIR1]   = 0xff,
 49         [ICE_EEP2_GPIO_DIR2]   = 0x00,  /* - *     49         [ICE_EEP2_GPIO_DIR2]   = 0x00,  /* - */
 50         [ICE_EEP2_GPIO_MASK]   = 0xff,             50         [ICE_EEP2_GPIO_MASK]   = 0xff,
 51         [ICE_EEP2_GPIO_MASK1]  = 0xff,             51         [ICE_EEP2_GPIO_MASK1]  = 0xff,
 52         [ICE_EEP2_GPIO_MASK2]  = 0x00,  /* - *     52         [ICE_EEP2_GPIO_MASK2]  = 0x00,  /* - */
 53         [ICE_EEP2_GPIO_STATE]  = 0x00,             53         [ICE_EEP2_GPIO_STATE]  = 0x00,
 54         [ICE_EEP2_GPIO_STATE1] = 0x00,             54         [ICE_EEP2_GPIO_STATE1] = 0x00,
 55         [ICE_EEP2_GPIO_STATE2] = 0x00,  /* - *     55         [ICE_EEP2_GPIO_STATE2] = 0x00,  /* - */
 56 };                                                 56 };
 57                                                    57 
 58 static const unsigned char sn25p_eeprom[] = {      58 static const unsigned char sn25p_eeprom[] = {
 59         [ICE_EEP2_SYSCONF]     = 0x01,  /* clo     59         [ICE_EEP2_SYSCONF]     = 0x01,  /* clock 256, 1ADC, 2DACs */
 60         [ICE_EEP2_ACLINK]      = 0x02,  /* ACL     60         [ICE_EEP2_ACLINK]      = 0x02,  /* ACLINK, packed */
 61         [ICE_EEP2_I2S]         = 0x00,  /* - *     61         [ICE_EEP2_I2S]         = 0x00,  /* - */
 62         [ICE_EEP2_SPDIF]       = 0x41,  /* - *     62         [ICE_EEP2_SPDIF]       = 0x41,  /* - */
 63         [ICE_EEP2_GPIO_DIR]    = 0xff,             63         [ICE_EEP2_GPIO_DIR]    = 0xff,
 64         [ICE_EEP2_GPIO_DIR1]   = 0xff,             64         [ICE_EEP2_GPIO_DIR1]   = 0xff,
 65         [ICE_EEP2_GPIO_DIR2]   = 0x00,  /* - *     65         [ICE_EEP2_GPIO_DIR2]   = 0x00,  /* - */
 66         [ICE_EEP2_GPIO_MASK]   = 0xff,             66         [ICE_EEP2_GPIO_MASK]   = 0xff,
 67         [ICE_EEP2_GPIO_MASK1]  = 0xff,             67         [ICE_EEP2_GPIO_MASK1]  = 0xff,
 68         [ICE_EEP2_GPIO_MASK2]  = 0x00,  /* - *     68         [ICE_EEP2_GPIO_MASK2]  = 0x00,  /* - */
 69         [ICE_EEP2_GPIO_STATE]  = 0x00,             69         [ICE_EEP2_GPIO_STATE]  = 0x00,
 70         [ICE_EEP2_GPIO_STATE1] = 0x00,             70         [ICE_EEP2_GPIO_STATE1] = 0x00,
 71         [ICE_EEP2_GPIO_STATE2] = 0x00,  /* - *     71         [ICE_EEP2_GPIO_STATE2] = 0x00,  /* - */
 72 };                                                 72 };
 73                                                    73 
 74                                                    74 
 75 /* entry point */                                  75 /* entry point */
 76 struct snd_ice1712_card_info snd_vt1720_mobo_c     76 struct snd_ice1712_card_info snd_vt1720_mobo_cards[] = {
 77         {                                          77         {
 78                 .subvendor = VT1720_SUBDEVICE_     78                 .subvendor = VT1720_SUBDEVICE_K8X800,
 79                 .name = "Albatron K8X800 Pro I     79                 .name = "Albatron K8X800 Pro II",
 80                 .model = "k8x800",                 80                 .model = "k8x800",
 81                 .chip_init = k8x800_init,          81                 .chip_init = k8x800_init,
 82                 .build_controls = k8x800_add_c     82                 .build_controls = k8x800_add_controls,
 83                 .eeprom_size = sizeof(k8x800_e     83                 .eeprom_size = sizeof(k8x800_eeprom),
 84                 .eeprom_data = k8x800_eeprom,      84                 .eeprom_data = k8x800_eeprom,
 85         },                                         85         },
 86         {                                          86         {
 87                 .subvendor = VT1720_SUBDEVICE_     87                 .subvendor = VT1720_SUBDEVICE_ZNF3_150,
 88                 .name = "Chaintech ZNF3-150",      88                 .name = "Chaintech ZNF3-150",
 89                 /* identical with k8x800 */        89                 /* identical with k8x800 */
 90                 .chip_init = k8x800_init,          90                 .chip_init = k8x800_init,
 91                 .build_controls = k8x800_add_c     91                 .build_controls = k8x800_add_controls,
 92                 .eeprom_size = sizeof(k8x800_e     92                 .eeprom_size = sizeof(k8x800_eeprom),
 93                 .eeprom_data = k8x800_eeprom,      93                 .eeprom_data = k8x800_eeprom,
 94         },                                         94         },
 95         {                                          95         {
 96                 .subvendor = VT1720_SUBDEVICE_     96                 .subvendor = VT1720_SUBDEVICE_ZNF3_250,
 97                 .name = "Chaintech ZNF3-250",      97                 .name = "Chaintech ZNF3-250",
 98                 /* identical with k8x800 */        98                 /* identical with k8x800 */
 99                 .chip_init = k8x800_init,          99                 .chip_init = k8x800_init,
100                 .build_controls = k8x800_add_c    100                 .build_controls = k8x800_add_controls,
101                 .eeprom_size = sizeof(k8x800_e    101                 .eeprom_size = sizeof(k8x800_eeprom),
102                 .eeprom_data = k8x800_eeprom,     102                 .eeprom_data = k8x800_eeprom,
103         },                                        103         },
104         {                                         104         {
105                 .subvendor = VT1720_SUBDEVICE_    105                 .subvendor = VT1720_SUBDEVICE_9CJS,
106                 .name = "Chaintech 9CJS",         106                 .name = "Chaintech 9CJS",
107                 /* identical with k8x800 */       107                 /* identical with k8x800 */
108                 .chip_init = k8x800_init,         108                 .chip_init = k8x800_init,
109                 .build_controls = k8x800_add_c    109                 .build_controls = k8x800_add_controls,
110                 .eeprom_size = sizeof(k8x800_e    110                 .eeprom_size = sizeof(k8x800_eeprom),
111                 .eeprom_data = k8x800_eeprom,     111                 .eeprom_data = k8x800_eeprom,
112         },                                        112         },
113         {                                         113         {
114                 .subvendor = VT1720_SUBDEVICE_    114                 .subvendor = VT1720_SUBDEVICE_SN25P,
115                 .name = "Shuttle SN25P",          115                 .name = "Shuttle SN25P",
116                 .model = "sn25p",                 116                 .model = "sn25p",
117                 .chip_init = k8x800_init,         117                 .chip_init = k8x800_init,
118                 .build_controls = k8x800_add_c    118                 .build_controls = k8x800_add_controls,
119                 .eeprom_size = sizeof(k8x800_e    119                 .eeprom_size = sizeof(k8x800_eeprom),
120                 .eeprom_data = sn25p_eeprom,      120                 .eeprom_data = sn25p_eeprom,
121         },                                        121         },
122         { } /* terminator */                      122         { } /* terminator */
123 };                                                123 };
124                                                   124 
125                                                   125 

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