25 Feb
2011
25 Feb
'11
9:13 a.m.
On Thu, 2011-02-24 at 02:08 +0800, zhaoming.zeng@freescale.com wrote:
From: Zeng Zhaoming zhaoming.zeng@freescale.com
Add Freescale SGTL5000 codec support. Supported features:
- line-in and mic input
- headphone and line-out output
- line-in bypass ADC and DAC to headphone
- 16, 20, 24, 32 bit audio
- 8 ~ 96k sample rates
Signed-off-by: Zeng Zhaoming zhaoming.zeng@freescale.com
Changes since v4:
- Fix regulator resource leak in sgtl5000_enable_regulators().
- Fix memory leak in ldo_regulator_register() when desc.name malloc failed.
- Del snd_soc_dapm_free() in sgtl5000_remove().
- Correct the typos.
- Replace pr_err() with dev_err in sgtl5000_set_clock().
- Fix code style.
Thanks for the review of Timur, Mark, Sascha and Arnaud.
sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/sgtl5000.c | 1512 +++++++++++++++++++++++++++++++++++++++++++ sound/soc/codecs/sgtl5000.h | 402 ++++++++++++ 4 files changed, 1921 insertions(+), 0 deletions(-)
Acked-by: Liam Girdwood lrg@slimlogic.co.uk
Btw, your custom PCM volume controls look similar to the register format used by AC97 volume controls. Did you try the kcontrol convenience macros before writing your own control ?
Thanks
Liam