mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
asoc: update block size for dsd input
Update dsd channel block size from codec options. Change-Id: I54011f1092eb8a687d1d4899928daad6746c7aed Signed-off-by: Sanjana B <sanjb@codeaurora.org>
This commit is contained in:
parent
8c500e2d43
commit
42e9d9cebd
1 changed files with 8 additions and 1 deletions
|
|
@ -81,6 +81,8 @@ const DECLARE_TLV_DB_LINEAR(msm_compr_vol_gain, 0,
|
|||
#define COMPRESSED_PERF_MODE_FLAG 0
|
||||
#endif
|
||||
|
||||
#define DSD_BLOCK_SIZE_4 4
|
||||
|
||||
struct msm_compr_gapless_state {
|
||||
bool set_next_stream_id;
|
||||
int32_t stream_opened[MAX_NUMBER_OF_STREAMS];
|
||||
|
|
@ -1388,7 +1390,12 @@ static int msm_compr_send_media_format_block(struct snd_compr_stream *cstream,
|
|||
dsd_cfg.dsd_data_rate = prtd->sample_rate;
|
||||
dsd_cfg.num_version = 0;
|
||||
dsd_cfg.is_bitwise_big_endian = 1;
|
||||
dsd_cfg.dsd_channel_block_size = 4;
|
||||
dsd_cfg.dsd_channel_block_size = 1;
|
||||
|
||||
if (codec_options->dsd_dec.blk_size == DSD_BLOCK_SIZE_4)
|
||||
dsd_cfg.dsd_channel_block_size =
|
||||
codec_options->dsd_dec.blk_size;
|
||||
|
||||
ret = q6asm_media_format_block_dsd(prtd->audio_client,
|
||||
&dsd_cfg, stream_id);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue