|
@@ -51,6 +51,7 @@ enum {
|
|
ENC_FMT_APTX = ASM_MEDIA_FMT_APTX,
|
|
ENC_FMT_APTX = ASM_MEDIA_FMT_APTX,
|
|
ENC_FMT_APTX_HD = ASM_MEDIA_FMT_APTX_HD,
|
|
ENC_FMT_APTX_HD = ASM_MEDIA_FMT_APTX_HD,
|
|
ENC_FMT_CELT = ASM_MEDIA_FMT_CELT,
|
|
ENC_FMT_CELT = ASM_MEDIA_FMT_CELT,
|
|
|
|
+ ENC_FMT_LDAC = ASM_MEDIA_FMT_LDAC,
|
|
};
|
|
};
|
|
|
|
|
|
enum {
|
|
enum {
|
|
@@ -2263,6 +2264,11 @@ static int msm_dai_q6_afe_enc_cfg_get(struct snd_kcontrol *kcontrol,
|
|
&dai_data->enc_config.data,
|
|
&dai_data->enc_config.data,
|
|
sizeof(struct asm_celt_enc_cfg_t));
|
|
sizeof(struct asm_celt_enc_cfg_t));
|
|
break;
|
|
break;
|
|
|
|
+ case ENC_FMT_LDAC:
|
|
|
|
+ memcpy(ucontrol->value.bytes.data + format_size,
|
|
|
|
+ &dai_data->enc_config.data,
|
|
|
|
+ sizeof(struct asm_ldac_enc_cfg_t));
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
pr_debug("%s: unknown format = %d\n",
|
|
pr_debug("%s: unknown format = %d\n",
|
|
__func__, dai_data->enc_config.format);
|
|
__func__, dai_data->enc_config.format);
|
|
@@ -2316,6 +2322,11 @@ static int msm_dai_q6_afe_enc_cfg_put(struct snd_kcontrol *kcontrol,
|
|
ucontrol->value.bytes.data + format_size,
|
|
ucontrol->value.bytes.data + format_size,
|
|
sizeof(struct asm_celt_enc_cfg_t));
|
|
sizeof(struct asm_celt_enc_cfg_t));
|
|
break;
|
|
break;
|
|
|
|
+ case ENC_FMT_LDAC:
|
|
|
|
+ memcpy(&dai_data->enc_config.data,
|
|
|
|
+ ucontrol->value.bytes.data + format_size,
|
|
|
|
+ sizeof(struct asm_ldac_enc_cfg_t));
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
pr_debug("%s: Ignore enc config for unknown format = %d\n",
|
|
pr_debug("%s: Ignore enc config for unknown format = %d\n",
|
|
__func__, dai_data->enc_config.format);
|
|
__func__, dai_data->enc_config.format);
|