Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293186
b: refs/heads/master
c: 0865691
h: refs/heads/master
v: v3
  • Loading branch information
Liam Girdwood authored and Mark Brown committed Jan 20, 2012
1 parent 1d0dc2f commit 75b94c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b85fc90634972634a229aaa1c94f8c9a50fddbc
refs/heads/master: 08656910bb80882aaad739faea6dac3a0818f71c
13 changes: 13 additions & 0 deletions trunk/sound/soc/codecs/twl6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,19 @@ int twl6040_get_trim_value(struct snd_soc_codec *codec, enum twl6040_trim trim)
}
EXPORT_SYMBOL_GPL(twl6040_get_trim_value);

int twl6040_get_hs_step_size(struct snd_soc_codec *codec)
{
struct twl6040 *twl6040 = codec->control_data;

if (twl6040_get_revid(twl6040) < TWL6040_REV_ES1_2)
/* For ES under ES_1.3 HS step is 2 mV */
return 2;
else
/* For ES_1.3 HS step is 1 mV */
return 1;
}
EXPORT_SYMBOL_GPL(twl6040_get_hs_step_size);

static const struct snd_kcontrol_new twl6040_snd_controls[] = {
/* Capture gains */
SOC_DOUBLE_TLV("Capture Preamplifier Volume",
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/soc/codecs/twl6040.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ void twl6040_hs_jack_detect(struct snd_soc_codec *codec,
struct snd_soc_jack *jack, int report);
int twl6040_get_clk_id(struct snd_soc_codec *codec);
int twl6040_get_trim_value(struct snd_soc_codec *codec, enum twl6040_trim trim);
int twl6040_get_hs_step_size(struct snd_soc_codec *codec);

#endif /* End of __TWL6040_H__ */

0 comments on commit 75b94c6

Please sign in to comment.