alsa-lib/include
Kirill Marinushkin bdb709ab2a ASoC: topology: Add missing clock gating parameter when parsing hw_configs
Clock gating parameter is a part of `dai_fmt`. It is supported by
`alsa-lib` when creating a topology binary file, but ignored by kernel
when loading this topology file.

After applying this commit, the clock gating parameter is not ignored any
more. This solution is backwards compatible. The existing behaviour is
not broken, because by default the parameter value is 0 and is ignored.

snd_soc_tplg_hw_config.clock_gated = 0 => no effect
snd_soc_tplg_hw_config.clock_gated = 1 => SND_SOC_DAIFMT_GATED
snd_soc_tplg_hw_config.clock_gated = 2 => SND_SOC_DAIFMT_CONT

For example, the following config, based on
alsa-lib/src/conf/topology/broadwell/broadwell.conf, is now supported:

~~~~
SectionHWConfig."CodecHWConfig" {
        id "1"
        format "I2S"            # physical audio format.
        pm_gate_clocks "true"   # clock can be gated
}

SectionLink."Codec" {

        # used for binding to the physical link
        id "0"

        hw_configs [
                "CodecHWConfig"
        ]

        default_hw_conf_id "1"
}
~~~~

Signed-off-by: Kirill Marinushkin <k.marinushkin@gmail.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Mark Brown <broonie@kernel.org>
Cc: Pan Xiuli <xiuli.pan@linux.intel.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Cc: linux-kernel@vger.kernel.org
Cc: alsa-devel@alsa-project.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-04-20 09:27:20 +02:00
..
sound ASoC: topology: Add missing clock gating parameter when parsing hw_configs 2018-04-20 09:27:20 +02:00
alisp.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
alsa-symbols.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
aserver.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
asoundef.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
asoundlib-head.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
asoundlib-tail.h Create asoundlib.h dynamically according to configure options 2007-07-10 15:58:41 +02:00
bswap.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
conf.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
control.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
control_external.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
error.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
global.h Change snd_dlopen() function to return the error string 2017-11-27 21:48:20 +01:00
hwdep.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
input.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
list.h Replace list.h with its own version 2015-07-27 12:39:54 +02:00
local.h core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
Makefile.am pcm: Remove home brew atomic operations 2016-07-11 15:25:30 +02:00
mixer.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
mixer_abst.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
output.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm.h a set of fixes to reduce gcc warnings 2018-03-27 15:16:41 +02:00
pcm_external.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_extplug.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_ioplug.h pcm: ioplug: Provide hw_avail helper function for plugins 2018-03-13 22:12:02 +01:00
pcm_old.h pcm: fix get_stop_threshold alsa-lib 0.9 alias 2016-12-15 22:47:02 +01:00
pcm_plugin.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
pcm_rate.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
rawmidi.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
search.h Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
seq.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
seq_event.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
seq_midi_event.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
seqmid.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
sys.h Ok, added warning to sys/asoundlib.h with redirection to alsa/asoundlib.h. 2001-09-11 12:18:56 +00:00
timer.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
topology.h ASoC: topology: Add missing clock gating parameter when parsing hw_configs 2018-04-20 09:27:20 +02:00
type_compat.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
use-case.h Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00