Skip to content

Commit f3da514

Browse files
committed
Revert "ALSA: hda: convert audio_component member of hdac_bus to void pointer"
This reverts commit aa07f95. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent fab7031 commit f3da514

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

include/sound/hdaudio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ struct hdac_bus {
366366
struct mutex lock;
367367

368368
/* DRM component interface */
369-
void *audio_component;
369+
struct drm_audio_component *audio_component;
370370
long display_power_status;
371371
unsigned long display_power_active;
372372

sound/hda/hdac_component.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,10 @@ static const struct component_master_ops hdac_component_master_ops = {
252252
int snd_hdac_acomp_register_notifier(struct hdac_bus *bus,
253253
const struct drm_audio_component_audio_ops *aops)
254254
{
255-
struct drm_audio_component *acomp = bus->audio_component;
256-
257-
if (!acomp)
255+
if (!bus->audio_component)
258256
return -ENODEV;
259257

260-
acomp->audio_ops = aops;
258+
bus->audio_component->audio_ops = aops;
261259
return 0;
262260
}
263261
EXPORT_SYMBOL_GPL(snd_hdac_acomp_register_notifier);

0 commit comments

Comments
 (0)