mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
ASoC: tegra-alt: use ch select value for no of ch
Use the channel select control input to decide on the no of channels for the dmic configuration, this way we can capture more than 2 channels using tinycap which wont effect the dmic configuration, which will sole depends on ch select mixer control value. Bug 1833091 Change-Id: I3233913c62a311f3ff08116ebccea0a807e6efb4 Signed-off-by: Mohan Kumar <mkumard@nvidia.com> Reviewed-on: http://git-master/r/1246322 GVS: Gerrit_Virtual_Submit Reviewed-by: Sameer Pujar <spujar@nvidia.com> Reviewed-by: Viswanath L <viswanathl@nvidia.com> Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
995c9c85a2
commit
90edd0856e
@@ -158,10 +158,13 @@ static int tegra210_dmic_hw_params(struct snd_pcm_substream *substream,
|
||||
srate = params_rate(params);
|
||||
dmic_clk = (1 << (6+osr)) * srate;
|
||||
|
||||
if (channels < 2)
|
||||
if (dmic->ch_select == DMIC_CH_SELECT_NONE) {
|
||||
channels = 2;
|
||||
channel_select = DMIC_CH_SELECT_STEREO;
|
||||
} else {
|
||||
channels = 1;
|
||||
channel_select = dmic->ch_select;
|
||||
else
|
||||
channel_select = (1 << channels) - 1;
|
||||
}
|
||||
|
||||
if ((tegra_platform_is_unit_fpga() || tegra_platform_is_fpga())) {
|
||||
program_dmic_gpio();
|
||||
|
||||
Reference in New Issue
Block a user