Merge "hal: Fix SPDIF/HDMI PCM capture in qcs405"
This commit is contained in:
commit
5cbab322f2
|
@ -52,6 +52,10 @@
|
|||
#define AUDIO_DEVICE_IN_PROXY (AUDIO_DEVICE_BIT_IN | 0x1000000)
|
||||
#endif
|
||||
|
||||
#ifndef AUDIO_DEVICE_IN_HDMI_ARC
|
||||
#define AUDIO_DEVICE_IN_HDMI_ARC (AUDIO_DEVICE_BIT_IN | 0x8000000)
|
||||
#endif
|
||||
|
||||
#ifndef INCALL_MUSIC_ENABLED
|
||||
#define AUDIO_OUTPUT_FLAG_INCALL_MUSIC 0x80000000 //0x8000
|
||||
#endif
|
||||
|
|
|
@ -650,9 +650,9 @@ static int acdb_device_table[SND_DEVICE_MAX] = {
|
|||
[SND_DEVICE_IN_HEADSET_MIC_FLUENCE] = 47,
|
||||
[SND_DEVICE_IN_VOICE_SPEAKER_MIC] = 11,
|
||||
[SND_DEVICE_IN_VOICE_HEADSET_MIC] = 8,
|
||||
[SND_DEVICE_IN_SPDIF] = 4,
|
||||
[SND_DEVICE_IN_HDMI_MIC] = 4,
|
||||
[SND_DEVICE_IN_HDMI_ARC] = 4,
|
||||
[SND_DEVICE_IN_SPDIF] = 143,
|
||||
[SND_DEVICE_IN_HDMI_MIC] = 143,
|
||||
[SND_DEVICE_IN_HDMI_ARC] = 143,
|
||||
[SND_DEVICE_IN_BT_SCO_MIC] = 21,
|
||||
[SND_DEVICE_IN_BT_SCO_MIC_NREC] = 122,
|
||||
[SND_DEVICE_IN_BT_SCO_MIC_WB] = 38,
|
||||
|
@ -4594,8 +4594,7 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d
|
|||
snd_device = SND_DEVICE_IN_SPDIF;
|
||||
} else if (in_device & AUDIO_DEVICE_IN_AUX_DIGITAL) {
|
||||
snd_device = SND_DEVICE_IN_HDMI_MIC;
|
||||
} else if (in_device & AUDIO_DEVICE_IN_TV_TUNER) {
|
||||
/* add separate AUDIO_DEVICE for this? */
|
||||
} else if (in_device & AUDIO_DEVICE_IN_HDMI_ARC) {
|
||||
snd_device = SND_DEVICE_IN_HDMI_ARC;
|
||||
} else if (in_device & AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET ||
|
||||
in_device & AUDIO_DEVICE_IN_DGTL_DOCK_HEADSET) {
|
||||
|
|
Loading…
Reference in New Issue