/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright 2003 Vivien Chappelier <vivien.chappelier@linux-mips.org> * Copyright 2008 Thomas Bogendoerfer <tsbogend@franken.de> */ #ifndef __SOUND_AD1843_H #define __SOUND_AD1843_H struct snd_ad1843 { void *chip; int (*read)(void *chip, int reg); int (*write)(void *chip, int reg, int val); }; #define AD1843_GAIN_RECLEV 0 #define AD1843_GAIN_LINE 1 #define AD1843_GAIN_LINE_2 2 #define AD1843_GAIN_MIC 3 #define AD1843_GAIN_PCM_0 4 #define AD1843_GAIN_PCM_1 5 #define AD1843_GAIN_SIZE (AD1843_GAIN_PCM_1+1) int ad1843_get_gain_max(struct snd_ad1843 *ad1843, int id); int ad1843_get_gain(struct snd_ad1843 *ad1843, int id); int ad1843_set_gain(struct snd_ad1843 *ad1843, int id, int newval); int ad1843_get_recsrc(struct snd_ad1843 *ad1843); int ad1843_set_recsrc(struct snd_ad1843 *ad1843, int newsrc); void ad1843_setup_dac(struct snd_ad1843 *ad1843, unsigned int id, unsigned int framerate, snd_pcm_format_t fmt, unsigned int channels); void ad1843_shutdown_dac(struct snd_ad1843 *ad1843, unsigned int id); void ad1843_setup_adc(struct snd_ad1843 *ad1843, unsigned int framerate, snd_pcm_format_t fmt, unsigned int channels); void ad1843_shutdown_adc(struct snd_ad1843 *ad1843); int ad1843_init(struct snd_ad1843 *ad1843); #endif /* __SOUND_AD1843_H */ ss='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/soc/rockchip,boot-mode.h'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/dt-bindings/soc/rockchip,boot-mode.h?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/dt-bindings/soc/rockchip,boot-mode.h?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/dt-bindings/soc/rockchip,boot-mode.h?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/soc/rockchip,boot-mode.h'> <input type='hidden' name='id' value='fc6d39c39581f3c12c95f166ce95ef8beb2047e8'/><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/?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>dt-bindings</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/soc?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>soc</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/dt-bindings/soc/rockchip,boot-mode.h?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8'>rockchip,boot-mode.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/include/dt-bindings/soc/rockchip,boot-mode.h?id=fc6d39c39581f3c12c95f166ce95ef8beb2047e8&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>