Commit f2470d52 authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branches 'asoc/topic/bcm2835', 'asoc/topic/cs42l56' and...

Merge remote-tracking branches 'asoc/topic/bcm2835', 'asoc/topic/cs42l56' and 'asoc/topic/cs43130' into asoc-next
...@@ -55,7 +55,7 @@ Example: ...@@ -55,7 +55,7 @@ Example:
codec: codec@4b { codec: codec@4b {
compatible = "cirrus,cs42l56"; compatible = "cirrus,cs42l56";
reg = <0x4b>; reg = <0x4b>;
gpio-reset = <&gpio 10 0>; cirrus,gpio-nreset = <&gpio 10 0>;
cirrus,chgfreq-divisor = <0x05>; cirrus,chgfreq-divisor = <0x05>;
cirrus.ain1_ref_cfg; cirrus.ain1_ref_cfg;
cirrus,micbias-lvl = <5>; cirrus,micbias-lvl = <5>;
......
This diff is collapsed.
...@@ -909,6 +909,7 @@ static int cs43130_hw_params(struct snd_pcm_substream *substream, ...@@ -909,6 +909,7 @@ static int cs43130_hw_params(struct snd_pcm_substream *substream,
regmap_update_bits(cs43130->regmap, CS43130_DSD_PATH_CTL_2, regmap_update_bits(cs43130->regmap, CS43130_DSD_PATH_CTL_2,
CS43130_DSD_SRC_MASK, CS43130_DSD_SRC_XSP << CS43130_DSD_SRC_MASK, CS43130_DSD_SRC_XSP <<
CS43130_DSD_SRC_SHIFT); CS43130_DSD_SRC_SHIFT);
break;
} }
if (!sclk && cs43130->dais[dai->id].dai_mode == SND_SOC_DAIFMT_CBM_CFM) if (!sclk && cs43130->dais[dai->id].dai_mode == SND_SOC_DAIFMT_CBM_CFM)
...@@ -1039,6 +1040,7 @@ static int cs43130_pcm_ch_put(struct snd_kcontrol *kcontrol, ...@@ -1039,6 +1040,7 @@ static int cs43130_pcm_ch_put(struct snd_kcontrol *kcontrol,
else else
regmap_multi_reg_write(cs43130->regmap, pcm_ch_dis_seq, regmap_multi_reg_write(cs43130->regmap, pcm_ch_dis_seq,
ARRAY_SIZE(pcm_ch_dis_seq)); ARRAY_SIZE(pcm_ch_dis_seq));
break;
} }
return snd_soc_put_enum_double(kcontrol, ucontrol); return snd_soc_put_enum_double(kcontrol, ucontrol);
...@@ -1152,6 +1154,7 @@ static int cs43130_dsd_event(struct snd_soc_dapm_widget *w, ...@@ -1152,6 +1154,7 @@ static int cs43130_dsd_event(struct snd_soc_dapm_widget *w,
case CS4399_CHIP_ID: case CS4399_CHIP_ID:
regmap_multi_reg_write(cs43130->regmap, dsd_seq, regmap_multi_reg_write(cs43130->regmap, dsd_seq,
ARRAY_SIZE(dsd_seq)); ARRAY_SIZE(dsd_seq));
break;
} }
break; break;
case SND_SOC_DAPM_POST_PMU: case SND_SOC_DAPM_POST_PMU:
...@@ -1162,6 +1165,7 @@ static int cs43130_dsd_event(struct snd_soc_dapm_widget *w, ...@@ -1162,6 +1165,7 @@ static int cs43130_dsd_event(struct snd_soc_dapm_widget *w,
case CS4399_CHIP_ID: case CS4399_CHIP_ID:
regmap_multi_reg_write(cs43130->regmap, unmute_seq, regmap_multi_reg_write(cs43130->regmap, unmute_seq,
ARRAY_SIZE(unmute_seq)); ARRAY_SIZE(unmute_seq));
break;
} }
break; break;
case SND_SOC_DAPM_PRE_PMD: case SND_SOC_DAPM_PRE_PMD:
...@@ -1184,6 +1188,7 @@ static int cs43130_dsd_event(struct snd_soc_dapm_widget *w, ...@@ -1184,6 +1188,7 @@ static int cs43130_dsd_event(struct snd_soc_dapm_widget *w,
regmap_update_bits(cs43130->regmap, regmap_update_bits(cs43130->regmap,
CS43130_DSD_PATH_CTL_1, CS43130_DSD_PATH_CTL_1,
CS43130_MUTE_MASK, CS43130_MUTE_EN); CS43130_MUTE_MASK, CS43130_MUTE_EN);
break;
} }
break; break;
default: default:
...@@ -1206,6 +1211,7 @@ static int cs43130_pcm_event(struct snd_soc_dapm_widget *w, ...@@ -1206,6 +1211,7 @@ static int cs43130_pcm_event(struct snd_soc_dapm_widget *w,
case CS4399_CHIP_ID: case CS4399_CHIP_ID:
regmap_multi_reg_write(cs43130->regmap, pcm_seq, regmap_multi_reg_write(cs43130->regmap, pcm_seq,
ARRAY_SIZE(pcm_seq)); ARRAY_SIZE(pcm_seq));
break;
} }
break; break;
case SND_SOC_DAPM_POST_PMU: case SND_SOC_DAPM_POST_PMU:
...@@ -1216,6 +1222,7 @@ static int cs43130_pcm_event(struct snd_soc_dapm_widget *w, ...@@ -1216,6 +1222,7 @@ static int cs43130_pcm_event(struct snd_soc_dapm_widget *w,
case CS4399_CHIP_ID: case CS4399_CHIP_ID:
regmap_multi_reg_write(cs43130->regmap, unmute_seq, regmap_multi_reg_write(cs43130->regmap, unmute_seq,
ARRAY_SIZE(unmute_seq)); ARRAY_SIZE(unmute_seq));
break;
} }
break; break;
case SND_SOC_DAPM_PRE_PMD: case SND_SOC_DAPM_PRE_PMD:
...@@ -1238,6 +1245,7 @@ static int cs43130_pcm_event(struct snd_soc_dapm_widget *w, ...@@ -1238,6 +1245,7 @@ static int cs43130_pcm_event(struct snd_soc_dapm_widget *w,
regmap_update_bits(cs43130->regmap, regmap_update_bits(cs43130->regmap,
CS43130_PCM_PATH_CTL_1, CS43130_PCM_PATH_CTL_1,
CS43130_MUTE_MASK, CS43130_MUTE_EN); CS43130_MUTE_MASK, CS43130_MUTE_EN);
break;
} }
break; break;
default: default:
...@@ -1277,6 +1285,7 @@ static int cs43130_dac_event(struct snd_soc_dapm_widget *w, ...@@ -1277,6 +1285,7 @@ static int cs43130_dac_event(struct snd_soc_dapm_widget *w,
case CS43198_CHIP_ID: case CS43198_CHIP_ID:
regmap_multi_reg_write(cs43130->regmap, pop_free_seq2, regmap_multi_reg_write(cs43130->regmap, pop_free_seq2,
ARRAY_SIZE(pop_free_seq2)); ARRAY_SIZE(pop_free_seq2));
break;
} }
break; break;
case SND_SOC_DAPM_POST_PMU: case SND_SOC_DAPM_POST_PMU:
...@@ -1301,6 +1310,7 @@ static int cs43130_dac_event(struct snd_soc_dapm_widget *w, ...@@ -1301,6 +1310,7 @@ static int cs43130_dac_event(struct snd_soc_dapm_widget *w,
case CS43198_CHIP_ID: case CS43198_CHIP_ID:
usleep_range(12000, 12010); usleep_range(12000, 12010);
regmap_write(cs43130->regmap, CS43130_DXD13, 0); regmap_write(cs43130->regmap, CS43130_DXD13, 0);
break;
} }
regmap_write(cs43130->regmap, CS43130_DXD1, 0); regmap_write(cs43130->regmap, CS43130_DXD1, 0);
...@@ -1311,6 +1321,7 @@ static int cs43130_dac_event(struct snd_soc_dapm_widget *w, ...@@ -1311,6 +1321,7 @@ static int cs43130_dac_event(struct snd_soc_dapm_widget *w,
case CS4399_CHIP_ID: case CS4399_CHIP_ID:
regmap_multi_reg_write(cs43130->regmap, dac_postpmd_seq, regmap_multi_reg_write(cs43130->regmap, dac_postpmd_seq,
ARRAY_SIZE(dac_postpmd_seq)); ARRAY_SIZE(dac_postpmd_seq));
break;
} }
break; break;
default: default:
...@@ -2133,6 +2144,7 @@ static void cs43130_imp_meas(struct work_struct *wk) ...@@ -2133,6 +2144,7 @@ static void cs43130_imp_meas(struct work_struct *wk)
cs43130_hpload_proc(cs43130, hp_dis_cal_seq2, cs43130_hpload_proc(cs43130, hp_dis_cal_seq2,
ARRAY_SIZE(hp_dis_cal_seq2), ARRAY_SIZE(hp_dis_cal_seq2),
CS43130_HPLOAD_OFF_INT, ac_idx); CS43130_HPLOAD_OFF_INT, ac_idx);
break;
} }
regmap_multi_reg_write(cs43130->regmap, hp_cln_seq, regmap_multi_reg_write(cs43130->regmap, hp_cln_seq,
...@@ -2543,6 +2555,7 @@ static int cs43130_i2c_probe(struct i2c_client *client, ...@@ -2543,6 +2555,7 @@ static int cs43130_i2c_probe(struct i2c_client *client,
digital_hp_routes; digital_hp_routes;
soc_codec_dev_cs43130.component_driver.num_dapm_routes = soc_codec_dev_cs43130.component_driver.num_dapm_routes =
ARRAY_SIZE(digital_hp_routes); ARRAY_SIZE(digital_hp_routes);
break;
} }
ret = snd_soc_register_codec(&client->dev, &soc_codec_dev_cs43130, ret = snd_soc_register_codec(&client->dev, &soc_codec_dev_cs43130,
...@@ -2586,8 +2599,7 @@ static int cs43130_i2c_remove(struct i2c_client *client) ...@@ -2586,8 +2599,7 @@ static int cs43130_i2c_remove(struct i2c_client *client)
device_remove_file(&client->dev, &dev_attr_hpload_ac_r); device_remove_file(&client->dev, &dev_attr_hpload_ac_r);
} }
if (cs43130->reset_gpio) gpiod_set_value_cansleep(cs43130->reset_gpio, 0);
gpiod_set_value_cansleep(cs43130->reset_gpio, 0);
pm_runtime_disable(&client->dev); pm_runtime_disable(&client->dev);
regulator_bulk_disable(CS43130_NUM_SUPPLIES, cs43130->supplies); regulator_bulk_disable(CS43130_NUM_SUPPLIES, cs43130->supplies);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment