mchp-pdmc.c (2588a01431a85a9bb8b2eac9023181ddd714a695) | mchp-pdmc.c (6b6bb5e26222021abe1c5360f43b4c2ff1dd012f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// Driver for Microchip Pulse Density Microphone Controller (PDMC) interfaces 4// 5// Copyright (C) 2019-2022 Microchip Technology Inc. and its subsidiaries 6// 7// Author: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> 8 --- 878 unchanged lines hidden (view full) --- 887 dd->mic_no / 2 > MCHP_PDMC_MAX_CHANNELS) { 888 dev_err(dd->dev, "invalid array length for mchp,mic-pos: %d", 889 dd->mic_no); 890 return -EINVAL; 891 } 892 893 dd->mic_no /= 2; 894 | 1// SPDX-License-Identifier: GPL-2.0 2// 3// Driver for Microchip Pulse Density Microphone Controller (PDMC) interfaces 4// 5// Copyright (C) 2019-2022 Microchip Technology Inc. and its subsidiaries 6// 7// Author: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> 8 --- 878 unchanged lines hidden (view full) --- 887 dd->mic_no / 2 > MCHP_PDMC_MAX_CHANNELS) { 888 dev_err(dd->dev, "invalid array length for mchp,mic-pos: %d", 889 dd->mic_no); 890 return -EINVAL; 891 } 892 893 dd->mic_no /= 2; 894 |
895 dev_info(dd->dev, "%d PDM microchopnes declared\n", dd->mic_no); | 895 dev_info(dd->dev, "%d PDM microphones declared\n", dd->mic_no); |
896 897 /* by default, we consider the order of microphones in mchp,mic-pos to 898 * be the same with the channel mapping; 1st microphone channel 0, 2nd 899 * microphone channel 1, etc. 900 */ 901 for (i = 0; i < dd->mic_no; i++) { 902 int ds; 903 int edge; --- 179 unchanged lines hidden --- | 896 897 /* by default, we consider the order of microphones in mchp,mic-pos to 898 * be the same with the channel mapping; 1st microphone channel 0, 2nd 899 * microphone channel 1, etc. 900 */ 901 for (i = 0; i < dd->mic_no; i++) { 902 int ds; 903 int edge; --- 179 unchanged lines hidden --- |