Lines Matching +full:lpass +full:- +full:lpaif
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2010-2011,2013-2015 The Linux Foundation. All rights reserved.
5 * lpass-ipq806x.c -- ALSA SoC CPU DAI driver for QTi LPASS
6 * Splited out the IPQ8064 soc specific from lpass-cpu.c
18 #include <sound/soc-dai.h>
20 #include "lpass-lpaif-reg.h"
21 #include "lpass.h"
40 .stream_name = "lpass-cpu-playback",
60 struct device *dev = &pdev->dev; in ipq806x_lpass_init()
63 drvdata->ahbix_clk = devm_clk_get(dev, "ahbix-clk"); in ipq806x_lpass_init()
64 if (IS_ERR(drvdata->ahbix_clk)) { in ipq806x_lpass_init()
65 dev_err(dev, "error getting ahbix-clk: %ld\n", in ipq806x_lpass_init()
66 PTR_ERR(drvdata->ahbix_clk)); in ipq806x_lpass_init()
67 ret = PTR_ERR(drvdata->ahbix_clk); in ipq806x_lpass_init()
71 ret = clk_set_rate(drvdata->ahbix_clk, LPASS_AHBIX_CLOCK_FREQUENCY); in ipq806x_lpass_init()
77 clk_get_rate(drvdata->ahbix_clk)); in ipq806x_lpass_init()
79 ret = clk_prepare_enable(drvdata->ahbix_clk); in ipq806x_lpass_init()
93 clk_disable_unprepare(drvdata->ahbix_clk); in ipq806x_lpass_exit()
103 return -EINVAL; in ipq806x_lpass_alloc_dma_channel()
152 "mi2s-osr-clk",
155 "mi2s-bit-clk",
164 { .compatible = "qcom,lpass-cpu", .data = &ipq806x_data },
171 .name = "lpass-cpu",
179 MODULE_DESCRIPTION("QTi LPASS CPU Driver");