Commit 4c88a65
committed
tinyhal: audio: Impl channel adjustment for input sound flow
The issue is detected on RCAR3 platform where high level applications
can not capture a sound through Tinyhal with requested channel count
less than 8 (the min/max interval for allowed channel count values
is set to [8..8] in 'pcm3168a' driver, so pcm_open() function returns
error in case count != 8).
But only AUDIO_CHANNEL_IN_MONO & AUDIO_CHANNEL_IN_STEREO channel masks
are supported in alsa_device_profile.c file ('alsa_utils' directory).
So it is required to implement a patch which provides a channel
adjustment for input sound by converting the 8-channel flow
to requested Mono or Stereo flow.
Signed-off-by: Oleksandr Bobro <oleksandr.bobro@globallogic.com>1 parent 5f03d4a commit 4c88a65
1 file changed
Lines changed: 39 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
1874 | 1875 | | |
1875 | 1876 | | |
1876 | 1877 | | |
1877 | | - | |
1878 | | - | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
1879 | 1911 | | |
1880 | | - | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
1881 | 1917 | | |
1882 | 1918 | | |
1883 | 1919 | | |
| |||
0 commit comments