/**
 * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
 *
 * This source file is released under GPL v2 license (no other versions).
 * See the COPYING file included in the main directory of this source
 * distribution for the license terms and conditions.
 *
 * @File	ctmixer.h
 *
 * @Brief
 * This file contains the definition of the mixer device functions.
 *
 * @Author	Liu Chun
 * @Date 	Mar 28 2008
 *
 */

#ifndef CTMIXER_H
#define CTMIXER_H

#include "ctatc.h"
#include "ctresource.h"

#define INIT_VOL	0x1c00

enum MIXER_PORT_T {
	MIX_WAVE_FRONT,
	MIX_WAVE_REAR,
	MIX_WAVE_CENTLFE,
	MIX_WAVE_SURROUND,
	MIX_SPDIF_OUT,
	MIX_PCMO_FRONT,
	MIX_MIC_IN,
	MIX_LINE_IN,
	MIX_SPDIF_IN,
	MIX_PCMI_FRONT,
	MIX_PCMI_REAR,
	MIX_PCMI_CENTLFE,
	MIX_PCMI_SURROUND,

	NUM_MIX_PORTS
};

/* alsa mixer descriptor */
struct ct_mixer {
	struct ct_atc *atc;

	void **amixers;		/* amixer resources for volume control */
	void **sums;		/* sum resources for signal collection */
	unsigned int switch_state; /* A bit-map to indicate state of switches */

	int (*get_output_ports)(struct ct_mixer *mixer, enum MIXER_PORT_T type,
				  struct rsc **rleft, struct rsc **rright);

	int (*set_input_left)(struct ct_mixer *mixer,
			      enum MIXER_PORT_T type, struct rsc *rsc);
	int (*set_input_right)(struct ct_mixer *mixer,
			       enum MIXER_PORT_T type, struct rsc *rsc);
#ifdef CONFIG_PM_SLEEP
	int (*resume)(struct ct_mixer *mixer);
#endif
};

int ct_alsa_mix_create(struct ct_atc *atc,
		       enum CTALSADEVS device,
		       const char *device_name);
int ct_mixer_create(struct ct_atc *atc, struct ct_mixer **rmixer);
int ct_mixer_destroy(struct ct_mixer *mixer);

#endif /* CTMIXER_H */
84ecbe0e9deb94afb0b9b6172d77e98eb72b94'>refs</a><a href='/cgit.cgi/linux/net-next.git/log/sound/oss/msnd_pinnacle.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/oss/msnd_pinnacle.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'/><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/commit/?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/oss?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>oss</a>/<a href='/cgit.cgi/linux/net-next.git/commit/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>msnd_pinnacle.c</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Giovanni Cabiddu &lt;giovanni.cabiddu@intel.com&gt;</td><td class='right'>2016-12-22 15:00:12 +0000</td></tr>
<tr><th>committer</th><td>Herbert Xu &lt;herbert@gondor.apana.org.au&gt;</td><td class='right'>2017-02-02 21:54:52 +0800</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>3484ecbe0e9deb94afb0b9b6172d77e98eb72b94</a> (<a href='/cgit.cgi/linux/net-next.git/patch/sound/oss/msnd_pinnacle.c?id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>4d4be0d20d4946c51ef47a882d78c9934a219c0e</a> /<a href='/cgit.cgi/linux/net-next.git/tree/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>sound/oss/msnd_pinnacle.c</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=11e3b725cfc282efe9d4a354153e99d86a16af08'>11e3b725cfc282efe9d4a354153e99d86a16af08</a> (<a href='/cgit.cgi/linux/net-next.git/diff/sound/oss/msnd_pinnacle.c?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94&amp;id2=11e3b725cfc282efe9d4a354153e99d86a16af08'>diff</a>)</td></tr></table>
<div class='commit-subject'>crypto: qat - fix bar discovery for c62x</div><div class='commit-msg'>Some accelerators of the c62x series have only two bars.
This patch skips BAR0 if the accelerator does not have it.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Giovanni Cabiddu &lt;giovanni.cabiddu@intel.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=3484ecbe0e9deb94afb0b9b6172d77e98eb72b94'>Diffstat</a> (limited to 'sound/oss/msnd_pinnacle.c')</div><table summary='diffstat' class='diffstat'>