mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
hdmitx: unify audio setting parameters [1/1]
PD#SWPL-140396 Problem: There are two methods for hdmitx audio setting: hdmitx_notify_callback_a() and old API hdmitx_ext_set/get_i2s_mask(). This may make concurrency issue. Solution: Unify the audio parameters setting with callback Verify: sc2-ah212 Test: DRM-TX-33 Change-Id: I0c1dd19b66d783290008a83428141dd2a427ea01 Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
e3e5c25226
commit
bf429bdb90
@@ -68,9 +68,11 @@ static int sharebuffer_spdifout_prepare(struct snd_pcm_substream *substream,
|
||||
spdif_set_validity(0, spdif_id);
|
||||
|
||||
/* for samesource case, always 2ch substream to hdmitx */
|
||||
aud_param.aud_src_if = AUD_SRC_IF_SPDIF;
|
||||
aud_param.rate = runtime->rate;
|
||||
aud_param.size = runtime->sample_bits;
|
||||
aud_param.chs = 2;
|
||||
aud_param.i2s_ch_mask = 0x1;
|
||||
|
||||
/* notify hdmitx audio */
|
||||
if (get_hdmitx_audio_src(rtd->card) == spdif_id) {
|
||||
|
||||
@@ -459,6 +459,7 @@ void spdif_notify_to_hdmitx(struct snd_pcm_substream *substream,
|
||||
aud_param.rate = substream->runtime->rate;
|
||||
aud_param.size = substream->runtime->sample_bits;
|
||||
aud_param.chs = substream->runtime->channels;
|
||||
aud_param.i2s_ch_mask = 0x1;
|
||||
aud_param.aud_src_if = AUD_SRC_IF_SPDIF;
|
||||
|
||||
if (codec_type == AUD_CODEC_TYPE_AC3) {
|
||||
|
||||
Reference in New Issue
Block a user