/* * ALSA SoC TWL6040 codec driver * * Author: Misael Lopez Cruz <x0052729@ti.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA * */ #ifndef __TWL6040_H__ #define __TWL6040_H__ enum twl6040_trim { TWL6040_TRIM_TRIM1 = 0, TWL6040_TRIM_TRIM2, TWL6040_TRIM_TRIM3, TWL6040_TRIM_HSOTRIM, TWL6040_TRIM_HFOTRIM, TWL6040_TRIM_INVAL, }; #define TWL6040_HSF_TRIM_LEFT(x) (x & 0x0f) #define TWL6040_HSF_TRIM_RIGHT(x) ((x >> 4) & 0x0f) int twl6040_get_dl1_gain(struct snd_soc_codec *codec); 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__ */ b right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/dccp/dccp.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/dccp/dccp.h?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/dccp/dccp.h?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/dccp/dccp.h?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/dccp/dccp.h'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='624374a56419c2d6d428c862f32cc1b20519095d'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/dccp?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>dccp</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/dccp/dccp.h?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d'>dccp.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/dccp/dccp.h?h=nds-private-remove&id=624374a56419c2d6d428c862f32cc1b20519095d&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>