]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ASoC: cht_bsw_max98090: Use snd_pcm_hw_constraint_single()
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 18 Oct 2015 13:39:31 +0000 (15:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 21 Oct 2015 12:26:04 +0000 (14:26 +0200)
commita6553a24d44f30aa0ae3ca3bff736d346c9d42d6
tree459b9abd7f76d8ee5df4fd39acc401858eacb15f
parentd0a1b6607480e9ded3df22d09ff77bc55db586f7
ASoC: cht_bsw_max98090: Use snd_pcm_hw_constraint_single()

Use the new snd_pcm_hw_constraint_single() helper function rather than
installing a list constraint with a single value. Since
snd_pcm_hw_constraint_single() sets a static constraint while
snd_pcm_hw_constraint_list() sets a dynamic constraint the former is
slightly more efficient and it also needs less code.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/soc/intel/boards/cht_bsw_max98090_ti.c