Merge "asoc: kona: call wsa set channel map for wsa883x"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
2e48e6f40a
15
asoc/kona.c
15
asoc/kona.c
@@ -31,6 +31,7 @@
|
|||||||
#include "asoc/wcd-mbhc-v2.h"
|
#include "asoc/wcd-mbhc-v2.h"
|
||||||
#include "codecs/wcd938x/wcd938x-mbhc.h"
|
#include "codecs/wcd938x/wcd938x-mbhc.h"
|
||||||
#include "codecs/wsa881x.h"
|
#include "codecs/wsa881x.h"
|
||||||
|
#include "codecs/wsa883x/wsa883x.h"
|
||||||
#include "codecs/wcd938x/wcd938x.h"
|
#include "codecs/wcd938x/wcd938x.h"
|
||||||
#include "codecs/bolero/bolero-cdc.h"
|
#include "codecs/bolero/bolero-cdc.h"
|
||||||
#include <dt-bindings/sound/audio-codec-port-types.h>
|
#include <dt-bindings/sound/audio-codec-port-types.h>
|
||||||
@@ -7165,6 +7166,11 @@ static int msm_wsa881x_init(struct snd_soc_component *component)
|
|||||||
if (!strcmp(component->name_prefix, "SpkrLeft")) {
|
if (!strcmp(component->name_prefix, "SpkrLeft")) {
|
||||||
dev_dbg(component->dev, "%s: setting left ch map to codec %s\n",
|
dev_dbg(component->dev, "%s: setting left ch map to codec %s\n",
|
||||||
__func__, component->name);
|
__func__, component->name);
|
||||||
|
if (strnstr(component->name, "wsa883x", sizeof(component->name)))
|
||||||
|
wsa883x_set_channel_map(component, &spkleft_ports[0],
|
||||||
|
WSA881X_MAX_SWR_PORTS, &ch_mask[0],
|
||||||
|
&ch_rate[0], &spkleft_port_types[0]);
|
||||||
|
else
|
||||||
wsa881x_set_channel_map(component, &spkleft_ports[0],
|
wsa881x_set_channel_map(component, &spkleft_ports[0],
|
||||||
WSA881X_MAX_SWR_PORTS, &ch_mask[0],
|
WSA881X_MAX_SWR_PORTS, &ch_mask[0],
|
||||||
&ch_rate[0], &spkleft_port_types[0]);
|
&ch_rate[0], &spkleft_port_types[0]);
|
||||||
@@ -7175,6 +7181,11 @@ static int msm_wsa881x_init(struct snd_soc_component *component)
|
|||||||
} else if (!strcmp(component->name_prefix, "SpkrRight")) {
|
} else if (!strcmp(component->name_prefix, "SpkrRight")) {
|
||||||
dev_dbg(component->dev, "%s: setting right ch map to codec %s\n",
|
dev_dbg(component->dev, "%s: setting right ch map to codec %s\n",
|
||||||
__func__, component->name);
|
__func__, component->name);
|
||||||
|
if (strnstr(component->name, "wsa883x", sizeof(component->name)))
|
||||||
|
wsa883x_set_channel_map(component, &spkright_ports[0],
|
||||||
|
WSA881X_MAX_SWR_PORTS, &ch_mask[0],
|
||||||
|
&ch_rate[0], &spkright_port_types[0]);
|
||||||
|
else
|
||||||
wsa881x_set_channel_map(component, &spkright_ports[0],
|
wsa881x_set_channel_map(component, &spkright_ports[0],
|
||||||
WSA881X_MAX_SWR_PORTS, &ch_mask[0],
|
WSA881X_MAX_SWR_PORTS, &ch_mask[0],
|
||||||
&ch_rate[0], &spkright_port_types[0]);
|
&ch_rate[0], &spkright_port_types[0]);
|
||||||
@@ -7200,6 +7211,10 @@ static int msm_wsa881x_init(struct snd_soc_component *component)
|
|||||||
}
|
}
|
||||||
pdata->codec_root = entry;
|
pdata->codec_root = entry;
|
||||||
}
|
}
|
||||||
|
if (strnstr(component->name, "wsa883x", sizeof(component->name)))
|
||||||
|
wsa883x_codec_info_create_codec_entry(pdata->codec_root,
|
||||||
|
component);
|
||||||
|
else
|
||||||
wsa881x_codec_info_create_codec_entry(pdata->codec_root,
|
wsa881x_codec_info_create_codec_entry(pdata->codec_root,
|
||||||
component);
|
component);
|
||||||
err:
|
err:
|
||||||
|
Reference in New Issue
Block a user