Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283717
b: refs/heads/master
c: 3c70352
h: refs/heads/master
i:
  283715: 9a552a8
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Nov 11, 2011
1 parent 647be41 commit 0c04d30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24747daea5610676fd1e2c2ca603c8822a085c87
refs/heads/master: 3c7035268c2c89942fe51a61833d1066b4a766eb
5 changes: 2 additions & 3 deletions trunk/sound/soc/codecs/ak4642.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ static const struct snd_kcontrol_new ak4642_snd_controls[] = {

SOC_DOUBLE_R_TLV("Digital Playback Volume", L_DVC, R_DVC,
0, 0xFF, 1, out_tlv),

SOC_SINGLE("Headphone Switch", PW_MGMT2, 6, 1, 0),
};

static const struct snd_kcontrol_new ak4642_hpout_mixer_controls[] = {
Expand Down Expand Up @@ -225,7 +227,6 @@ static int ak4642_dai_startup(struct snd_pcm_substream *substream,
*/
snd_soc_write(codec, L_IVC, 0x91); /* volume */
snd_soc_write(codec, R_IVC, 0x91); /* volume */
snd_soc_update_bits(codec, PW_MGMT2, HPMTN, HPMTN);
} else {
/*
* start stereo input
Expand Down Expand Up @@ -257,8 +258,6 @@ static void ak4642_dai_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_codec *codec = dai->codec;

if (is_play) {
/* stop headphone output */
snd_soc_update_bits(codec, PW_MGMT2, HPMTN, 0);
} else {
/* stop stereo input */
snd_soc_update_bits(codec, PW_MGMT1, PMADL, 0);
Expand Down

0 comments on commit 0c04d30

Please sign in to comment.