Changeset 695 for GPL/trunk/alsa-kernel/hda
- Timestamp:
- Aug 21, 2021, 3:35:34 AM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 8 edited
-
. (modified) (1 prop)
-
alsa-kernel/hda/ext/hdac_ext_controller.c (modified) (2 diffs)
-
alsa-kernel/hda/ext/hdac_ext_stream.c (modified) (1 diff)
-
alsa-kernel/hda/hdac_bus.c (modified) (2 diffs)
-
alsa-kernel/hda/hdac_controller.c (modified) (1 diff)
-
alsa-kernel/hda/hdac_regmap.c (modified) (1 diff)
-
alsa-kernel/hda/hdac_stream.c (modified) (2 diffs)
-
alsa-kernel/hda/hdac_sysfs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 691-694
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/hda/ext/hdac_ext_controller.c
r629 r695 134 134 135 135 /** 136 * snd_hdac_ext_bus_get_link _index- get link based on codec name136 * snd_hdac_ext_bus_get_link - get link based on codec name 137 137 * @bus: the pointer to HDAC bus object 138 138 * @codec_name: codec name … … 333 333 } 334 334 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_link_put); 335 336 static void hdac_ext_codec_link_up(struct hdac_device *codec) 337 { 338 const char *devname = dev_name(&codec->dev); 339 struct hdac_ext_link *hlink = 340 snd_hdac_ext_bus_get_link(codec->bus, devname); 341 342 if (hlink) 343 snd_hdac_ext_bus_link_get(codec->bus, hlink); 344 } 345 346 static void hdac_ext_codec_link_down(struct hdac_device *codec) 347 { 348 const char *devname = dev_name(&codec->dev); 349 struct hdac_ext_link *hlink = 350 snd_hdac_ext_bus_get_link(codec->bus, devname); 351 352 if (hlink) 353 snd_hdac_ext_bus_link_put(codec->bus, hlink); 354 } 355 356 void snd_hdac_ext_bus_link_power(struct hdac_device *codec, bool enable) 357 { 358 struct hdac_bus *bus = codec->bus; 359 bool oldstate = test_bit(codec->addr, &bus->codec_powered); 360 361 if (enable == oldstate) 362 return; 363 364 snd_hdac_bus_link_power(codec, enable); 365 366 if (enable) 367 hdac_ext_codec_link_up(codec); 368 else 369 hdac_ext_codec_link_down(codec); 370 } 371 EXPORT_SYMBOL_GPL(snd_hdac_ext_bus_link_power); -
GPL/trunk/alsa-kernel/hda/ext/hdac_ext_stream.c
r629 r695 134 134 135 135 /** 136 * snd_hdac_ext_link stream_start - start a stream136 * snd_hdac_ext_link_stream_start - start a stream 137 137 * @stream: HD-audio ext core stream to start 138 138 */ -
GPL/trunk/alsa-kernel/hda/hdac_bus.c
r637 r695 25 25 .command = snd_hdac_bus_send_cmd, 26 26 .get_response = snd_hdac_bus_get_response, 27 .link_power = snd_hdac_bus_link_power, 27 28 }; 28 29 … … 276 277 EXPORT_SYMBOL_GPL(snd_hdac_aligned_write); 277 278 #endif /* CONFIG_SND_HDA_ALIGNED_MMIO */ 279 280 void snd_hdac_codec_link_up(struct hdac_device *codec) 281 { 282 struct hdac_bus *bus = codec->bus; 283 284 if (bus->ops->link_power) 285 bus->ops->link_power(codec, true); 286 else 287 snd_hdac_bus_link_power(codec, true); 288 } 289 EXPORT_SYMBOL_GPL(snd_hdac_codec_link_up); 290 291 void snd_hdac_codec_link_down(struct hdac_device *codec) 292 { 293 struct hdac_bus *bus = codec->bus; 294 295 if (bus->ops->link_power) 296 bus->ops->link_power(codec, false); 297 else 298 snd_hdac_bus_link_power(codec, false); 299 } 300 EXPORT_SYMBOL_GPL(snd_hdac_codec_link_down); -
GPL/trunk/alsa-kernel/hda/hdac_controller.c
r637 r695 655 655 } 656 656 EXPORT_SYMBOL_GPL(snd_hdac_bus_free_stream_pages); 657 658 /** 659 * snd_hdac_bus_link_power - power up/down codec link 660 * @codec: HD-audio device 661 * @enable: whether to power-up the link 662 */ 663 void snd_hdac_bus_link_power(struct hdac_device *codec, bool enable) 664 { 665 if (enable) 666 set_bit(codec->addr, &codec->bus->codec_powered); 667 else 668 clear_bit(codec->addr, &codec->bus->codec_powered); 669 } 670 EXPORT_SYMBOL_GPL(snd_hdac_bus_link_power); -
GPL/trunk/alsa-kernel/hda/hdac_regmap.c
r629 r695 387 387 388 388 /** 389 * snd_hdac_regmap_ init - Release the regmap from HDA codec389 * snd_hdac_regmap_exit - Release the regmap from HDA codec 390 390 * @codec: the codec object 391 391 */ -
GPL/trunk/alsa-kernel/hda/hdac_stream.c
r637 r695 441 441 if (!azx_dev->no_period_wakeup && pos_adj > 0) { 442 442 pos_align = pos_adj; 443 pos_adj = (pos_adj * runtime->rate + 47999) / 48000;443 pos_adj = DIV_ROUND_UP(pos_adj * runtime->rate, 48000); 444 444 if (!pos_adj) 445 445 pos_adj = pos_align; 446 446 else 447 pos_adj = ((pos_adj + pos_align - 1) / pos_align) * 448 pos_align; 447 pos_adj = roundup(pos_adj, pos_align); 449 448 pos_adj = frames_to_bytes(runtime, pos_adj); 450 449 if (pos_adj >= period_bytes) { … … 625 624 626 625 /** 627 * snd_hdac_stream_sync - sync with start/st rop trigger operation626 * snd_hdac_stream_sync - sync with start/stop trigger operation 628 627 * @azx_dev: HD-audio core stream (master stream) 629 628 * @start: true = start, false = stop -
GPL/trunk/alsa-kernel/hda/hdac_sysfs.c
r615 r695 67 67 }; 68 68 69 static struct attribute_group hdac_dev_attr_group = {69 static const struct attribute_group hdac_dev_attr_group = { 70 70 .attrs = hdac_dev_attrs, 71 71 };
Note:
See TracChangeset
for help on using the changeset viewer.
