Lines Matching +full:jz4740 +full:- +full:codec
1 // SPDX-License-Identifier: GPL-2.0
3 // JZ4740 CODEC driver
5 // Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
80 static const DECLARE_TLV_DB_SCALE(jz4740_in_tlv, -3450, 150, 0);
153 struct jz4740_codec *jz4740_codec = snd_soc_component_get_drvdata(dai->component); in jz4740_codec_hw_params()
185 return -EINVAL; in jz4740_codec_hw_params()
190 regmap_update_bits(jz4740_codec->regmap, JZ4740_REG_CODEC_2, in jz4740_codec_hw_params()
201 .name = "jz4740-hifi",
235 struct regmap *regmap = jz4740_codec->regmap; in jz4740_codec_set_bias_level()
249 /* The only way to clear the suspend flag is to reset the codec */ in jz4740_codec_set_bias_level()
275 regmap_update_bits(jz4740_codec->regmap, JZ4740_REG_CODEC_1, in jz4740_codec_dev_probe()
313 jz4740_codec = devm_kzalloc(&pdev->dev, sizeof(*jz4740_codec), in jz4740_codec_probe()
316 return -ENOMEM; in jz4740_codec_probe()
322 jz4740_codec->regmap = devm_regmap_init_mmio(&pdev->dev, base, in jz4740_codec_probe()
324 if (IS_ERR(jz4740_codec->regmap)) in jz4740_codec_probe()
325 return PTR_ERR(jz4740_codec->regmap); in jz4740_codec_probe()
329 ret = devm_snd_soc_register_component(&pdev->dev, in jz4740_codec_probe()
332 dev_err(&pdev->dev, "Failed to register codec\n"); in jz4740_codec_probe()
338 { .compatible = "ingenic,jz4740-codec", },
346 .name = "jz4740-codec",
353 MODULE_DESCRIPTION("JZ4740 SoC internal codec driver");
354 MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>");
356 MODULE_ALIAS("platform:jz4740-codec");