|
@@ -127,15 +127,8 @@ static const struct snd_soc_dapm_route hx4700_audio_map[] = {
|
|
static int hx4700_ak4641_init(struct snd_soc_pcm_runtime *rtd)
|
|
static int hx4700_ak4641_init(struct snd_soc_pcm_runtime *rtd)
|
|
{
|
|
{
|
|
struct snd_soc_codec *codec = rtd->codec;
|
|
struct snd_soc_codec *codec = rtd->codec;
|
|
- struct snd_soc_dapm_context *dapm = &codec->dapm;
|
|
|
|
int err;
|
|
int err;
|
|
|
|
|
|
- /* NC codec pins */
|
|
|
|
- /* FIXME: is anything connected here? */
|
|
|
|
- snd_soc_dapm_nc_pin(dapm, "MOUT1");
|
|
|
|
- snd_soc_dapm_nc_pin(dapm, "MICEXT");
|
|
|
|
- snd_soc_dapm_nc_pin(dapm, "AUX");
|
|
|
|
-
|
|
|
|
/* Jack detection API stuff */
|
|
/* Jack detection API stuff */
|
|
err = snd_soc_jack_new(codec, "Headphone Jack",
|
|
err = snd_soc_jack_new(codec, "Headphone Jack",
|
|
SND_JACK_HEADPHONE, &hs_jack);
|
|
SND_JACK_HEADPHONE, &hs_jack);
|
|
@@ -184,6 +177,7 @@ static struct snd_soc_card snd_soc_card_hx4700 = {
|
|
.num_dapm_widgets = ARRAY_SIZE(hx4700_dapm_widgets),
|
|
.num_dapm_widgets = ARRAY_SIZE(hx4700_dapm_widgets),
|
|
.dapm_routes = hx4700_audio_map,
|
|
.dapm_routes = hx4700_audio_map,
|
|
.num_dapm_routes = ARRAY_SIZE(hx4700_audio_map),
|
|
.num_dapm_routes = ARRAY_SIZE(hx4700_audio_map),
|
|
|
|
+ .fully_routed = true,
|
|
};
|
|
};
|
|
|
|
|
|
static struct gpio hx4700_audio_gpios[] = {
|
|
static struct gpio hx4700_audio_gpios[] = {
|