kirkwood-i2s.c (4523817d51bc3b2ef38da768d004fda2c8bc41de) kirkwood-i2s.c (dc39596a906d5b604f4e64597b6e904fc14625e8)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * kirkwood-i2s.c
4 *
5 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
6 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
7 */
8

--- 573 unchanged lines hidden (view full) ---

582 if (priv->burst == 32) {
583 priv->ctl_play |= KIRKWOOD_PLAYCTL_BURST_32;
584 priv->ctl_rec |= KIRKWOOD_RECCTL_BURST_32;
585 } else {
586 priv->ctl_play |= KIRKWOOD_PLAYCTL_BURST_128;
587 priv->ctl_rec |= KIRKWOOD_RECCTL_BURST_128;
588 }
589
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * kirkwood-i2s.c
4 *
5 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
6 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
7 */
8

--- 573 unchanged lines hidden (view full) ---

582 if (priv->burst == 32) {
583 priv->ctl_play |= KIRKWOOD_PLAYCTL_BURST_32;
584 priv->ctl_rec |= KIRKWOOD_RECCTL_BURST_32;
585 } else {
586 priv->ctl_play |= KIRKWOOD_PLAYCTL_BURST_128;
587 priv->ctl_rec |= KIRKWOOD_RECCTL_BURST_128;
588 }
589
590 err = devm_snd_soc_register_component(&pdev->dev, &kirkwood_soc_component,
590 err = snd_soc_register_component(&pdev->dev, &kirkwood_soc_component,
591 soc_dai, 2);
592 if (err) {
593 dev_err(&pdev->dev, "snd_soc_register_component failed\n");
594 goto err_component;
595 }
596
597 kirkwood_i2s_init(priv);
598

--- 6 unchanged lines hidden (view full) ---

605
606 return err;
607}
608
609static int kirkwood_i2s_dev_remove(struct platform_device *pdev)
610{
611 struct kirkwood_dma_data *priv = dev_get_drvdata(&pdev->dev);
612
591 soc_dai, 2);
592 if (err) {
593 dev_err(&pdev->dev, "snd_soc_register_component failed\n");
594 goto err_component;
595 }
596
597 kirkwood_i2s_init(priv);
598

--- 6 unchanged lines hidden (view full) ---

605
606 return err;
607}
608
609static int kirkwood_i2s_dev_remove(struct platform_device *pdev)
610{
611 struct kirkwood_dma_data *priv = dev_get_drvdata(&pdev->dev);
612
613 snd_soc_unregister_component(&pdev->dev);
613 if (!IS_ERR(priv->extclk))
614 clk_disable_unprepare(priv->extclk);
615 clk_disable_unprepare(priv->clk);
616
617 return 0;
618}
619
620#ifdef CONFIG_OF

--- 25 unchanged lines hidden ---
614 if (!IS_ERR(priv->extclk))
615 clk_disable_unprepare(priv->extclk);
616 clk_disable_unprepare(priv->clk);
617
618 return 0;
619}
620
621#ifdef CONFIG_OF

--- 25 unchanged lines hidden ---