<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/gpu/drm/i915/intel_audio.c, branch linux-4.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.17.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.17.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2018-04-18T11:26:15Z</updated>
<entry>
<title>drm/i915/audio: Fix audio detection issue on GLK</title>
<updated>2018-04-18T11:26:15Z</updated>
<author>
<name>Gaurav K Singh</name>
<email>gaurav.k.singh@intel.com</email>
</author>
<published>2018-04-17T18:22:18Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b4615730530be85fc45ab4631c2ad6d8e2d0b97d'/>
<id>urn:sha1:b4615730530be85fc45ab4631c2ad6d8e2d0b97d</id>
<content type='text'>
On Geminilake, sometimes audio card is not getting
detected after reboot. This is a spurious issue happening on
Geminilake. HW codec and HD audio controller link was going
out of sync for which there was a fix in i915 driver but
was not getting invoked for GLK. Extending this fix to GLK as well.

Tested by Du,Wenkai on GLK board.

Bspec: 21829

v2: Instead of checking GEN9_BC, BXT and GLK macros, use IS_GEN9 macro (Jani N)

Cc: &lt;stable@vger.kernel.org&gt; # b651bd2a3ae3 ("drm/i915/audio: Fix audio enumeration issue on BXT")
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Gaurav K Singh &lt;gaurav.k.singh@intel.com&gt;
Reviewed-by: Abhay Kumar &lt;abhay.Kumar@intel.com&gt;
Signed-off-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1523989338-29677-1-git-send-email-gaurav.k.singh@intel.com
(cherry picked from commit 8221229046e862977ae93ec9d34aa583fbd10397)
Signed-off-by: Joonas Lahtinen &lt;joonas.lahtinen@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>drm/i915/audio: fix check for av_enc_map overflow</title>
<updated>2018-02-15T14:29:13Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani.nikula@intel.com</email>
</author>
<published>2018-02-14T17:38:40Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cdb3db8542d854bd678d60cd28861b042e191672'/>
<id>urn:sha1:cdb3db8542d854bd678d60cd28861b042e191672</id>
<content type='text'>
Turns out -1 &gt;= ARRAY_SIZE() is always true. Move the bounds check where
we know pipe &gt;= 0 and next to the array indexing where it makes most
sense.

Fixes: 9965db26ac05 ("drm/i915: Check for fused or unused pipes")
Fixes: 0b7029b7e43f ("drm/i915: Check for fused or unused pipes")
Cc: &lt;stable@vger.kernel.org&gt; # v4.10+
Cc: Mika Kahola &lt;mika.kahola@intel.com&gt;
Cc: Rodrigo Vivi &lt;rodrigo.vivi@intel.com&gt;
Cc: Jani Nikula &lt;jani.nikula@linux.intel.com&gt;
Cc: Joonas Lahtinen &lt;joonas.lahtinen@linux.intel.com&gt;
Cc: intel-gfx@lists.freedesktop.org
Reviewed-by: Dhinakaran Pandiyan &lt;dhinakaran.pandiyan@intel.com&gt;
Reviewed-by: Mika Kahola &lt;mika.kahola@intel.com&gt;
Signed-off-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20180214173840.25360-1-jani.nikula@intel.com
</content>
</entry>
<entry>
<title>drm/i915: Use INTEL_GEN everywhere</title>
<updated>2018-02-09T22:29:02Z</updated>
<author>
<name>Tvrtko Ursulin</name>
<email>tvrtko.ursulin@intel.com</email>
</author>
<published>2018-02-09T21:58:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c56b89f16dd0e7d979399bfe94b4056103dd16a8'/>
<id>urn:sha1:c56b89f16dd0e7d979399bfe94b4056103dd16a8</id>
<content type='text'>
Coccinelle patch:

 @@
 identifier p;
 @@
 -INTEL_INFO(p)-&gt;gen
 +INTEL_GEN(p)

Signed-off-by: Tvrtko Ursulin &lt;tvrtko.ursulin@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20180208130606.15556-12-tvrtko.ursulin@linux.intel.com
Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Signed-off-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20180209215847.6660-1-chris@chris-wilson.co.uk
</content>
</entry>
<entry>
<title>drm/i915: Check for fused or unused pipes</title>
<updated>2018-01-19T14:15:50Z</updated>
<author>
<name>Mika Kahola</name>
<email>mika.kahola@intel.com</email>
</author>
<published>2017-12-18T08:04:03Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0b7029b7e43fda1304c181a3ade0b429b9edcd9d'/>
<id>urn:sha1:0b7029b7e43fda1304c181a3ade0b429b9edcd9d</id>
<content type='text'>
We may have fused or unused pipes in our system. Let's check that the pipe
in question is within limits of accessible pipes. In case, that we are not
able to access the pipe, we return early with a warning.

v2: Rephrasing of the commit message (Jani)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103206
Reported-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Tested-by: Jaswinder Singh Rajput &lt;jaswinder@perfectintelligent.com&gt;
Suggested-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Reviewed-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Signed-off-by: Mika Kahola &lt;mika.kahola@intel.com&gt;
Signed-off-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1513584243-12607-1-git-send-email-mika.kahola@intel.com
</content>
</entry>
<entry>
<title>drm/i915: Fix kerneldocs for intel_audio.c</title>
<updated>2017-11-15T15:32:54Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2017-11-14T19:11:27Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=764b9f2c4d252fd893a07b39b4ab14ae8044c9cb'/>
<id>urn:sha1:764b9f2c4d252fd893a07b39b4ab14ae8044c9cb</id>
<content type='text'>
Fix copy/paste fail in kerneldocs for intel_audio_codec_disable().

Cc: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Suggested-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20171114191127.16188-1-ville.syrjala@linux.intel.com
Reviewed-by: Dhinakaran Pandiyan &lt;dhinakaran.pandiyan@intel.com&gt;
</content>
</entry>
<entry>
<title>drm/i915: Remove most encoder-&gt;type uses from the audio code</title>
<updated>2017-10-31T19:51:50Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2017-10-30T18:46:54Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=9f846643c788bbdf4d4b4fe587661705d07de8ef'/>
<id>urn:sha1:9f846643c788bbdf4d4b4fe587661705d07de8ef</id>
<content type='text'>
encoder-&gt;type isn't genreally safe around DDI ports, so let's
replace some uses in the audio code with the crtc state's
output_types instead.

Actually in these cases encoder-&gt;type would work since the DP
SST case is only relevant for VLV/CHV and encoder-&gt;type==DP
is a thing on those platforms. The DP MST cases would work
as well since MST encoder-&gt;type==DP_MST always. But I think
it's best to try and minimize the encoder-&gt;type use in general
to avoid showing a bad example to people.

Cc: Jani Nikula &lt;jani.nikula@intel.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20171030184654.17429-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
</content>
</entry>
<entry>
<title>drm/i915: Pass around crtc and connector states for audio</title>
<updated>2017-10-31T19:50:43Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2017-10-30T18:46:53Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8ec47de21bfab96790c4202ae8cdb5092ad7ec33'/>
<id>urn:sha1:8ec47de21bfab96790c4202ae8cdb5092ad7ec33</id>
<content type='text'>
Explicitly pass the crtc and connector states into the audio
code enable/disable hooks, and plumb them all the way down.

This gets rid of almost all crtc-&gt;config and encoder-&gt;crtc
uses. The one place where we still use them is
i915_audio_component_sync_audio_rate() since that gets called from
the audio driver and we don't have explicit states around then.

Cc: Jani Nikula &lt;jani.nikula@intel.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20171030184654.17429-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
</content>
</entry>
<entry>
<title>drm/i915: Don't relay on I915_MAX_PIPES</title>
<updated>2017-10-10T15:07:48Z</updated>
<author>
<name>Mika Kahola</name>
<email>mika.kahola@intel.com</email>
</author>
<published>2017-10-10T10:17:02Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0d5f662575e542ed22b5054c2b0887f42271be5e'/>
<id>urn:sha1:0d5f662575e542ed22b5054c2b0887f42271be5e</id>
<content type='text'>
Let's remove the dependency on I915_MAX_PIPES. Instead, get the number
of pipes from platform information.

Reviewed-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Signed-off-by: Ramalingam C &lt;ramalingam.c@intel.com&gt;
Signed-off-by: Mika Kahola &lt;mika.kahola@intel.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1507630626-23806-2-git-send-email-mika.kahola@intel.com
</content>
</entry>
<entry>
<title>drm/i915: always update ELD connector type after get modes</title>
<updated>2017-09-20T07:36:34Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani.nikula@intel.com</email>
</author>
<published>2017-09-19T15:38:13Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d81fb7fd9436e81fda67e5bc8ed0713aa28d3db2'/>
<id>urn:sha1:d81fb7fd9436e81fda67e5bc8ed0713aa28d3db2</id>
<content type='text'>
drm_edid_to_eld() initializes the connector ELD to zero, overwriting the
ELD connector type initialized in intel_audio_codec_enable(). If
userspace does getconnector and thus get_modes after modeset, a
subsequent audio component i915_audio_component_get_eld() call will
receive an ELD without the connector type properly set. It's fine for
HDMI, but screws up audio for DP.

Always set the ELD connector type at intel_connector_update_modes()
based on the connector type. We can drop the connector type update from
intel_audio_codec_enable().

Credits to Joseph Nuzman &lt;jnuzman@gmail.com&gt; for figuring this out.

Cc: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Cc: Joseph Nuzman &lt;jnuzman@gmail.com&gt;
Reported-by: Joseph Nuzman &lt;jnuzman@gmail.com&gt;
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101583
Reviewed-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Tested-by: Joseph Nuzman &lt;jnuzman@gmail.com&gt;
Cc: stable@vger.kernel.org # v4.10+, maybe earlier
Signed-off-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20170919153813.29808-1-jani.nikula@intel.com
</content>
</entry>
<entry>
<title>drm/i915: Reorganize intel_lpe_audio_notify() arguments</title>
<updated>2017-05-03T13:20:48Z</updated>
<author>
<name>Ville Syrjälä</name>
<email>ville.syrjala@linux.intel.com</email>
</author>
<published>2017-04-27T16:02:26Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=20be551e6d0a59d56a593dee0998922cd80f5eb9'/>
<id>urn:sha1:20be551e6d0a59d56a593dee0998922cd80f5eb9</id>
<content type='text'>
Shuffle the arguments to intel_lpe_audio_notify() around a bit. Pipe
and port being the most important things, so let's put the first, and
thre rest can come in as is. Also constify the eld argument.

Cc: Takashi Iwai &lt;tiwai@suse.de&gt;
Cc: Pierre-Louis Bossart &lt;pierre-louis.bossart@linux.intel.com&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/20170427160231.13337-8-ville.syrjala@linux.intel.com
Reviewed-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
