Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1472849 > unrolled thread

[PATCH] ASoC: sgtl5000: add headphone and LINEOUT mute controls

Started byRichard Leitner <dev@g0hl1n.net>
First post2016-08-30 22:40 +0200
Last post2016-09-09 12:20 +0200
Articles 4 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ASoC: sgtl5000: add headphone and LINEOUT mute controls Richard Leitner <dev@g0hl1n.net> - 2016-08-30 22:40 +0200
    [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute controls Richard Leitner <dev@g0hl1n.net> - 2016-08-31 09:30 +0200
      Re: [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute  controls Richard Leitner <dev@g0hl1n.net> - 2016-09-09 09:50 +0200
        Re: [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute  controls Mark Brown <broonie@kernel.org> - 2016-09-09 12:20 +0200

#1472849 — [PATCH] ASoC: sgtl5000: add headphone and LINEOUT mute controls

FromRichard Leitner <dev@g0hl1n.net>
Date2016-08-30 22:40 +0200
Subject[PATCH] ASoC: sgtl5000: add headphone and LINEOUT mute controls
Message-ID<sbXZ8-1kH-5@gated-at.bofh.it>
These controls mute/unmute the LINEOUT and headphone outputs of SGTL5000
using its CHIP_ANA_CTRL register.

Signed-off-by: Richard Leitner <dev@g0hl1n.net>
---
 sound/soc/codecs/sgtl5000.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 527b759..a6af65d 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -411,6 +411,8 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
 			0, 8,
 			0x7f, 1,
 			headphone_volume),
+	SOC_SINGLE("Headphone Playback Switch", SGTL5000_CHIP_ANA_CTRL,
+			4, 1, 0),
 	SOC_SINGLE("Headphone Playback ZC Switch", SGTL5000_CHIP_ANA_CTRL,
 			5, 1, 0),
 
@@ -423,6 +425,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
 			SGTL5000_LINE_OUT_VOL_RIGHT_SHIFT,
 			0x1f, 1,
 			lineout_volume),
+	SOC_SINGLE("Lineout Playback Switch", SGTL5000_CHIP_ANA_CTRL, 8, 1, 0),
 };
 
 /* mute the codec used by alsa core */
-- 
2.9.3

[toc] | [next] | [standalone]


#1473084 — [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute controls

FromRichard Leitner <dev@g0hl1n.net>
Date2016-08-31 09:30 +0200
Subject[PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute controls
Message-ID<sc889-7Pb-17@gated-at.bofh.it>
In reply to#1472849
These controls mute/unmute the LINEOUT and headphone outputs of SGTL5000
using its CHIP_ANA_CTRL register.

Signed-off-by: Richard Leitner <dev@g0hl1n.net>
---
CHANGES v2: fix invert value for both controls
	(sorry I've missed that in my initial tests!)
---
 sound/soc/codecs/sgtl5000.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index 527b759..a6af65d 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -411,6 +411,8 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
 			0, 8,
 			0x7f, 1,
 			headphone_volume),
+	SOC_SINGLE("Headphone Playback Switch", SGTL5000_CHIP_ANA_CTRL,
+			4, 1, 1),
 	SOC_SINGLE("Headphone Playback ZC Switch", SGTL5000_CHIP_ANA_CTRL,
 			5, 1, 0),
 
@@ -423,6 +425,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
 			SGTL5000_LINE_OUT_VOL_RIGHT_SHIFT,
 			0x1f, 1,
 			lineout_volume),
+	SOC_SINGLE("Lineout Playback Switch", SGTL5000_CHIP_ANA_CTRL, 8, 1, 1),
 };
 
 /* mute the codec used by alsa core */
-- 
2.9.3

[toc] | [prev] | [next] | [standalone]


#1479704 — Re: [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute controls

FromRichard Leitner <dev@g0hl1n.net>
Date2016-09-09 09:50 +0200
SubjectRe: [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute controls
Message-ID<sfoJs-8tz-3@gated-at.bofh.it>
In reply to#1473084
Hi,
any comments, updates or ideas for improvement on that patch?

regards,
Richard

On Wed, 31 Aug 2016 09:26:31 +0200
Richard Leitner <dev@g0hl1n.net> wrote:

> These controls mute/unmute the LINEOUT and headphone outputs of SGTL5000
> using its CHIP_ANA_CTRL register.
> 
> Signed-off-by: Richard Leitner <dev@g0hl1n.net>
> ---
> CHANGES v2: fix invert value for both controls
> 	(sorry I've missed that in my initial tests!)
> ---
>  sound/soc/codecs/sgtl5000.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
> index 527b759..a6af65d 100644
> --- a/sound/soc/codecs/sgtl5000.c
> +++ b/sound/soc/codecs/sgtl5000.c
> @@ -411,6 +411,8 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
>  			0, 8,
>  			0x7f, 1,
>  			headphone_volume),
> +	SOC_SINGLE("Headphone Playback Switch", SGTL5000_CHIP_ANA_CTRL,
> +			4, 1, 1),
>  	SOC_SINGLE("Headphone Playback ZC Switch", SGTL5000_CHIP_ANA_CTRL,
>  			5, 1, 0),
>  
> @@ -423,6 +425,7 @@ static const struct snd_kcontrol_new sgtl5000_snd_controls[] = {
>  			SGTL5000_LINE_OUT_VOL_RIGHT_SHIFT,
>  			0x1f, 1,
>  			lineout_volume),
> +	SOC_SINGLE("Lineout Playback Switch", SGTL5000_CHIP_ANA_CTRL, 8, 1, 1),
>  };
>  
>  /* mute the codec used by alsa core */

[toc] | [prev] | [next] | [standalone]


#1479848 — Re: [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute controls

FromMark Brown <broonie@kernel.org>
Date2016-09-09 12:20 +0200
SubjectRe: [PATCH v2] ASoC: sgtl5000: add headphone and LINEOUT mute controls
Message-ID<sfr4C-1xy-37@gated-at.bofh.it>
In reply to#1479704

[Multipart message — attachments visible in raw view] — view raw

On Fri, Sep 09, 2016 at 09:46:45AM +0200, Richard Leitner wrote:
> Hi,
> any comments, updates or ideas for improvement on that patch?
> 
> regards,
> Richard
> 
> On Wed, 31 Aug 2016 09:26:31 +0200
> Richard Leitner <dev@g0hl1n.net> wrote:

Please don't top post, reply in line with needed context.  This allows
readers to readily follow the flow of conversation and understand what
you are talking about and also helps ensure that everything in the
discussion is being addressed.

Please don't send content free pings and please allow a reasonable time
for review.  People get busy, go on holiday, attend conferences and so 
on so unless there is some reason for urgency (like critical bug fixes)
please allow at least a couple of weeks for review.  If there have been
review comments then people may be waiting for those to be addressed.
Sending content free pings just adds to the mail volume (if they are
seen at all) and if something has gone wrong you'll have to resend the
patches anyway.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web