mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
video: rockchip: hdmi: enable nlpcm audio case
Change-Id: I21034b9053c171c3503054c4b23d67b11a7f430a Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
#include "rockchip-hdmi.h"
|
||||
#include "rockchip-hdmi-cec.h"
|
||||
|
||||
#define HW_PARAMS_FLAG_LPCM 0
|
||||
#define HW_PARAMS_FLAG_NLPCM 1
|
||||
|
||||
struct hdmi_delayed_work {
|
||||
struct delayed_work work;
|
||||
struct hdmi *hdmi;
|
||||
@@ -779,12 +782,10 @@ int snd_config_hdmi_audio(struct snd_pcm_hw_params *params)
|
||||
|
||||
audio_cfg.rate = rate;
|
||||
|
||||
/*
|
||||
*if (params->flags == HW_PARAMS_FLAG_NLPCM)
|
||||
* audio_cfg.type = HDMI_AUDIO_NLPCM;
|
||||
*else
|
||||
*/
|
||||
audio_cfg.type = HDMI_AUDIO_LPCM;
|
||||
if (params->flags == HW_PARAMS_FLAG_NLPCM)
|
||||
audio_cfg.type = HDMI_AUDIO_NLPCM;
|
||||
else
|
||||
audio_cfg.type = HDMI_AUDIO_LPCM;
|
||||
|
||||
audio_cfg.channel = params_channels(params);
|
||||
audio_cfg.word_length = HDMI_AUDIO_WORD_LENGTH_16bit;
|
||||
|
||||
Reference in New Issue
Block a user