Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/topic/pcm1792' into asoc-next
Browse files Browse the repository at this point in the history
  • Loading branch information
broonie committed Aug 4, 2014
2 parents 3a2ac12 + 3aae279 commit 0e76ee4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sound/soc/codecs/pcm1792a.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#define PCM1792A_DAC_VOL_LEFT 0x10
#define PCM1792A_DAC_VOL_RIGHT 0x11
#define PCM1792A_FMT_CONTROL 0x12
#define PCM1792A_MODE_CONTROL 0x13
#define PCM1792A_SOFT_MUTE PCM1792A_FMT_CONTROL

#define PCM1792A_FMT_MASK 0x70
Expand Down Expand Up @@ -164,6 +165,8 @@ static const struct snd_kcontrol_new pcm1792a_controls[] = {
SOC_DOUBLE_R_RANGE_TLV("DAC Playback Volume", PCM1792A_DAC_VOL_LEFT,
PCM1792A_DAC_VOL_RIGHT, 0, 0xf, 0xff, 0,
pcm1792a_dac_tlv),
SOC_SINGLE("DAC Invert Output Switch", PCM1792A_MODE_CONTROL, 7, 1, 0),
SOC_SINGLE("DAC Rolloff Filter Switch", PCM1792A_MODE_CONTROL, 1, 1, 0),
};

static const struct snd_soc_dapm_widget pcm1792a_dapm_widgets[] = {
Expand Down
3 changes: 2 additions & 1 deletion sound/soc/codecs/pcm1792a.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#define __PCM1792A_H__

#define PCM1792A_RATES (SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_8000_48000 | \
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000)
SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000 | \
SNDRV_PCM_RATE_192000)

#define PCM1792A_FORMATS (SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_S16_LE)
Expand Down

0 comments on commit 0e76ee4

Please sign in to comment.