wm8990.c (beb8962210f592bd285ed77559ac4458cc26f774) | wm8990.c (dfd0edda1fb3cd7a7cdde56467d718b1e49e32d5) |
---|---|
1/* 2 * wm8990.c -- WM8990 ALSA Soc Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics PLC. 5 * Author: Liam Girdwood <lrg@slimlogic.co.uk> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 404 unchanged lines hidden (view full) --- 413 } 414 break; 415 } 416 417 return ret; 418} 419 420/* INMIX dB values */ | 1/* 2 * wm8990.c -- WM8990 ALSA Soc Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics PLC. 5 * Author: Liam Girdwood <lrg@slimlogic.co.uk> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 404 unchanged lines hidden (view full) --- 413 } 414 break; 415 } 416 417 return ret; 418} 419 420/* INMIX dB values */ |
421static const unsigned int in_mix_tlv[] = { 422 TLV_DB_RANGE_HEAD(1), 423 0, 7, TLV_DB_SCALE_ITEM(-1200, 600, 0), 424}; | 421static const DECLARE_TLV_DB_SCALE(in_mix_tlv, -1200, 600, 0); |
425 426/* Left In PGA Connections */ 427static const struct snd_kcontrol_new wm8990_dapm_lin12_pga_controls[] = { 428SOC_DAPM_SINGLE("LIN1 Switch", WM8990_INPUT_MIXER2, WM8990_LMN1_BIT, 1, 0), 429SOC_DAPM_SINGLE("LIN2 Switch", WM8990_INPUT_MIXER2, WM8990_LMP2_BIT, 1, 0), 430}; 431 432static const struct snd_kcontrol_new wm8990_dapm_lin34_pga_controls[] = { --- 918 unchanged lines hidden (view full) --- 1351 { "wm8990", 0 }, 1352 { } 1353}; 1354MODULE_DEVICE_TABLE(i2c, wm8990_i2c_id); 1355 1356static struct i2c_driver wm8990_i2c_driver = { 1357 .driver = { 1358 .name = "wm8990", | 422 423/* Left In PGA Connections */ 424static const struct snd_kcontrol_new wm8990_dapm_lin12_pga_controls[] = { 425SOC_DAPM_SINGLE("LIN1 Switch", WM8990_INPUT_MIXER2, WM8990_LMN1_BIT, 1, 0), 426SOC_DAPM_SINGLE("LIN2 Switch", WM8990_INPUT_MIXER2, WM8990_LMP2_BIT, 1, 0), 427}; 428 429static const struct snd_kcontrol_new wm8990_dapm_lin34_pga_controls[] = { --- 918 unchanged lines hidden (view full) --- 1348 { "wm8990", 0 }, 1349 { } 1350}; 1351MODULE_DEVICE_TABLE(i2c, wm8990_i2c_id); 1352 1353static struct i2c_driver wm8990_i2c_driver = { 1354 .driver = { 1355 .name = "wm8990", |
1356 .owner = THIS_MODULE, |
|
1359 }, 1360 .probe = wm8990_i2c_probe, 1361 .remove = wm8990_i2c_remove, 1362 .id_table = wm8990_i2c_id, 1363}; 1364 1365module_i2c_driver(wm8990_i2c_driver); 1366 1367MODULE_DESCRIPTION("ASoC WM8990 driver"); 1368MODULE_AUTHOR("Liam Girdwood"); 1369MODULE_LICENSE("GPL"); | 1357 }, 1358 .probe = wm8990_i2c_probe, 1359 .remove = wm8990_i2c_remove, 1360 .id_table = wm8990_i2c_id, 1361}; 1362 1363module_i2c_driver(wm8990_i2c_driver); 1364 1365MODULE_DESCRIPTION("ASoC WM8990 driver"); 1366MODULE_AUTHOR("Liam Girdwood"); 1367MODULE_LICENSE("GPL"); |