20 May, 2014

1 commit

  • This adds a driver for the HDA block in Tegra SoCs. The HDA bus is
    used to communicate with the HDMI codec on Tegra124.

    Most of the code is re-used from the Intel/PCI HDA driver. It brings
    over only two of the module params, power_save and probe_mask.

    Signed-off-by: Dylan Reid
    Reviewed-by: Stephen Warren
    Signed-off-by: Takashi Iwai

    Dylan Reid
     

01 Mar, 2014

1 commit


25 Feb, 2014

1 commit

  • We have currently sysfs attributes for each hwdep, but basically these
    should belong to the codec itself, per se. Let's add them to the
    codec object while keeping them for hwdep as is for compatibility.

    While we are at it, split the sysfs-related stuff into a separate
    source file, hda_sysfs.c, and keep only the stuff necessary for hwdep
    in hda_hwdep.c.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

19 Dec, 2013

2 commits

  • When a Kconfig of a codec driver doesn't match with the controller
    (CONFIG_SND_HDA_INTEL), it'll result in the non-working automatic
    probing. Unfortunately kbuild can't give such a restriction, but at
    least, it's possible to show a warning if such a condition is found.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • So far, CONFIG_SND_HDA_CODEC_* kconfigs have been booleans due to
    historical reasons. The major reason was that the automatic codec
    driver probing wouldn't work if user sets a codec driver as a module
    while the controller driver as a built-in. And, another reason was to
    avoid exporting symbols of the helper codes when all drivers are built
    in.

    But, this sort of "kindness" rather confuses people in the end,
    especially makes the config refinement via localmodconfig unhappy.
    Also, a codec module would still work if you re-bind the controller
    driver via sysfs (although it's no automatic loading), so there might
    be a slight use case.

    That said, better to let people fallen into a pitfall than being too
    smart and restrict something. Let's make things straightforward: now
    all CONFIG_SND_HDA_CODEC_* become tristate, and all symbols exported
    unconditionally.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

19 Nov, 2013

1 commit


27 Aug, 2013

1 commit


10 Jul, 2013

1 commit

  • Pull drm updates from Dave Airlie:
    "Okay this is the big one, I was stalled on the fbdev pull req as I
    stupidly let fbdev guys merge a patch I required to fix a warning with
    some patches I had, they ended up merging the patch from the wrong
    place, but the warning should be fixed. In future I'll just take the
    patch myself!

    Outside drm:

    There are some snd changes for the HDMI audio interactions on haswell,
    they've been acked for inclusion via my tree. This relies on the
    wound/wait tree from Ingo which is already merged.

    Major changes:

    AMD finally released the dynamic power management code for all their
    GPUs from r600->present day, this is great, off by default for now but
    also a huge amount of code, in fact it is most of this pull request.

    Since it landed there has been a lot of community testing and Alex has
    sent a lot of fixes for any bugs found so far. I suspect radeon might
    now be the biggest kernel driver ever :-P p.s. radeon.dpm=1 to enable
    dynamic powermanagement for anyone.

    New drivers:

    Renesas r-car display unit.

    Other highlights:

    - core: GEM CMA prime support, use new w/w mutexs for TTM
    reservations, cursor hotspot, doc updates
    - dvo chips: chrontel 7010B support
    - i915: Haswell (fbc, ips, vecs, watermarks, audio powerwell),
    Valleyview (enabled by default, rc6), lots of pll reworking, 30bpp
    support (this time for sure)
    - nouveau: async buffer object deletion, context/register init
    updates, kernel vp2 engine support, GF117 support, GK110 accel
    support (with external nvidia ucode), context cleanups.
    - exynos: memory leak fixes, Add S3C64XX SoC series support, device
    tree updates, common clock framework support,
    - qxl: cursor hotspot support, multi-monitor support, suspend/resume
    support
    - mgag200: hw cursor support, g200 mode limiting
    - shmobile: prime support
    - tegra: fixes mostly

    I've been banging on this quite a lot due to the size of it, and it
    seems to okay on everything I've tested it on."

    * 'drm-next' of git://people.freedesktop.org/~airlied/linux: (811 commits)
    drm/radeon/dpm: implement vblank_too_short callback for si
    drm/radeon/dpm: implement vblank_too_short callback for cayman
    drm/radeon/dpm: implement vblank_too_short callback for btc
    drm/radeon/dpm: implement vblank_too_short callback for evergreen
    drm/radeon/dpm: implement vblank_too_short callback for 7xx
    drm/radeon/dpm: add checks against vblank time
    drm/radeon/dpm: add helper to calculate vblank time
    drm/radeon: remove stray line in old pm code
    drm/radeon/dpm: fix display_gap programming on rv7xx
    drm/nvc0/gr: fix gpc firmware regression
    drm/nouveau: fix minor thinko causing bo moves to not be async on kepler
    drm/radeon/dpm: implement force performance level for TN
    drm/radeon/dpm: implement force performance level for ON/LN
    drm/radeon/dpm: implement force performance level for SI
    drm/radeon/dpm: implement force performance level for cayman
    drm/radeon/dpm: implement force performance levels for 7xx/eg/btc
    drm/radeon/dpm: add infrastructure to force performance levels
    drm/radeon: fix surface setup on r1xx
    drm/radeon: add support for 3d perf states on older asics
    drm/radeon: set default clocks for SI when DPM is disabled
    ...

    Linus Torvalds
     

06 Jun, 2013

2 commits

  • For Intel Haswell chip, HDA controller and codec have
    power well dependency from GPU side. This patch added support
    to request/release power well in audio driver. Power save
    feature should be enabled to get runtime power saving.

    There's deadlock when request_module(i915) in azx_probe.
    It looks like:
    device_lock(audio pci device) -> azx_probe -> module_request
    (or symbol_request) -> modprobe (userspace) -> i915 init ->
    drm_pci_init -> pci_register_driver -> bus_add_driver -> driver_attach ->
    which in turn tries all locks on pci bus, and when it tries the one on the
    audio device, it will deadlock.

    This patch introduce a work to store remaining probe stuff, and let
    request_module run in safe work context.

    Signed-off-by: Wang Xingchao
    Reviewed-by: Takashi Iwai
    Reviewed-by: Liam Girdwood
    Reviewed-by: David Henningsson
    Signed-off-by: Daniel Vetter

    Wang Xingchao
     
  • Currently HDMI codec driver sets the hard dependency (reverse
    selection) on CONFIG_SND_DYNAMIC_MINORS because the recent codecs may
    support more than two PCMs. But, this doesn't mean that we need
    always this option, since there can be a single PCM stream even with
    the modern codecs.

    This patch drops the hard dependency again but give more sensible
    error message when no enough PCMs are available due to the lack of
    this option.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

07 Feb, 2013

1 commit


05 Feb, 2013

1 commit


18 Jan, 2013

1 commit

  • Finally we reached here. All codecs driver (except for CA0132, which
    has really device-specific requirements) have been converted to use
    the generic parser.

    This patch appears bigger than others since it also involves with the
    code shuffling, but mostly the cut-off of parser codes and adapt to
    the generic parser flags. Most of fixup codecs haven't been changed
    but just removed a few unnecessary codes.

    The only missing stuff is the SPDIF mux control. It'll be added again
    later.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

12 Jan, 2013

8 commits


28 Nov, 2012

1 commit


25 Oct, 2012

1 commit


30 Aug, 2012

1 commit


04 Jul, 2012

1 commit

  • The beep_mode=2 option was introduced to make the beep mixer
    controlling the beep input allocation/deallocation dynamically, so
    that a user can switch between HD-audio codec digital beep and the
    system beep only via mixer API. This was necessary because the
    keyboard driver took only the first input beep instance at that time.

    However, the recent keyboard driver already processes the multiple
    input instances, thus there is no point to keep this mode.

    Let's remove it.

    Acked-by: Jaroslav Kysela
    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

25 Jun, 2012

1 commit


16 Nov, 2011

1 commit


26 Jul, 2011

1 commit


13 Jul, 2011

1 commit


12 Jul, 2011

1 commit


08 Jul, 2011

1 commit

  • Put the all static quirk codes out of patch_realtek.c, split into the
    file for each codec model. For controlling the build of quirk codes,
    a new Kconfig, CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS is introduced.
    By setting this off, all quirk codes won't be built, thus you can save
    lots of memory.

    The codes in patch_realtek.c are also shuffled and more comments are
    given, but the contents aren't changed. This is just a refactoring.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

21 Jun, 2011

1 commit

  • Create patch_ca0132.c, to add support for devices featuring the
    Creative CA0132 HD-audio codec.

    This driver implements :-
    * 1 playback subdevice to headphone and speaker
    * 2 capture subdevices:
    i - Mic-in
    ii- Line-in
    * mixer device

    Advanced DSP features are not yet included.
    Developed and maintained by Creative Labs, Inc.

    Signed-off-by: Ian Minett
    Signed-off-by: Takashi Iwai

    Ian Minett
     

20 Sep, 2010

1 commit

  • This patch merges all three patch_*hdmi variants to the single HDMI
    parser. There is only one snd-hda-codec-hdmi module now.

    In this patch, the behavior of each parser isn't changed much.
    The old ATI parser still doesn't use the dynamic parser yet.
    In later patches, they'll be cleaned up.

    Also, this patch gets rid of the individual snd-hda-eld module and
    builds into snd-hda-codec-hdmi, since this is referred only from the
    HDMI parser.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

17 May, 2010

1 commit


04 Mar, 2010

1 commit


22 Nov, 2009

1 commit


16 Nov, 2009

1 commit

  • The beep_mode parameter for snd-hda-intel module allows to choose among
    different digital beep device registation to the input layer.

    0 = do not register to the input layer
    1 = register to the input layer all time
    2 = use "Beep Switch" control exported to user space mixer applications

    Also, introduce CONFIG_SND_HDA_INPUT_BEEP_MODE for default value.

    Signed-off-by: Jaroslav Kysela
    Signed-off-by: Takashi Iwai

    Jaroslav Kysela
     

02 Jul, 2009

1 commit


24 Jun, 2009

1 commit

  • Added the patch module option to apply a "patch" as a firmware to
    modify pin configurations or give additional hints to the driver
    before actually initializing and configuring the codec.

    This can be used as a workaround when the BIOS doesn't give sufficient
    information or give wrong information that doesn't match with the real
    hardware setup, until it's fixed statically in the driver via a quirk.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     

22 Jun, 2009

1 commit