diff options
-rw-r--r-- | include/sound/hdaudio.h | 7 | ||||
-rw-r--r-- | sound/hda/ext/hdac_ext_bus.c | 2 | ||||
-rw-r--r-- | sound/hda/hdac_bus.c | 1 |
3 files changed, 4 insertions, 6 deletions
diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 45f944d57982..ca1d9a70d026 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h | |||
@@ -297,7 +297,7 @@ struct hdac_rb { | |||
297 | * @num_streams: streams supported | 297 | * @num_streams: streams supported |
298 | * @idx: HDA link index | 298 | * @idx: HDA link index |
299 | * @hlink_list: link list of HDA links | 299 | * @hlink_list: link list of HDA links |
300 | * @lock: lock for link mgmt | 300 | * @lock: lock for link and display power mgmt |
301 | * @cmd_dma_state: state of cmd DMAs: CORB and RIRB | 301 | * @cmd_dma_state: state of cmd DMAs: CORB and RIRB |
302 | */ | 302 | */ |
303 | struct hdac_bus { | 303 | struct hdac_bus { |
@@ -363,6 +363,7 @@ struct hdac_bus { | |||
363 | /* locks */ | 363 | /* locks */ |
364 | spinlock_t reg_lock; | 364 | spinlock_t reg_lock; |
365 | struct mutex cmd_mutex; | 365 | struct mutex cmd_mutex; |
366 | struct mutex lock; | ||
366 | 367 | ||
367 | /* DRM component interface */ | 368 | /* DRM component interface */ |
368 | struct drm_audio_component *audio_component; | 369 | struct drm_audio_component *audio_component; |
@@ -373,11 +374,9 @@ struct hdac_bus { | |||
373 | int num_streams; | 374 | int num_streams; |
374 | int idx; | 375 | int idx; |
375 | 376 | ||
377 | /* link management */ | ||
376 | struct list_head hlink_list; | 378 | struct list_head hlink_list; |
377 | |||
378 | struct mutex lock; | ||
379 | bool cmd_dma_state; | 379 | bool cmd_dma_state; |
380 | |||
381 | }; | 380 | }; |
382 | 381 | ||
383 | int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, | 382 | int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, |
diff --git a/sound/hda/ext/hdac_ext_bus.c b/sound/hda/ext/hdac_ext_bus.c index ec7715c6b0c0..c203af71a099 100644 --- a/sound/hda/ext/hdac_ext_bus.c +++ b/sound/hda/ext/hdac_ext_bus.c | |||
@@ -104,9 +104,7 @@ int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, | |||
104 | return ret; | 104 | return ret; |
105 | 105 | ||
106 | bus->ext_ops = ext_ops; | 106 | bus->ext_ops = ext_ops; |
107 | INIT_LIST_HEAD(&bus->hlink_list); | ||
108 | bus->idx = idx++; | 107 | bus->idx = idx++; |
109 | |||
110 | bus->cmd_dma_state = true; | 108 | bus->cmd_dma_state = true; |
111 | 109 | ||
112 | return 0; | 110 | return 0; |
diff --git a/sound/hda/hdac_bus.c b/sound/hda/hdac_bus.c index ad8eee08013f..10e5d261fde1 100644 --- a/sound/hda/hdac_bus.c +++ b/sound/hda/hdac_bus.c | |||
@@ -39,6 +39,7 @@ int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, | |||
39 | spin_lock_init(&bus->reg_lock); | 39 | spin_lock_init(&bus->reg_lock); |
40 | mutex_init(&bus->cmd_mutex); | 40 | mutex_init(&bus->cmd_mutex); |
41 | mutex_init(&bus->lock); | 41 | mutex_init(&bus->lock); |
42 | INIT_LIST_HEAD(&bus->hlink_list); | ||
42 | bus->irq = -1; | 43 | bus->irq = -1; |
43 | return 0; | 44 | return 0; |
44 | } | 45 | } |