Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353054
b: refs/heads/master
c: 0c3d47b
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 3aadacd commit bac9dbe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 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: c4f3ebed3c5bc59c88eb2ccda825a12686b58341
refs/heads/master: 0c3d47b007dcc0ec7c26a1a654a281076f2f8545
4 changes: 4 additions & 0 deletions trunk/sound/pci/hda/hda_codec.h
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,10 @@ int snd_hda_codec_update_cache(struct hda_codec *codec, hda_nid_t nid,
int direct, unsigned int verb, unsigned int parm);
void snd_hda_codec_resume_cache(struct hda_codec *codec);

/* it's alias but a bit clearer meaning */
#define snd_hda_codec_flush_cmd_cache(codec) \
snd_hda_codec_resume_cache(codec)

/* the struct for codec->pin_configs */
struct hda_pincfg {
hda_nid_t nid;
Expand Down
4 changes: 4 additions & 0 deletions trunk/sound/pci/hda/hda_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ int snd_hda_codec_amp_init_stereo(struct hda_codec *codec, hda_nid_t nid,
int dir, int idx, int mask, int val);
void snd_hda_codec_resume_amp(struct hda_codec *codec);

/* it's alias but a bit clearer meaning */
#define snd_hda_codec_flush_amp_cache(codec) \
snd_hda_codec_resume_amp(codec)

void snd_hda_set_vmaster_tlv(struct hda_codec *codec, hda_nid_t nid, int dir,
unsigned int *tlv);
struct snd_kcontrol *snd_hda_find_mixer_ctl(struct hda_codec *codec,
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ static void alc_inv_dmic_sync_adc(struct hda_codec *codec, int adc_idx)
(dir == HDA_OUTPUT ? AC_AMP_SET_OUTPUT : AC_AMP_SET_INPUT);

/* flush all cached amps at first */
snd_hda_codec_resume_amp(codec);
snd_hda_codec_flush_amp_cache(codec);

/* we care only right channel */
val = snd_hda_codec_amp_read(codec, nid, 1, dir, 0);
Expand Down

0 comments on commit bac9dbe

Please sign in to comment.