forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'asoc-v4.2-3' of git://git.kernel.org/pub/scm/linux/kernel/…
…git/broonie/sound into for-next ASoC: A couple more updates for v4.2 These were sitting on my laptop.
- Loading branch information
Showing
8 changed files
with
48 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2286,6 +2286,33 @@ int arizona_set_output_mode(struct snd_soc_codec *codec, int output, bool diff) | |
} | ||
EXPORT_SYMBOL_GPL(arizona_set_output_mode); | ||
|
||
static const struct soc_enum arizona_adsp2_rate_enum[] = { | ||
SOC_VALUE_ENUM_SINGLE(ARIZONA_DSP1_CONTROL_1, | ||
ARIZONA_DSP1_RATE_SHIFT, 0xf, | ||
ARIZONA_RATE_ENUM_SIZE, | ||
arizona_rate_text, arizona_rate_val), | ||
SOC_VALUE_ENUM_SINGLE(ARIZONA_DSP2_CONTROL_1, | ||
ARIZONA_DSP1_RATE_SHIFT, 0xf, | ||
ARIZONA_RATE_ENUM_SIZE, | ||
arizona_rate_text, arizona_rate_val), | ||
SOC_VALUE_ENUM_SINGLE(ARIZONA_DSP3_CONTROL_1, | ||
ARIZONA_DSP1_RATE_SHIFT, 0xf, | ||
ARIZONA_RATE_ENUM_SIZE, | ||
arizona_rate_text, arizona_rate_val), | ||
SOC_VALUE_ENUM_SINGLE(ARIZONA_DSP4_CONTROL_1, | ||
ARIZONA_DSP1_RATE_SHIFT, 0xf, | ||
ARIZONA_RATE_ENUM_SIZE, | ||
arizona_rate_text, arizona_rate_val), | ||
}; | ||
|
||
const struct snd_kcontrol_new arizona_adsp2_rate_controls[] = { | ||
SOC_ENUM("DSP1 Rate", arizona_adsp2_rate_enum[0]), | ||
SOC_ENUM("DSP2 Rate", arizona_adsp2_rate_enum[1]), | ||
SOC_ENUM("DSP3 Rate", arizona_adsp2_rate_enum[2]), | ||
SOC_ENUM("DSP4 Rate", arizona_adsp2_rate_enum[3]), | ||
}; | ||
EXPORT_SYMBOL_GPL(arizona_adsp2_rate_controls); | ||
|
||
MODULE_DESCRIPTION("ASoC Wolfson Arizona class device support"); | ||
MODULE_AUTHOR("Mark Brown <[email protected]>"); | ||
MODULE_LICENSE("GPL"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters