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.

What's the difference between twl4030-hifi and twl4030-voice?

static struct snd_soc_dai_driver twl4030_dai[] = {
{
.name = "twl4030-hifi",
.playback = {
.stream_name = "HiFi Playback",
.channels_min = 2,
.channels_max = 4,
.rates = TWL4030_RATES | SNDRV_PCM_RATE_96000,
.formats = TWL4030_FORMATS,},
.capture = {
.stream_name = "Capture",
.channels_min = 2,
.channels_max = 4,
.rates = TWL4030_RATES,
.formats = TWL4030_FORMATS,},
.ops = &twl4030_dai_hifi_ops,
},
{
.name = "twl4030-voice",
.playback = {
.stream_name = "Voice Playback",
.channels_min = 1,
.channels_max = 1,
.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
.formats = SNDRV_PCM_FMTBIT_S16_LE,},
.capture = {
.stream_name = "Capture",
.channels_min = 1,
.channels_max = 2,
.rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
.formats = SNDRV_PCM_FMTBIT_S16_LE,},
.ops = &twl4030_dai_voice_ops,
},
};

So,what's the difference between twl4030-hifi and twl4030-voice?

  • Hi QingboGuo,

    I see the following differences between both structure elements according the values of the fields:

    The first one named twl4030-hifi is suitable to be used for hi quality stereo or four channel audio with sample rate 96 KHz.

    The second one named twl4030-voice is suitable to be used for mono audio with low quality as voice recording. The sample rate is 8 or 16 KHz. 

    BR

    Tsvetolin Shulev