mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
ASoC: Merge up fixes
Some of these, particularly the wm_adsp one in the immediate case, are needed as a basis for new work.
This commit is contained in:
@@ -56,6 +56,9 @@ struct hdac_ext_stream {
|
||||
u32 pphcldpl;
|
||||
u32 pphcldpu;
|
||||
|
||||
u32 pplcllpl;
|
||||
u32 pplcllpu;
|
||||
|
||||
bool decoupled:1;
|
||||
bool link_locked:1;
|
||||
bool link_prepared;
|
||||
|
||||
@@ -115,7 +115,10 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
|
||||
goto unregister_dmic_dev;
|
||||
}
|
||||
|
||||
acp_init(chip);
|
||||
ret = acp_init(chip);
|
||||
if (ret)
|
||||
goto unregister_dmic_dev;
|
||||
|
||||
res = devm_kcalloc(&pci->dev, num_res, sizeof(struct resource), GFP_KERNEL);
|
||||
if (!res) {
|
||||
ret = -ENOMEM;
|
||||
@@ -133,11 +136,9 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
|
||||
}
|
||||
}
|
||||
|
||||
if (flag == FLAG_AMD_LEGACY_ONLY_DMIC) {
|
||||
ret = check_acp_pdm(pci, chip);
|
||||
if (ret < 0)
|
||||
goto skip_pdev_creation;
|
||||
}
|
||||
ret = check_acp_pdm(pci, chip);
|
||||
if (ret < 0)
|
||||
goto skip_pdev_creation;
|
||||
|
||||
chip->flag = flag;
|
||||
memset(&pdevinfo, 0, sizeof(pdevinfo));
|
||||
|
||||
@@ -56,6 +56,11 @@ static int _cs_amp_write_cal_coeffs(struct cs_dsp *dsp,
|
||||
dev_dbg(dsp->dev, "Calibration: Ambient=%#x, Status=%#x, CalR=%d\n",
|
||||
data->calAmbient, data->calStatus, data->calR);
|
||||
|
||||
if (list_empty(&dsp->ctl_list)) {
|
||||
dev_info(dsp->dev, "Calibration disabled due to missing firmware controls\n");
|
||||
return -ENOENT;
|
||||
}
|
||||
|
||||
ret = cs_amp_write_cal_coeff(dsp, controls, controls->ambient, data->calAmbient);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@@ -2364,7 +2364,8 @@ static int cs42l43_codec_runtime_resume(struct device *dev)
|
||||
|
||||
static int cs42l43_codec_suspend(struct device *dev)
|
||||
{
|
||||
struct cs42l43 *cs42l43 = dev_get_drvdata(dev);
|
||||
struct cs42l43_codec *priv = dev_get_drvdata(dev);
|
||||
struct cs42l43 *cs42l43 = priv->core;
|
||||
|
||||
disable_irq(cs42l43->irq);
|
||||
|
||||
@@ -2373,7 +2374,8 @@ static int cs42l43_codec_suspend(struct device *dev)
|
||||
|
||||
static int cs42l43_codec_suspend_noirq(struct device *dev)
|
||||
{
|
||||
struct cs42l43 *cs42l43 = dev_get_drvdata(dev);
|
||||
struct cs42l43_codec *priv = dev_get_drvdata(dev);
|
||||
struct cs42l43 *cs42l43 = priv->core;
|
||||
|
||||
enable_irq(cs42l43->irq);
|
||||
|
||||
@@ -2382,7 +2384,8 @@ static int cs42l43_codec_suspend_noirq(struct device *dev)
|
||||
|
||||
static int cs42l43_codec_resume(struct device *dev)
|
||||
{
|
||||
struct cs42l43 *cs42l43 = dev_get_drvdata(dev);
|
||||
struct cs42l43_codec *priv = dev_get_drvdata(dev);
|
||||
struct cs42l43 *cs42l43 = priv->core;
|
||||
|
||||
enable_irq(cs42l43->irq);
|
||||
|
||||
@@ -2391,7 +2394,8 @@ static int cs42l43_codec_resume(struct device *dev)
|
||||
|
||||
static int cs42l43_codec_resume_noirq(struct device *dev)
|
||||
{
|
||||
struct cs42l43 *cs42l43 = dev_get_drvdata(dev);
|
||||
struct cs42l43_codec *priv = dev_get_drvdata(dev);
|
||||
struct cs42l43 *cs42l43 = priv->core;
|
||||
|
||||
disable_irq(cs42l43->irq);
|
||||
|
||||
|
||||
+21
-16
@@ -404,9 +404,9 @@ static const struct _coeff_div coeff_div_v3[] = {
|
||||
{125, 48000, 6000000, 0x04, 0x04, 0x1F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
|
||||
|
||||
{128, 8000, 1024000, 0x60, 0x00, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
|
||||
{128, 16000, 2048000, 0x20, 0x00, 0x31, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
|
||||
{128, 44100, 5644800, 0xE0, 0x00, 0x01, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{128, 48000, 6144000, 0xE0, 0x00, 0x01, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{128, 16000, 2048000, 0x20, 0x00, 0x31, 0x35, 0x08, 0x19, 0x1F, 0x3F},
|
||||
{128, 44100, 5644800, 0xE0, 0x00, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
|
||||
{128, 48000, 6144000, 0xE0, 0x00, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
|
||||
{144, 8000, 1152000, 0x20, 0x00, 0x03, 0x35, 0x8A, 0x1B, 0x23, 0x47},
|
||||
{144, 16000, 2304000, 0x20, 0x00, 0x11, 0x35, 0x8A, 0x1B, 0x23, 0x47},
|
||||
{192, 8000, 1536000, 0x60, 0x02, 0x0D, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
|
||||
@@ -415,10 +415,10 @@ static const struct _coeff_div coeff_div_v3[] = {
|
||||
|
||||
{200, 48000, 9600000, 0x04, 0x04, 0x0F, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{250, 48000, 12000000, 0x04, 0x04, 0x0F, 0x2D, 0xCA, 0x0A, 0x27, 0x27},
|
||||
{256, 8000, 2048000, 0x60, 0x00, 0x31, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
|
||||
{256, 16000, 4096000, 0x20, 0x00, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
|
||||
{256, 44100, 11289600, 0xE0, 0x00, 0x30, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{256, 48000, 12288000, 0xE0, 0x00, 0x30, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{256, 8000, 2048000, 0x60, 0x00, 0x31, 0x35, 0x08, 0x19, 0x1F, 0x7F},
|
||||
{256, 16000, 4096000, 0x20, 0x00, 0x01, 0x35, 0x08, 0x19, 0x1F, 0x3F},
|
||||
{256, 44100, 11289600, 0xE0, 0x01, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
|
||||
{256, 48000, 12288000, 0xE0, 0x01, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
|
||||
{288, 8000, 2304000, 0x20, 0x00, 0x01, 0x35, 0x8A, 0x1B, 0x23, 0x47},
|
||||
{384, 8000, 3072000, 0x60, 0x02, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
|
||||
{384, 16000, 6144000, 0x20, 0x02, 0x03, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
|
||||
@@ -427,10 +427,10 @@ static const struct _coeff_div coeff_div_v3[] = {
|
||||
|
||||
{400, 48000, 19200000, 0xE4, 0x04, 0x35, 0x6d, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{500, 48000, 24000000, 0xF8, 0x04, 0x3F, 0x6D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{512, 8000, 4096000, 0x60, 0x00, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
|
||||
{512, 16000, 8192000, 0x20, 0x00, 0x30, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
|
||||
{512, 44100, 22579200, 0xE0, 0x00, 0x00, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{512, 48000, 24576000, 0xE0, 0x00, 0x00, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
{512, 8000, 4096000, 0x60, 0x00, 0x01, 0x08, 0x19, 0x1B, 0x1F, 0x7F},
|
||||
{512, 16000, 8192000, 0x20, 0x00, 0x30, 0x35, 0x08, 0x19, 0x1F, 0x3F},
|
||||
{512, 44100, 22579200, 0xE0, 0x00, 0x00, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
|
||||
{512, 48000, 24576000, 0xE0, 0x00, 0x00, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
|
||||
{768, 8000, 6144000, 0x60, 0x02, 0x11, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
|
||||
{768, 16000, 12288000, 0x20, 0x02, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
|
||||
{768, 32000, 24576000, 0xE0, 0x02, 0x30, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
|
||||
@@ -827,7 +827,6 @@ static void es8326_jack_detect_handler(struct work_struct *work)
|
||||
dev_dbg(comp->dev, "Report hp remove event\n");
|
||||
snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET);
|
||||
/* mute adc when mic path switch */
|
||||
regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33);
|
||||
regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44);
|
||||
regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x66);
|
||||
es8326->hp = 0;
|
||||
@@ -835,6 +834,7 @@ static void es8326_jack_detect_handler(struct work_struct *work)
|
||||
regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x01);
|
||||
regmap_write(es8326->regmap, ES8326_SYS_BIAS, 0x0a);
|
||||
regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x0f, 0x03);
|
||||
regmap_write(es8326->regmap, ES8326_INT_SOURCE, ES8326_INT_SRC_PIN9);
|
||||
/*
|
||||
* Inverted HPJACK_POL bit to trigger one IRQ to double check HP Removal event
|
||||
*/
|
||||
@@ -857,6 +857,8 @@ static void es8326_jack_detect_handler(struct work_struct *work)
|
||||
* set auto-check mode, then restart jack_detect_work after 400ms.
|
||||
* Don't report jack status.
|
||||
*/
|
||||
regmap_write(es8326->regmap, ES8326_INT_SOURCE,
|
||||
(ES8326_INT_SRC_PIN9 | ES8326_INT_SRC_BUTTON));
|
||||
regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x01);
|
||||
es8326_enable_micbias(es8326->component);
|
||||
usleep_range(50000, 70000);
|
||||
@@ -883,7 +885,6 @@ static void es8326_jack_detect_handler(struct work_struct *work)
|
||||
snd_soc_jack_report(es8326->jack,
|
||||
SND_JACK_HEADSET, SND_JACK_HEADSET);
|
||||
|
||||
regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33);
|
||||
regmap_update_bits(es8326->regmap, ES8326_PGA_PDN,
|
||||
0x08, 0x08);
|
||||
regmap_update_bits(es8326->regmap, ES8326_PGAGAIN,
|
||||
@@ -979,7 +980,7 @@ static int es8326_resume(struct snd_soc_component *component)
|
||||
regmap_write(es8326->regmap, ES8326_VMIDSEL, 0x0E);
|
||||
regmap_write(es8326->regmap, ES8326_ANA_LP, 0xf0);
|
||||
usleep_range(10000, 15000);
|
||||
regmap_write(es8326->regmap, ES8326_HPJACK_TIMER, 0xe9);
|
||||
regmap_write(es8326->regmap, ES8326_HPJACK_TIMER, 0xd9);
|
||||
regmap_write(es8326->regmap, ES8326_ANA_MICBIAS, 0xcb);
|
||||
/* set headphone default type and detect pin */
|
||||
regmap_write(es8326->regmap, ES8326_HPDET_TYPE, 0x83);
|
||||
@@ -1030,8 +1031,7 @@ static int es8326_resume(struct snd_soc_component *component)
|
||||
es8326_enable_micbias(es8326->component);
|
||||
usleep_range(50000, 70000);
|
||||
regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x00);
|
||||
regmap_write(es8326->regmap, ES8326_INT_SOURCE,
|
||||
(ES8326_INT_SRC_PIN9 | ES8326_INT_SRC_BUTTON));
|
||||
regmap_write(es8326->regmap, ES8326_INT_SOURCE, ES8326_INT_SRC_PIN9);
|
||||
regmap_write(es8326->regmap, ES8326_INTOUT_IO,
|
||||
es8326->interrupt_clk);
|
||||
regmap_write(es8326->regmap, ES8326_SDINOUT1_IO,
|
||||
@@ -1052,6 +1052,8 @@ static int es8326_resume(struct snd_soc_component *component)
|
||||
es8326->hp = 0;
|
||||
es8326->hpl_vol = 0x03;
|
||||
es8326->hpr_vol = 0x03;
|
||||
|
||||
es8326_irq(es8326->irq, es8326);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1062,6 +1064,9 @@ static int es8326_suspend(struct snd_soc_component *component)
|
||||
cancel_delayed_work_sync(&es8326->jack_detect_work);
|
||||
es8326_disable_micbias(component);
|
||||
es8326->calibrated = false;
|
||||
regmap_write(es8326->regmap, ES8326_CLK_MUX, 0x2d);
|
||||
regmap_write(es8326->regmap, ES8326_DAC2HPMIX, 0x00);
|
||||
regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x3b);
|
||||
regmap_write(es8326->regmap, ES8326_CLK_CTL, ES8326_CLK_OFF);
|
||||
regcache_cache_only(es8326->regmap, true);
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
#define ES8326_MUTE (3 << 0)
|
||||
|
||||
/* ES8326_CLK_CTL */
|
||||
#define ES8326_CLK_ON (0x7e << 0)
|
||||
#define ES8326_CLK_ON (0x7f << 0)
|
||||
#define ES8326_CLK_OFF (0 << 0)
|
||||
|
||||
/* ES8326_CLK_INV */
|
||||
|
||||
@@ -537,7 +537,7 @@ static int rt1316_sdw_hw_params(struct snd_pcm_substream *substream,
|
||||
retval = sdw_stream_add_slave(rt1316->sdw_slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -577,12 +577,12 @@ static int rt1316_sdw_parse_dt(struct rt1316_sdw_priv *rt1316, struct device *de
|
||||
if (rt1316->bq_params_cnt) {
|
||||
rt1316->bq_params = devm_kzalloc(dev, rt1316->bq_params_cnt, GFP_KERNEL);
|
||||
if (!rt1316->bq_params) {
|
||||
dev_err(dev, "Could not allocate bq_params memory\n");
|
||||
dev_err(dev, "%s: Could not allocate bq_params memory\n", __func__);
|
||||
ret = -ENOMEM;
|
||||
} else {
|
||||
ret = device_property_read_u8_array(dev, "realtek,bq-params", rt1316->bq_params, rt1316->bq_params_cnt);
|
||||
if (ret < 0)
|
||||
dev_err(dev, "Could not read list of realtek,bq-params\n");
|
||||
dev_err(dev, "%s: Could not read list of realtek,bq-params\n", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -759,7 +759,7 @@ static int __maybe_unused rt1316_dev_resume(struct device *dev)
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT1316_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n", __func__);
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
@@ -606,7 +606,7 @@ static int rt1318_sdw_hw_params(struct snd_pcm_substream *substream,
|
||||
retval = sdw_stream_add_slave(rt1318->sdw_slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -631,8 +631,8 @@ static int rt1318_sdw_hw_params(struct snd_pcm_substream *substream,
|
||||
sampling_rate = RT1318_SDCA_RATE_192000HZ;
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Rate %d is not supported\n",
|
||||
params_rate(params));
|
||||
dev_err(component->dev, "%s: Rate %d is not supported\n",
|
||||
__func__, params_rate(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -835,7 +835,7 @@ static int __maybe_unused rt1318_dev_resume(struct device *dev)
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT1318_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n", __func__);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ static int rt5682_sdw_hw_params(struct snd_pcm_substream *substream,
|
||||
retval = sdw_stream_add_slave(rt5682->slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -315,8 +315,8 @@ static int rt5682_sdw_init(struct device *dev, struct regmap *regmap,
|
||||
&rt5682_sdw_indirect_regmap);
|
||||
if (IS_ERR(rt5682->regmap)) {
|
||||
ret = PTR_ERR(rt5682->regmap);
|
||||
dev_err(dev, "Failed to allocate register map: %d\n",
|
||||
ret);
|
||||
dev_err(dev, "%s: Failed to allocate register map: %d\n",
|
||||
__func__, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -400,7 +400,7 @@ static int rt5682_io_init(struct device *dev, struct sdw_slave *slave)
|
||||
}
|
||||
|
||||
if (val != DEVICE_ID) {
|
||||
dev_err(dev, "Device with ID register %x is not rt5682\n", val);
|
||||
dev_err(dev, "%s: Device with ID register %x is not rt5682\n", __func__, val);
|
||||
ret = -ENODEV;
|
||||
goto err_nodev;
|
||||
}
|
||||
@@ -648,7 +648,7 @@ static int rt5682_bus_config(struct sdw_slave *slave,
|
||||
|
||||
ret = rt5682_clock_config(&slave->dev);
|
||||
if (ret < 0)
|
||||
dev_err(&slave->dev, "Invalid clk config");
|
||||
dev_err(&slave->dev, "%s: Invalid clk config", __func__);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -763,19 +763,19 @@ static int __maybe_unused rt5682_dev_resume(struct device *dev)
|
||||
return 0;
|
||||
|
||||
if (!slave->unattach_request) {
|
||||
mutex_lock(&rt5682->disable_irq_lock);
|
||||
if (rt5682->disable_irq == true) {
|
||||
mutex_lock(&rt5682->disable_irq_lock);
|
||||
sdw_write_no_pm(slave, SDW_SCP_INTMASK1, SDW_SCP_INT1_IMPL_DEF);
|
||||
rt5682->disable_irq = false;
|
||||
mutex_unlock(&rt5682->disable_irq_lock);
|
||||
}
|
||||
mutex_unlock(&rt5682->disable_irq_lock);
|
||||
goto regmap_sync;
|
||||
}
|
||||
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT5682_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n", __func__);
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
@@ -37,8 +37,8 @@ static int rt700_index_write(struct regmap *regmap,
|
||||
|
||||
ret = regmap_write(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
pr_err("Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
addr, value, ret);
|
||||
pr_err("%s: Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
__func__, addr, value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -52,8 +52,8 @@ static int rt700_index_read(struct regmap *regmap,
|
||||
*value = 0;
|
||||
ret = regmap_read(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
pr_err("Failed to get private value: %06x => %04x ret=%d\n",
|
||||
addr, *value, ret);
|
||||
pr_err("%s: Failed to get private value: %06x => %04x ret=%d\n",
|
||||
__func__, addr, *value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -930,14 +930,14 @@ static int rt700_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
port_config.num += 2;
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Invalid DAI id %d\n", dai->id);
|
||||
dev_err(component->dev, "%s: Invalid DAI id %d\n", __func__, dai->id);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
retval = sdw_stream_add_slave(rt700->slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -945,8 +945,8 @@ static int rt700_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
/* bit 3:0 Number of Channel */
|
||||
val |= (params_channels(params) - 1);
|
||||
} else {
|
||||
dev_err(component->dev, "Unsupported channels %d\n",
|
||||
params_channels(params));
|
||||
dev_err(component->dev, "%s: Unsupported channels %d\n",
|
||||
__func__, params_channels(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
@@ -438,20 +438,20 @@ static int __maybe_unused rt711_sdca_dev_resume(struct device *dev)
|
||||
return 0;
|
||||
|
||||
if (!slave->unattach_request) {
|
||||
mutex_lock(&rt711->disable_irq_lock);
|
||||
if (rt711->disable_irq == true) {
|
||||
mutex_lock(&rt711->disable_irq_lock);
|
||||
sdw_write_no_pm(slave, SDW_SCP_SDCA_INTMASK1, SDW_SCP_SDCA_INTMASK_SDCA_0);
|
||||
sdw_write_no_pm(slave, SDW_SCP_SDCA_INTMASK2, SDW_SCP_SDCA_INTMASK_SDCA_8);
|
||||
rt711->disable_irq = false;
|
||||
mutex_unlock(&rt711->disable_irq_lock);
|
||||
}
|
||||
mutex_unlock(&rt711->disable_irq_lock);
|
||||
goto regmap_sync;
|
||||
}
|
||||
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT711_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n", __func__);
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
@@ -36,8 +36,8 @@ static int rt711_sdca_index_write(struct rt711_sdca_priv *rt711,
|
||||
ret = regmap_write(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt711->slave->dev,
|
||||
"Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
addr, value, ret);
|
||||
"%s: Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
__func__, addr, value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -52,8 +52,8 @@ static int rt711_sdca_index_read(struct rt711_sdca_priv *rt711,
|
||||
ret = regmap_read(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt711->slave->dev,
|
||||
"Failed to get private value: %06x => %04x ret=%d\n",
|
||||
addr, *value, ret);
|
||||
"%s: Failed to get private value: %06x => %04x ret=%d\n",
|
||||
__func__, addr, *value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -1293,13 +1293,13 @@ static int rt711_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
retval = sdw_stream_add_slave(rt711->slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
if (params_channels(params) > 16) {
|
||||
dev_err(component->dev, "Unsupported channels %d\n",
|
||||
params_channels(params));
|
||||
dev_err(component->dev, "%s: Unsupported channels %d\n",
|
||||
__func__, params_channels(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1318,8 +1318,8 @@ static int rt711_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
sampling_rate = RT711_SDCA_RATE_192000HZ;
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Rate %d is not supported\n",
|
||||
params_rate(params));
|
||||
dev_err(component->dev, "%s: Rate %d is not supported\n",
|
||||
__func__, params_rate(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
@@ -408,7 +408,7 @@ static int rt711_bus_config(struct sdw_slave *slave,
|
||||
|
||||
ret = rt711_clock_config(&slave->dev);
|
||||
if (ret < 0)
|
||||
dev_err(&slave->dev, "Invalid clk config");
|
||||
dev_err(&slave->dev, "%s: Invalid clk config", __func__);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -536,19 +536,19 @@ static int __maybe_unused rt711_dev_resume(struct device *dev)
|
||||
return 0;
|
||||
|
||||
if (!slave->unattach_request) {
|
||||
mutex_lock(&rt711->disable_irq_lock);
|
||||
if (rt711->disable_irq == true) {
|
||||
mutex_lock(&rt711->disable_irq_lock);
|
||||
sdw_write_no_pm(slave, SDW_SCP_INTMASK1, SDW_SCP_INT1_IMPL_DEF);
|
||||
rt711->disable_irq = false;
|
||||
mutex_unlock(&rt711->disable_irq_lock);
|
||||
}
|
||||
mutex_unlock(&rt711->disable_irq_lock);
|
||||
goto regmap_sync;
|
||||
}
|
||||
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT711_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n", __func__);
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ static int rt711_index_write(struct regmap *regmap,
|
||||
|
||||
ret = regmap_write(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
pr_err("Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
addr, value, ret);
|
||||
pr_err("%s: Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
__func__, addr, value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -52,8 +52,8 @@ static int rt711_index_read(struct regmap *regmap,
|
||||
*value = 0;
|
||||
ret = regmap_read(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
pr_err("Failed to get private value: %06x => %04x ret=%d\n",
|
||||
addr, *value, ret);
|
||||
pr_err("%s: Failed to get private value: %06x => %04x ret=%d\n",
|
||||
__func__, addr, *value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -428,7 +428,7 @@ static void rt711_jack_init(struct rt711_priv *rt711)
|
||||
RT711_HP_JD_FINAL_RESULT_CTL_JD12);
|
||||
break;
|
||||
default:
|
||||
dev_warn(rt711->component->dev, "Wrong JD source\n");
|
||||
dev_warn(rt711->component->dev, "%s: Wrong JD source\n", __func__);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1020,7 +1020,7 @@ static int rt711_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
retval = sdw_stream_add_slave(rt711->slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -1028,8 +1028,8 @@ static int rt711_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
/* bit 3:0 Number of Channel */
|
||||
val |= (params_channels(params) - 1);
|
||||
} else {
|
||||
dev_err(component->dev, "Unsupported channels %d\n",
|
||||
params_channels(params));
|
||||
dev_err(component->dev, "%s: Unsupported channels %d\n",
|
||||
__func__, params_channels(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
@@ -139,8 +139,8 @@ static int rt712_sdca_dmic_index_write(struct rt712_sdca_dmic_priv *rt712,
|
||||
ret = regmap_write(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt712->slave->dev,
|
||||
"Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
addr, value, ret);
|
||||
"%s: Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
__func__, addr, value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -155,8 +155,8 @@ static int rt712_sdca_dmic_index_read(struct rt712_sdca_dmic_priv *rt712,
|
||||
ret = regmap_read(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt712->slave->dev,
|
||||
"Failed to get private value: %06x => %04x ret=%d\n",
|
||||
addr, *value, ret);
|
||||
"%s: Failed to get private value: %06x => %04x ret=%d\n",
|
||||
__func__, addr, *value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -317,7 +317,8 @@ static int rt712_sdca_dmic_set_gain_put(struct snd_kcontrol *kcontrol,
|
||||
for (i = 0; i < p->count; i++) {
|
||||
err = regmap_write(rt712->mbq_regmap, p->reg_base + i, gain_val[i]);
|
||||
if (err < 0)
|
||||
dev_err(&rt712->slave->dev, "0x%08x can't be set\n", p->reg_base + i);
|
||||
dev_err(&rt712->slave->dev, "%s: 0x%08x can't be set\n",
|
||||
__func__, p->reg_base + i);
|
||||
}
|
||||
|
||||
return changed;
|
||||
@@ -667,13 +668,13 @@ static int rt712_sdca_dmic_hw_params(struct snd_pcm_substream *substream,
|
||||
retval = sdw_stream_add_slave(rt712->slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
if (params_channels(params) > 4) {
|
||||
dev_err(component->dev, "Unsupported channels %d\n",
|
||||
params_channels(params));
|
||||
dev_err(component->dev, "%s: Unsupported channels %d\n",
|
||||
__func__, params_channels(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -698,8 +699,8 @@ static int rt712_sdca_dmic_hw_params(struct snd_pcm_substream *substream,
|
||||
sampling_rate = RT712_SDCA_RATE_192000HZ;
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Rate %d is not supported\n",
|
||||
params_rate(params));
|
||||
dev_err(component->dev, "%s: Rate %d is not supported\n",
|
||||
__func__, params_rate(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -923,7 +924,8 @@ static int __maybe_unused rt712_sdca_dmic_dev_resume(struct device *dev)
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT712_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n",
|
||||
__func__);
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
@@ -438,20 +438,21 @@ static int __maybe_unused rt712_sdca_dev_resume(struct device *dev)
|
||||
return 0;
|
||||
|
||||
if (!slave->unattach_request) {
|
||||
mutex_lock(&rt712->disable_irq_lock);
|
||||
if (rt712->disable_irq == true) {
|
||||
mutex_lock(&rt712->disable_irq_lock);
|
||||
|
||||
sdw_write_no_pm(slave, SDW_SCP_SDCA_INTMASK1, SDW_SCP_SDCA_INTMASK_SDCA_0);
|
||||
sdw_write_no_pm(slave, SDW_SCP_SDCA_INTMASK2, SDW_SCP_SDCA_INTMASK_SDCA_8);
|
||||
rt712->disable_irq = false;
|
||||
mutex_unlock(&rt712->disable_irq_lock);
|
||||
}
|
||||
mutex_unlock(&rt712->disable_irq_lock);
|
||||
goto regmap_sync;
|
||||
}
|
||||
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT712_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n", __func__);
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
@@ -34,8 +34,8 @@ static int rt712_sdca_index_write(struct rt712_sdca_priv *rt712,
|
||||
ret = regmap_write(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt712->slave->dev,
|
||||
"Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
addr, value, ret);
|
||||
"%s: Failed to set private value: %06x <= %04x ret=%d\n",
|
||||
__func__, addr, value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -50,8 +50,8 @@ static int rt712_sdca_index_read(struct rt712_sdca_priv *rt712,
|
||||
ret = regmap_read(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt712->slave->dev,
|
||||
"Failed to get private value: %06x => %04x ret=%d\n",
|
||||
addr, *value, ret);
|
||||
"%s: Failed to get private value: %06x => %04x ret=%d\n",
|
||||
__func__, addr, *value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -1060,13 +1060,13 @@ static int rt712_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
retval = sdw_stream_add_slave(rt712->slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(dai->dev, "Unable to configure port\n");
|
||||
dev_err(dai->dev, "%s: Unable to configure port\n", __func__);
|
||||
return retval;
|
||||
}
|
||||
|
||||
if (params_channels(params) > 16) {
|
||||
dev_err(component->dev, "Unsupported channels %d\n",
|
||||
params_channels(params));
|
||||
dev_err(component->dev, "%s: Unsupported channels %d\n",
|
||||
__func__, params_channels(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1085,8 +1085,8 @@ static int rt712_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
sampling_rate = RT712_SDCA_RATE_192000HZ;
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Rate %d is not supported\n",
|
||||
params_rate(params));
|
||||
dev_err(component->dev, "%s: Rate %d is not supported\n",
|
||||
__func__, params_rate(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@@ -1106,7 +1106,7 @@ static int rt712_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
sampling_rate);
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Wrong DAI id\n");
|
||||
dev_err(component->dev, "%s: Wrong DAI id\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ static int __maybe_unused rt715_dev_resume(struct device *dev)
|
||||
time = wait_for_completion_timeout(&slave->enumeration_complete,
|
||||
msecs_to_jiffies(RT715_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Enumeration not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Enumeration not complete, timed out\n", __func__);
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
@@ -41,8 +41,8 @@ static int rt715_sdca_index_write(struct rt715_sdca_priv *rt715,
|
||||
ret = regmap_write(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt715->slave->dev,
|
||||
"Failed to set private value: %08x <= %04x %d\n",
|
||||
addr, value, ret);
|
||||
"%s: Failed to set private value: %08x <= %04x %d\n",
|
||||
__func__, addr, value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -59,8 +59,8 @@ static int rt715_sdca_index_read(struct rt715_sdca_priv *rt715,
|
||||
ret = regmap_read(regmap, addr, value);
|
||||
if (ret < 0)
|
||||
dev_err(&rt715->slave->dev,
|
||||
"Failed to get private value: %06x => %04x ret=%d\n",
|
||||
addr, *value, ret);
|
||||
"%s: Failed to get private value: %06x => %04x ret=%d\n",
|
||||
__func__, addr, *value, ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -152,8 +152,8 @@ static int rt715_sdca_set_amp_gain_put(struct snd_kcontrol *kcontrol,
|
||||
mc->shift);
|
||||
ret = regmap_write(rt715->mbq_regmap, mc->reg + i, gain_val);
|
||||
if (ret != 0) {
|
||||
dev_err(component->dev, "Failed to write 0x%x=0x%x\n",
|
||||
mc->reg + i, gain_val);
|
||||
dev_err(component->dev, "%s: Failed to write 0x%x=0x%x\n",
|
||||
__func__, mc->reg + i, gain_val);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@@ -188,8 +188,8 @@ static int rt715_sdca_set_amp_gain_4ch_put(struct snd_kcontrol *kcontrol,
|
||||
ret = regmap_write(rt715->mbq_regmap, reg_base + i,
|
||||
gain_val);
|
||||
if (ret != 0) {
|
||||
dev_err(component->dev, "Failed to write 0x%x=0x%x\n",
|
||||
reg_base + i, gain_val);
|
||||
dev_err(component->dev, "%s: Failed to write 0x%x=0x%x\n",
|
||||
__func__, reg_base + i, gain_val);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@@ -224,8 +224,8 @@ static int rt715_sdca_set_amp_gain_8ch_put(struct snd_kcontrol *kcontrol,
|
||||
reg = i < 7 ? reg_base + i : (reg_base - 1) | BIT(15);
|
||||
ret = regmap_write(rt715->mbq_regmap, reg, gain_val);
|
||||
if (ret != 0) {
|
||||
dev_err(component->dev, "Failed to write 0x%x=0x%x\n",
|
||||
reg, gain_val);
|
||||
dev_err(component->dev, "%s: Failed to write 0x%x=0x%x\n",
|
||||
__func__, reg, gain_val);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@@ -246,8 +246,8 @@ static int rt715_sdca_set_amp_gain_get(struct snd_kcontrol *kcontrol,
|
||||
for (i = 0; i < 2; i++) {
|
||||
ret = regmap_read(rt715->mbq_regmap, mc->reg + i, &val);
|
||||
if (ret < 0) {
|
||||
dev_err(component->dev, "Failed to read 0x%x, ret=%d\n",
|
||||
mc->reg + i, ret);
|
||||
dev_err(component->dev, "%s: Failed to read 0x%x, ret=%d\n",
|
||||
__func__, mc->reg + i, ret);
|
||||
return ret;
|
||||
}
|
||||
ucontrol->value.integer.value[i] = rt715_sdca_get_gain(val, mc->shift);
|
||||
@@ -271,8 +271,8 @@ static int rt715_sdca_set_amp_gain_4ch_get(struct snd_kcontrol *kcontrol,
|
||||
for (i = 0; i < 4; i++) {
|
||||
ret = regmap_read(rt715->mbq_regmap, reg_base + i, &val);
|
||||
if (ret < 0) {
|
||||
dev_err(component->dev, "Failed to read 0x%x, ret=%d\n",
|
||||
reg_base + i, ret);
|
||||
dev_err(component->dev, "%s: Failed to read 0x%x, ret=%d\n",
|
||||
__func__, reg_base + i, ret);
|
||||
return ret;
|
||||
}
|
||||
ucontrol->value.integer.value[i] = rt715_sdca_get_gain(val, gain_sft);
|
||||
@@ -297,8 +297,8 @@ static int rt715_sdca_set_amp_gain_8ch_get(struct snd_kcontrol *kcontrol,
|
||||
for (i = 0; i < 8; i += 2) {
|
||||
ret = regmap_read(rt715->mbq_regmap, reg_base + i, &val_l);
|
||||
if (ret < 0) {
|
||||
dev_err(component->dev, "Failed to read 0x%x, ret=%d\n",
|
||||
reg_base + i, ret);
|
||||
dev_err(component->dev, "%s: Failed to read 0x%x, ret=%d\n",
|
||||
__func__, reg_base + i, ret);
|
||||
return ret;
|
||||
}
|
||||
ucontrol->value.integer.value[i] = (val_l >> gain_sft) / 10;
|
||||
@@ -306,8 +306,8 @@ static int rt715_sdca_set_amp_gain_8ch_get(struct snd_kcontrol *kcontrol,
|
||||
reg = (i == 6) ? (reg_base - 1) | BIT(15) : reg_base + 1 + i;
|
||||
ret = regmap_read(rt715->mbq_regmap, reg, &val_r);
|
||||
if (ret < 0) {
|
||||
dev_err(component->dev, "Failed to read 0x%x, ret=%d\n",
|
||||
reg, ret);
|
||||
dev_err(component->dev, "%s: Failed to read 0x%x, ret=%d\n",
|
||||
__func__, reg, ret);
|
||||
return ret;
|
||||
}
|
||||
ucontrol->value.integer.value[i + 1] = (val_r >> gain_sft) / 10;
|
||||
@@ -834,15 +834,15 @@ static int rt715_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
0xaf00);
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Invalid DAI id %d\n", dai->id);
|
||||
dev_err(component->dev, "%s: Invalid DAI id %d\n", __func__, dai->id);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
retval = sdw_stream_add_slave(rt715->slave, &stream_config,
|
||||
&port_config, 1, sdw_stream);
|
||||
if (retval) {
|
||||
dev_err(component->dev, "Unable to configure port, retval:%d\n",
|
||||
retval);
|
||||
dev_err(component->dev, "%s: Unable to configure port, retval:%d\n",
|
||||
__func__, retval);
|
||||
return retval;
|
||||
}
|
||||
|
||||
@@ -893,8 +893,8 @@ static int rt715_sdca_pcm_hw_params(struct snd_pcm_substream *substream,
|
||||
val = 0xf;
|
||||
break;
|
||||
default:
|
||||
dev_err(component->dev, "Unsupported sample rate %d\n",
|
||||
params_rate(params));
|
||||
dev_err(component->dev, "%s: Unsupported sample rate %d\n",
|
||||
__func__, params_rate(params));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
@@ -482,7 +482,7 @@ static int rt715_bus_config(struct sdw_slave *slave,
|
||||
|
||||
ret = rt715_clock_config(&slave->dev);
|
||||
if (ret < 0)
|
||||
dev_err(&slave->dev, "Invalid clk config");
|
||||
dev_err(&slave->dev, "%s: Invalid clk config", __func__);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -554,7 +554,7 @@ static int __maybe_unused rt715_dev_resume(struct device *dev)
|
||||
time = wait_for_completion_timeout(&slave->initialization_complete,
|
||||
msecs_to_jiffies(RT715_PROBE_TIMEOUT));
|
||||
if (!time) {
|
||||
dev_err(&slave->dev, "Initialization not complete, timed out\n");
|
||||
dev_err(&slave->dev, "%s: Initialization not complete, timed out\n", __func__);
|
||||
sdw_show_ping_status(slave->bus, true);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user