imx-audmux.c (14e77332e74603efab8347c89d3cda447c3b97c9) | imx-audmux.c (a39bc7cf8e284653fb6fd9d897f269f4ac80cf52) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright 2012 Freescale Semiconductor, Inc. 4// Copyright 2012 Linaro Ltd. 5// Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de> 6// 7// Initial development of this code was funded by 8// Phytec Messtechnik GmbH, https://www.phytec.de --- 61 unchanged lines hidden (view full) --- 70 pdcr = readl(audmux_base + IMX_AUDMUX_V2_PDCR(port)); 71 72 clk_disable_unprepare(audmux_clk); 73 74 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); 75 if (!buf) 76 return -ENOMEM; 77 | 1// SPDX-License-Identifier: GPL-2.0+ 2// 3// Copyright 2012 Freescale Semiconductor, Inc. 4// Copyright 2012 Linaro Ltd. 5// Copyright 2009 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de> 6// 7// Initial development of this code was funded by 8// Phytec Messtechnik GmbH, https://www.phytec.de --- 61 unchanged lines hidden (view full) --- 70 pdcr = readl(audmux_base + IMX_AUDMUX_V2_PDCR(port)); 71 72 clk_disable_unprepare(audmux_clk); 73 74 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); 75 if (!buf) 76 return -ENOMEM; 77 |
78 ret = scnprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n", 79 pdcr, ptcr); | 78 ret = sysfs_emit(buf, "PDCR: %08x\nPTCR: %08x\n", pdcr, ptcr); |
80 81 if (ptcr & IMX_AUDMUX_V2_PTCR_TFSDIR) 82 ret += scnprintf(buf + ret, PAGE_SIZE - ret, 83 "TxFS output from %s, ", 84 audmux_port_string((ptcr >> 27) & 0x7)); 85 else 86 ret += scnprintf(buf + ret, PAGE_SIZE - ret, 87 "TxFS input, "); --- 299 unchanged lines hidden --- | 79 80 if (ptcr & IMX_AUDMUX_V2_PTCR_TFSDIR) 81 ret += scnprintf(buf + ret, PAGE_SIZE - ret, 82 "TxFS output from %s, ", 83 audmux_port_string((ptcr >> 27) & 0x7)); 84 else 85 ret += scnprintf(buf + ret, PAGE_SIZE - ret, 86 "TxFS input, "); --- 299 unchanged lines hidden --- |