|
@@ -67,14 +67,14 @@ struct hdmi_codec_cea_spk_alloc {
|
|
};
|
|
};
|
|
|
|
|
|
/* Channel maps stereo HDMI */
|
|
/* Channel maps stereo HDMI */
|
|
-const struct snd_pcm_chmap_elem hdmi_codec_stereo_chmaps[] = {
|
|
|
|
|
|
+static const struct snd_pcm_chmap_elem hdmi_codec_stereo_chmaps[] = {
|
|
{ .channels = 2,
|
|
{ .channels = 2,
|
|
.map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
|
|
.map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
|
|
{ }
|
|
{ }
|
|
};
|
|
};
|
|
|
|
|
|
/* Channel maps for multi-channel playbacks, up to 8 n_ch */
|
|
/* Channel maps for multi-channel playbacks, up to 8 n_ch */
|
|
-const struct snd_pcm_chmap_elem hdmi_codec_8ch_chmaps[] = {
|
|
|
|
|
|
+static const struct snd_pcm_chmap_elem hdmi_codec_8ch_chmaps[] = {
|
|
{ .channels = 2, /* CA_ID 0x00 */
|
|
{ .channels = 2, /* CA_ID 0x00 */
|
|
.map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
|
|
.map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
|
|
{ .channels = 4, /* CA_ID 0x01 */
|
|
{ .channels = 4, /* CA_ID 0x01 */
|
|
@@ -340,7 +340,7 @@ static unsigned long hdmi_codec_spk_mask_from_alloc(int spk_alloc)
|
|
return spk_mask;
|
|
return spk_mask;
|
|
}
|
|
}
|
|
|
|
|
|
-void hdmi_codec_eld_chmap(struct hdmi_codec_priv *hcp)
|
|
|
|
|
|
+static void hdmi_codec_eld_chmap(struct hdmi_codec_priv *hcp)
|
|
{
|
|
{
|
|
u8 spk_alloc;
|
|
u8 spk_alloc;
|
|
unsigned long spk_mask;
|
|
unsigned long spk_mask;
|
|
@@ -696,7 +696,7 @@ static const struct snd_soc_dai_driver hdmi_i2s_dai = {
|
|
.name = "i2s-hifi",
|
|
.name = "i2s-hifi",
|
|
.id = DAI_ID_I2S,
|
|
.id = DAI_ID_I2S,
|
|
.playback = {
|
|
.playback = {
|
|
- .stream_name = "Playback",
|
|
|
|
|
|
+ .stream_name = "I2S Playback",
|
|
.channels_min = 2,
|
|
.channels_min = 2,
|
|
.channels_max = 8,
|
|
.channels_max = 8,
|
|
.rates = HDMI_RATES,
|
|
.rates = HDMI_RATES,
|
|
@@ -711,7 +711,7 @@ static const struct snd_soc_dai_driver hdmi_spdif_dai = {
|
|
.name = "spdif-hifi",
|
|
.name = "spdif-hifi",
|
|
.id = DAI_ID_SPDIF,
|
|
.id = DAI_ID_SPDIF,
|
|
.playback = {
|
|
.playback = {
|
|
- .stream_name = "Playback",
|
|
|
|
|
|
+ .stream_name = "SPDIF Playback",
|
|
.channels_min = 2,
|
|
.channels_min = 2,
|
|
.channels_max = 2,
|
|
.channels_max = 2,
|
|
.rates = HDMI_RATES,
|
|
.rates = HDMI_RATES,
|