This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV320AIC3x - number of channels

Guru 20755 points

Hello,

I see in linux tlv320aic driver that playback device has between 1 to 2 channels and capture device has between 1 to 2 channels:


static struct snd_soc_dai_driver aic3x_dai = {
.name = "tlv320aic3x-hifi",
.playback = {
.stream_name = "Playback",
.channels_min = 1,
.channels_max = 2,
.rates = AIC3X_RATES,
.formats = AIC3X_FORMATS,},
.capture = {
.stream_name = "Capture",
.channels_min = 1,
.channels_max = 2,
.rates = AIC3X_RATES,
.formats = AIC3X_FORMATS,},
.ops = &aic3x_dai_ops,
.symmetric_rates = 1,
};

But I also see that the amixer utility for this devce is controlling channels as following:

To unmute/mute the microphone input

 $ amixer sset ‘Right PGA Mixer Mic3L’ on/off
 $ amixer sset ‘Right PGA Mixer Mic3R’ on/off
 $ amixer sset ‘Left PGA Mixer Mic3L’ on/off
 $ amixer sset ‘Left PGA Mixer Mic3R’ on/off

To unmute/mute the line input

 $ amixer sset 'Right PGA Mixer Line1R' on/off
 $ amixer sset 'Right PGA Mixer Line1L' on/off
 $ amixer sset 'Left PGA Mixer Line1R' on/off
 $ amixer sset 'Left PGA Mixer Line1L' on/off


According to the above it seems like there are 8 channels for capture,

I also know that phsycally we have 2 channels: 1 line-in, and 1 microphone.

So I don't understand... Is it 2, 4, or 8 ? Why there are such differences as listed above and what is correct ?

If we only have 2 channels for capture, why do we need the above 8 amixer on/off ?

Thanks,
Ran