psc724.c (77b0b254af72add59c8125cd8799f390bc508f2b) | psc724.c (a2af050f8df6eeec29818639859f14eb237d6957) |
---|---|
1/* 2 * ALSA driver for ICEnsemble VT1724 (Envy24HT) 3 * 4 * Lowlevel functions for Philips PSC724 Ultimate Edge 5 * 6 * Copyright (c) 2012 Ondrej Zary <linux@rainbow-software.org> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 240 unchanged lines hidden (view full) --- 249 struct psc724_spec *spec = ice->spec; 250 251 return spec->jack_detect; 252} 253 254/* mixer controls */ 255 256struct psc724_control { | 1/* 2 * ALSA driver for ICEnsemble VT1724 (Envy24HT) 3 * 4 * Lowlevel functions for Philips PSC724 Ultimate Edge 5 * 6 * Copyright (c) 2012 Ondrej Zary <linux@rainbow-software.org> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 240 unchanged lines hidden (view full) --- 249 struct psc724_spec *spec = ice->spec; 250 251 return spec->jack_detect; 252} 253 254/* mixer controls */ 255 256struct psc724_control { |
257 char *name; | 257 const char *name; |
258 void (*set)(struct snd_ice1712 *ice, bool on); 259 bool (*get)(struct snd_ice1712 *ice); 260}; 261 262static const struct psc724_control psc724_cont[] = { 263 { 264 .name = "Master Speakers Playback Switch", 265 .set = psc724_set_master_switch, --- 23 unchanged lines hidden (view full) --- 289 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 290 int n = kcontrol->private_value; 291 292 psc724_cont[n].set(ice, ucontrol->value.integer.value[0]); 293 294 return 0; 295} 296 | 258 void (*set)(struct snd_ice1712 *ice, bool on); 259 bool (*get)(struct snd_ice1712 *ice); 260}; 261 262static const struct psc724_control psc724_cont[] = { 263 { 264 .name = "Master Speakers Playback Switch", 265 .set = psc724_set_master_switch, --- 23 unchanged lines hidden (view full) --- 289 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); 290 int n = kcontrol->private_value; 291 292 psc724_cont[n].set(ice, ucontrol->value.integer.value[0]); 293 294 return 0; 295} 296 |
297static char *front_volume = "Front Playback Volume"; 298static char *front_switch = "Front Playback Switch"; 299static char *front_zc = "Front Zero Cross Detect Playback Switch"; 300static char *front_izd = "Front Infinite Zero Detect Playback Switch"; 301static char *front_phase = "Front Phase Invert Playback Switch"; 302static char *front_deemph = "Front Deemphasis Playback Switch"; 303static char *ain1_switch = "Line Capture Switch"; 304static char *ain2_switch = "CD Capture Switch"; 305static char *ain3_switch = "AUX Capture Switch"; 306static char *ain4_switch = "Front Mic Capture Switch"; 307static char *ain5_switch = "Rear Mic Capture Switch"; 308static char *rear_volume = "Surround Playback Volume"; 309static char *clfe_volume = "CLFE Playback Volume"; 310static char *rear_switch = "Surround Playback Switch"; 311static char *clfe_switch = "CLFE Playback Switch"; 312static char *rear_phase = "Surround Phase Invert Playback Switch"; 313static char *clfe_phase = "CLFE Phase Invert Playback Switch"; 314static char *rear_deemph = "Surround Deemphasis Playback Switch"; 315static char *clfe_deemph = "CLFE Deemphasis Playback Switch"; 316static char *rear_clfe_izd = "Rear Infinite Zero Detect Playback Switch"; 317static char *rear_clfe_zc = "Rear Zero Cross Detect Playback Switch"; | 297static const char *front_volume = "Front Playback Volume"; 298static const char *front_switch = "Front Playback Switch"; 299static const char *front_zc = "Front Zero Cross Detect Playback Switch"; 300static const char *front_izd = "Front Infinite Zero Detect Playback Switch"; 301static const char *front_phase = "Front Phase Invert Playback Switch"; 302static const char *front_deemph = "Front Deemphasis Playback Switch"; 303static const char *ain1_switch = "Line Capture Switch"; 304static const char *ain2_switch = "CD Capture Switch"; 305static const char *ain3_switch = "AUX Capture Switch"; 306static const char *ain4_switch = "Front Mic Capture Switch"; 307static const char *ain5_switch = "Rear Mic Capture Switch"; 308static const char *rear_volume = "Surround Playback Volume"; 309static const char *clfe_volume = "CLFE Playback Volume"; 310static const char *rear_switch = "Surround Playback Switch"; 311static const char *clfe_switch = "CLFE Playback Switch"; 312static const char *rear_phase = "Surround Phase Invert Playback Switch"; 313static const char *clfe_phase = "CLFE Phase Invert Playback Switch"; 314static const char *rear_deemph = "Surround Deemphasis Playback Switch"; 315static const char *clfe_deemph = "CLFE Deemphasis Playback Switch"; 316static const char *rear_clfe_izd = "Rear Infinite Zero Detect Playback Switch"; 317static const char *rear_clfe_zc = "Rear Zero Cross Detect Playback Switch"; |
318 319static int __devinit psc724_add_controls(struct snd_ice1712 *ice) 320{ 321 struct snd_kcontrol_new cont; 322 struct snd_kcontrol *ctl; 323 int err, i; 324 struct psc724_spec *spec = ice->spec; 325 --- 139 unchanged lines hidden --- | 318 319static int __devinit psc724_add_controls(struct snd_ice1712 *ice) 320{ 321 struct snd_kcontrol_new cont; 322 struct snd_kcontrol *ctl; 323 int err, i; 324 struct psc724_spec *spec = ice->spec; 325 --- 139 unchanged lines hidden --- |