Commit 4b490e0
ALSA: ctxfi: Add ADC helper functions for GPIO
Add helper functions hw_adc_stop(), hw_adc_start(), and hw_adc_reset()
to encapsulate ADC reset sequence operations. These functions reduce
duplication by centralizing the GPIO-based ADC control logic.
Signed-off-by: Harin Lee <me@harin.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251124180501.2760421-3-me@harin.net1 parent 5ebd054 commit 4b490e0
1 file changed
Lines changed: 28 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1826 | 1826 | | |
1827 | 1827 | | |
1828 | 1828 | | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
1829 | 1855 | | |
1830 | 1856 | | |
1831 | 1857 | | |
| |||
1843 | 1869 | | |
1844 | 1870 | | |
1845 | 1871 | | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
| 1872 | + | |
1850 | 1873 | | |
1851 | 1874 | | |
1852 | 1875 | | |
| |||
1860 | 1883 | | |
1861 | 1884 | | |
1862 | 1885 | | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
| 1886 | + | |
1868 | 1887 | | |
1869 | 1888 | | |
1870 | 1889 | | |
| |||
0 commit comments