ASoC: Remove /s from widget names on SMDK64xx WM8580
Subsystems (3)
PATCH 1/3 ASoC: Remove /s from widget names on SMDK64xx WM8580
Otherwise debugfs gets upset when we try to create filenames with / in them.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/s3c24xx/smdk64xx_wm8580.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
sound/soc/s3c24xx/smdk64xx_wm8580.c +9 -9
@@ -138,9 +138,9 @@ static struct snd_soc_ops smdk64xx_ops = {/* SMDK64xx Playback widgets */ static const struct snd_soc_dapm_widget wm8580_dapm_widgets_pbk[] = { -SND_SOC_DAPM_HP ("Front-L/R" ,NULL ), -SND_SOC_DAPM_HP ("Center/Sub" ,NULL ), -SND_SOC_DAPM_HP ("Rear-L/R" ,NULL ), +SND_SOC_DAPM_HP ("Front" ,NULL ), +SND_SOC_DAPM_HP ("Center+Sub" ,NULL ), +SND_SOC_DAPM_HP ("Rear" ,NULL ), };/* SMDK64xx Capture widgets */
@@ -162,16 +162,16 @@ static const struct snd_soc_dapm_route audio_map_tx[] = {/* SMDK-PAIFRX connections */ static const struct snd_soc_dapm_route audio_map_rx[] = {/* Front Left/Right are fed VOUT1L/R */ - {"Front-L/R" ,NULL ,"VOUT1L" }, - {"Front-L/R" ,NULL ,"VOUT1R" }, + {"Front" ,NULL ,"VOUT1L" }, + {"Front" ,NULL ,"VOUT1R" },/* Center/Sub are fed VOUT2L/R */ - {"Center/Sub" ,NULL ,"VOUT2L" }, - {"Center/Sub" ,NULL ,"VOUT2R" }, + {"Center+Sub" ,NULL ,"VOUT2L" }, + {"Center+Sub" ,NULL ,"VOUT2R" },/* Rear Left/Right are fed VOUT3L/R */ - {"Rear-L/R" ,NULL ,"VOUT3L" }, - {"Rear-L/R" ,NULL ,"VOUT3R" }, + {"Rear" ,NULL ,"VOUT3L" }, + {"Rear" ,NULL ,"VOUT3R" }, };static int smdk64xx_wm8580_init_paiftx (struct snd_soc_codec *codec)
Signature · 1 line
1.7.1
PATCH 2/3 ASoC: Document CFG switch settings for SMDK6410 WM8580 usage
Sadly these aren't soft controllable and can't be read back either :(
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/s3c24xx/smdk64xx_wm8580.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
sound/soc/s3c24xx/smdk64xx_wm8580.c +6 -0
@@ -22,6 +22,12 @@#include "s3c-dma.h" #include "s3c64xx-i2s.h" +/* +* Default CFG switch settings to use this driver: +* +* SMDK6410: Set CFG1 1-3 Off, CFG2 1-4 On +*/ +/* SMDK64XX has a 12MHZ crystal attached to WM8580 */ #define SMDK64XX_WM8580_FREQ 12000000
Signature · 1 line
1.7.1
PATCH 3/3 ASoC: Correct WM8580 Capture control names
In reply to Mark BrownShould use Capture rather than ADC so the UI tools can identify their function more readily.
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm8580.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8580.c +2 -2
@@ -273,8 +273,8 @@ SOC_SINGLE("DAC1 Switch", WM8580_DAC_CONTROL5, 0, 1, 0),SOC_SINGLE ("DAC2 Switch" ,WM8580_DAC_CONTROL5 ,1 ,1 ,0 ),SOC_SINGLE ("DAC3 Switch" ,WM8580_DAC_CONTROL5 ,2 ,1 ,0 ), -SOC_DOUBLE ("ADC Mute Switch" ,WM8580_ADC_CONTROL1 ,0 ,1 ,1 ,0 ), -SOC_SINGLE("ADC High-Pass Filter Switch", WM8580_ADC_CONTROL1, 4, 1, 0), +SOC_DOUBLE ("Capture Switch" ,WM8580_ADC_CONTROL1 ,0 ,1 ,1 ,0 ), +SOC_SINGLE("Capture High-Pass Filter Switch", WM8580_ADC_CONTROL1, 4, 1, 0), }; static const struct snd_soc_dapm_widget wm8580_dapm_widgets[] = {
Signature · 1 line
1.7.1
Quoted 4 lines · Mark Brown
Otherwise debugfs gets upset when we try to create filenames with / in them.
Signed-off-by Mark Brown <[email protected]>
All Acked-by: Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk