Merge branch 'topic/component' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-intel
这个提交包含在:
@@ -220,10 +220,12 @@ static struct snd_soc_dai_link broadwell_rt286_dais[] = {
|
||||
};
|
||||
|
||||
static int broadwell_suspend(struct snd_soc_card *card){
|
||||
struct snd_soc_codec *codec;
|
||||
struct snd_soc_component *component;
|
||||
|
||||
list_for_each_entry(component, &card->component_dev_list, card_list) {
|
||||
if (!strcmp(component->name, "i2c-INT343A:00")) {
|
||||
struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
|
||||
|
||||
list_for_each_entry(codec, &card->codec_dev_list, card_list) {
|
||||
if (!strcmp(codec->component.name, "i2c-INT343A:00")) {
|
||||
dev_dbg(codec->dev, "disabling jack detect before going to suspend.\n");
|
||||
rt286_mic_detect(codec, NULL);
|
||||
break;
|
||||
@@ -233,10 +235,12 @@ static int broadwell_suspend(struct snd_soc_card *card){
|
||||
}
|
||||
|
||||
static int broadwell_resume(struct snd_soc_card *card){
|
||||
struct snd_soc_codec *codec;
|
||||
struct snd_soc_component *component;
|
||||
|
||||
list_for_each_entry(component, &card->component_dev_list, card_list) {
|
||||
if (!strcmp(component->name, "i2c-INT343A:00")) {
|
||||
struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
|
||||
|
||||
list_for_each_entry(codec, &card->codec_dev_list, card_list) {
|
||||
if (!strcmp(codec->component.name, "i2c-INT343A:00")) {
|
||||
dev_dbg(codec->dev, "enabling jack detect for resume.\n");
|
||||
rt286_mic_detect(codec, &broadwell_headset);
|
||||
break;
|
||||
|
@@ -294,10 +294,12 @@ static struct snd_soc_dai_link cht_dailink[] = {
|
||||
|
||||
static int cht_suspend_pre(struct snd_soc_card *card)
|
||||
{
|
||||
struct snd_soc_codec *codec;
|
||||
struct snd_soc_component *component;
|
||||
|
||||
list_for_each_entry(component, &card->component_dev_list, card_list) {
|
||||
if (!strcmp(component->name, "i2c-10EC5670:00")) {
|
||||
struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
|
||||
|
||||
list_for_each_entry(codec, &card->codec_dev_list, card_list) {
|
||||
if (!strcmp(codec->component.name, cht_bsw_codec_name)) {
|
||||
dev_dbg(codec->dev, "disabling jack detect before going to suspend.\n");
|
||||
rt5670_jack_suspend(codec);
|
||||
break;
|
||||
@@ -308,10 +310,12 @@ static int cht_suspend_pre(struct snd_soc_card *card)
|
||||
|
||||
static int cht_resume_post(struct snd_soc_card *card)
|
||||
{
|
||||
struct snd_soc_codec *codec;
|
||||
struct snd_soc_component *component;
|
||||
|
||||
list_for_each_entry(component, &card->component_dev_list, card_list) {
|
||||
if (!strcmp(component->name, "i2c-10EC5670:00")) {
|
||||
struct snd_soc_codec *codec = snd_soc_component_to_codec(component);
|
||||
|
||||
list_for_each_entry(codec, &card->codec_dev_list, card_list) {
|
||||
if (!strcmp(codec->component.name, cht_bsw_codec_name)) {
|
||||
dev_dbg(codec->dev, "enabling jack detect for resume.\n");
|
||||
rt5670_jack_resume(codec);
|
||||
break;
|
||||
|
在新工单中引用
屏蔽一个用户