diff options
Diffstat (limited to 'sound/pci/hda/hda_proc.c')
-rw-r--r-- | sound/pci/hda/hda_proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c index 05e19f78b4cb..dacfe74a2a1f 100644 --- a/sound/pci/hda/hda_proc.c +++ b/sound/pci/hda/hda_proc.c | |||
@@ -99,10 +99,10 @@ static void print_nid_array(struct snd_info_buffer *buffer, | |||
99 | static void print_nid_pcms(struct snd_info_buffer *buffer, | 99 | static void print_nid_pcms(struct snd_info_buffer *buffer, |
100 | struct hda_codec *codec, hda_nid_t nid) | 100 | struct hda_codec *codec, hda_nid_t nid) |
101 | { | 101 | { |
102 | int pcm, type; | 102 | int type; |
103 | struct hda_pcm *cpcm; | 103 | struct hda_pcm *cpcm; |
104 | for (pcm = 0; pcm < codec->num_pcms; pcm++) { | 104 | |
105 | cpcm = &codec->pcm_info[pcm]; | 105 | list_for_each_entry(cpcm, &codec->pcm_list_head, list) { |
106 | for (type = 0; type < 2; type++) { | 106 | for (type = 0; type < 2; type++) { |
107 | if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) | 107 | if (cpcm->stream[type].nid != nid || cpcm->pcm == NULL) |
108 | continue; | 108 | continue; |
@@ -861,7 +861,7 @@ int snd_hda_codec_proc_new(struct hda_codec *codec) | |||
861 | int err; | 861 | int err; |
862 | 862 | ||
863 | snprintf(name, sizeof(name), "codec#%d", codec->addr); | 863 | snprintf(name, sizeof(name), "codec#%d", codec->addr); |
864 | err = snd_card_proc_new(codec->bus->card, name, &entry); | 864 | err = snd_card_proc_new(codec->card, name, &entry); |
865 | if (err < 0) | 865 | if (err < 0) |
866 | return err; | 866 | return err; |
867 | 867 | ||