diff options
Diffstat (limited to 'sound/soc/codecs/cs4270.c')
-rw-r--r-- | sound/soc/codecs/cs4270.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c index ca1e24a8f12a..ffe122d1cd76 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c | |||
@@ -520,6 +520,7 @@ static const struct snd_kcontrol_new cs4270_snd_controls[] = { | |||
520 | SOC_SINGLE("Digital Sidetone Switch", CS4270_FORMAT, 5, 1, 0), | 520 | SOC_SINGLE("Digital Sidetone Switch", CS4270_FORMAT, 5, 1, 0), |
521 | SOC_SINGLE("Soft Ramp Switch", CS4270_TRANS, 6, 1, 0), | 521 | SOC_SINGLE("Soft Ramp Switch", CS4270_TRANS, 6, 1, 0), |
522 | SOC_SINGLE("Zero Cross Switch", CS4270_TRANS, 5, 1, 0), | 522 | SOC_SINGLE("Zero Cross Switch", CS4270_TRANS, 5, 1, 0), |
523 | SOC_SINGLE("De-emphasis filter", CS4270_TRANS, 0, 1, 0), | ||
523 | SOC_SINGLE("Popguard Switch", CS4270_MODE, 0, 1, 1), | 524 | SOC_SINGLE("Popguard Switch", CS4270_MODE, 0, 1, 1), |
524 | SOC_SINGLE("Auto-Mute Switch", CS4270_MUTE, 5, 1, 0), | 525 | SOC_SINGLE("Auto-Mute Switch", CS4270_MUTE, 5, 1, 0), |
525 | SOC_DOUBLE("Master Capture Switch", CS4270_MUTE, 3, 4, 1, 1), | 526 | SOC_DOUBLE("Master Capture Switch", CS4270_MUTE, 3, 4, 1, 1), |
@@ -598,13 +599,6 @@ static int cs4270_probe(struct platform_device *pdev) | |||
598 | goto error_free_pcms; | 599 | goto error_free_pcms; |
599 | } | 600 | } |
600 | 601 | ||
601 | /* And finally, register the socdev */ | ||
602 | ret = snd_soc_init_card(socdev); | ||
603 | if (ret < 0) { | ||
604 | dev_err(codec->dev, "failed to register card\n"); | ||
605 | goto error_free_pcms; | ||
606 | } | ||
607 | |||
608 | return 0; | 602 | return 0; |
609 | 603 | ||
610 | error_free_pcms: | 604 | error_free_pcms: |
@@ -802,22 +796,6 @@ MODULE_DEVICE_TABLE(i2c, cs4270_id); | |||
802 | * and all registers are written back to the hardware when resuming. | 796 | * and all registers are written back to the hardware when resuming. |
803 | */ | 797 | */ |
804 | 798 | ||
805 | static int cs4270_i2c_suspend(struct i2c_client *client, pm_message_t mesg) | ||
806 | { | ||
807 | struct cs4270_private *cs4270 = i2c_get_clientdata(client); | ||
808 | struct snd_soc_codec *codec = &cs4270->codec; | ||
809 | |||
810 | return snd_soc_suspend_device(codec->dev); | ||
811 | } | ||
812 | |||
813 | static int cs4270_i2c_resume(struct i2c_client *client) | ||
814 | { | ||
815 | struct cs4270_private *cs4270 = i2c_get_clientdata(client); | ||
816 | struct snd_soc_codec *codec = &cs4270->codec; | ||
817 | |||
818 | return snd_soc_resume_device(codec->dev); | ||
819 | } | ||
820 | |||
821 | static int cs4270_soc_suspend(struct platform_device *pdev, pm_message_t mesg) | 799 | static int cs4270_soc_suspend(struct platform_device *pdev, pm_message_t mesg) |
822 | { | 800 | { |
823 | struct snd_soc_codec *codec = cs4270_codec; | 801 | struct snd_soc_codec *codec = cs4270_codec; |
@@ -853,8 +831,6 @@ static int cs4270_soc_resume(struct platform_device *pdev) | |||
853 | return snd_soc_write(codec, CS4270_PWRCTL, reg); | 831 | return snd_soc_write(codec, CS4270_PWRCTL, reg); |
854 | } | 832 | } |
855 | #else | 833 | #else |
856 | #define cs4270_i2c_suspend NULL | ||
857 | #define cs4270_i2c_resume NULL | ||
858 | #define cs4270_soc_suspend NULL | 834 | #define cs4270_soc_suspend NULL |
859 | #define cs4270_soc_resume NULL | 835 | #define cs4270_soc_resume NULL |
860 | #endif /* CONFIG_PM */ | 836 | #endif /* CONFIG_PM */ |
@@ -873,8 +849,6 @@ static struct i2c_driver cs4270_i2c_driver = { | |||
873 | .id_table = cs4270_id, | 849 | .id_table = cs4270_id, |
874 | .probe = cs4270_i2c_probe, | 850 | .probe = cs4270_i2c_probe, |
875 | .remove = cs4270_i2c_remove, | 851 | .remove = cs4270_i2c_remove, |
876 | .suspend = cs4270_i2c_suspend, | ||
877 | .resume = cs4270_i2c_resume, | ||
878 | }; | 852 | }; |
879 | 853 | ||
880 | /* | 854 | /* |